nodemanager.git
17 years agoResilience against exceptions thrown from bwmon.py.
David E. Eisenstat [Thu, 26 Apr 2007 19:04:26 +0000 (19:04 +0000)]
Resilience against exceptions thrown from bwmon.py.

17 years agoBump build.
Faiyaz Ahmed [Wed, 25 Apr 2007 22:23:20 +0000 (22:23 +0000)]
Bump build.

17 years agoOld slices weren't having their totals cary over when NM was reset or reinstalled...
Faiyaz Ahmed [Wed, 25 Apr 2007 22:19:59 +0000 (22:19 +0000)]
Old slices weren't having their totals cary over when NM was reset or reinstalled.  New slices would start out with 0 bytes in their byte counts, then when update was called 10 minutes later, their running byte count would would already be over their max, then the slice would get capped.  New slices that are already running (presumably from a previous instance of NM), should have their byte counts carried over on init.

17 years agoSyntax error.
Faiyaz Ahmed [Tue, 24 Apr 2007 23:33:01 +0000 (23:33 +0000)]
Syntax error.

17 years agoBump build number
Faiyaz Ahmed [Tue, 24 Apr 2007 23:09:45 +0000 (23:09 +0000)]
Bump build number

17 years agoCreate new slices if not running.
Faiyaz Ahmed [Tue, 24 Apr 2007 23:06:54 +0000 (23:06 +0000)]
Create new slices if not running.

17 years ago* random range from 0 to 5 minutes + period when calling home.
Faiyaz Ahmed [Mon, 23 Apr 2007 19:45:07 +0000 (19:45 +0000)]
* random range from 0 to 5 minutes + period when calling home.

17 years agoUses rspec to calculate bwlimits. Respects sirius loans. Also uses min defaults...
Faiyaz Ahmed [Mon, 23 Apr 2007 19:36:26 +0000 (19:36 +0000)]
Uses rspec to calculate bwlimits.  Respects sirius loans.  Also uses min defaults from DEFAULT_ALLOC, but sanity checks them against own defaults.  DEFAULT_ALLOC wins.

17 years agoFork more cleanly in PlanetLabConf.
David E. Eisenstat [Tue, 17 Apr 2007 19:03:46 +0000 (19:03 +0000)]
Fork more cleanly in PlanetLabConf.

17 years agoIncrease time to call get slivers from 10 minutes to 15.
Faiyaz Ahmed [Sat, 14 Apr 2007 14:33:10 +0000 (14:33 +0000)]
Increase time to call get slivers from 10 minutes to 15.

17 years agoBump version.
Faiyaz Ahmed [Sat, 14 Apr 2007 14:21:10 +0000 (14:21 +0000)]
Bump version.

17 years ago*** empty log message ***
Faiyaz Ahmed [Fri, 13 Apr 2007 19:25:21 +0000 (19:25 +0000)]
*** empty log message ***

17 years agobwmon removed. no longer a call back.
Faiyaz Ahmed [Fri, 13 Apr 2007 18:30:25 +0000 (18:30 +0000)]
bwmon removed.  no longer a call back.

17 years agoBad delegate logic. Fixed.
Faiyaz Ahmed [Fri, 13 Apr 2007 18:29:17 +0000 (18:29 +0000)]
Bad delegate logic.  Fixed.
Also removed redundant code.

17 years ago* bwmon now uses rspecs instead of direct plcapi call to getslivers data. Insert...
Faiyaz Ahmed [Fri, 13 Apr 2007 17:01:40 +0000 (17:01 +0000)]
*  bwmon now uses rspecs instead of direct plcapi call to getslivers data.  Insert right after sync() in database

17 years agoSupport for the plc_initscript_id attribute.
David E. Eisenstat [Thu, 5 Apr 2007 19:04:30 +0000 (19:04 +0000)]
Support for the plc_initscript_id attribute.

17 years ago'enabled' slice attribute can go negative to mean disabled, and positive to mean...
Faiyaz Ahmed [Mon, 2 Apr 2007 20:02:57 +0000 (20:02 +0000)]
'enabled' slice attribute can go negative to mean disabled, and positive to mean enabled.

17 years ago* Syntax error.
Faiyaz Ahmed [Tue, 6 Mar 2007 20:46:54 +0000 (20:46 +0000)]
* Syntax error.

17 years agoRestart nm on upgrade
Faiyaz Ahmed [Tue, 6 Mar 2007 16:11:09 +0000 (16:11 +0000)]
Restart nm on upgrade

17 years agoBump rev.
Faiyaz Ahmed [Thu, 1 Mar 2007 20:26:55 +0000 (20:26 +0000)]
Bump rev.

17 years agoWrite slice name to /etc/slicename.
David E. Eisenstat [Thu, 1 Mar 2007 19:27:55 +0000 (19:27 +0000)]
Write slice name to /etc/slicename.

17 years agoI HATE RPMS!!!!
Faiyaz Ahmed [Wed, 28 Feb 2007 06:19:44 +0000 (06:19 +0000)]
I HATE RPMS!!!!

17 years agoBump revision
Faiyaz Ahmed [Wed, 28 Feb 2007 05:26:10 +0000 (05:26 +0000)]
Bump revision

17 years ago* Node caps weren't being set in time and max rates were being set to -1. FIXED.
Faiyaz Ahmed [Wed, 28 Feb 2007 05:17:37 +0000 (05:17 +0000)]
* Node caps weren't being set in time and max rates were being set to -1.  FIXED.

17 years agoBump release
Faiyaz Ahmed [Tue, 27 Feb 2007 23:14:10 +0000 (23:14 +0000)]
Bump release

17 years ago* Added fix for > 25% min bandwidth shares. The idea is if someone wants a min rate...
Faiyaz Ahmed [Tue, 27 Feb 2007 23:03:58 +0000 (23:03 +0000)]
* Added fix for > 25% min bandwidth shares.  The idea is if someone wants a min rate greater than 25% of the node cap, the slice only gets 25% of the node cap.

17 years agoGive utah_elab_delegate control of utah_*.
David E. Eisenstat [Tue, 27 Feb 2007 18:11:21 +0000 (18:11 +0000)]
Give utah_elab_delegate control of utah_*.

17 years agoMove start delay into worker thread so that we don't needlessly leave hundreds of...
David E. Eisenstat [Tue, 27 Feb 2007 13:33:42 +0000 (13:33 +0000)]
Move start delay into worker thread so that we don't needlessly leave hundreds of processes sleeping.

17 years agoSkip over delegate accounts until instantiated (and xid is available).
Faiyaz Ahmed [Mon, 26 Feb 2007 17:52:08 +0000 (17:52 +0000)]
Skip over delegate accounts until instantiated (and xid is available).

17 years agoPermission check special case for Emulab.
David E. Eisenstat [Fri, 23 Feb 2007 22:04:08 +0000 (22:04 +0000)]
Permission check special case for Emulab.

17 years agoInstalls iptables for internet2.
Faiyaz Ahmed [Fri, 23 Feb 2007 21:21:50 +0000 (21:21 +0000)]
Installs iptables for internet2.

17 years agoMake delegates work again and add an Emulab account.
David E. Eisenstat [Fri, 23 Feb 2007 18:15:33 +0000 (18:15 +0000)]
Make delegates work again and add an Emulab account.

17 years agoNo such variable self.name. Changed it to network['hostname'].
Faiyaz Ahmed [Thu, 22 Feb 2007 18:11:44 +0000 (18:11 +0000)]
No such variable self.name.  Changed it to network['hostname'].

17 years agoLine 21: mac does not need to be converted to lower() before checking if val exists...
Faiyaz Ahmed [Wed, 21 Feb 2007 20:17:21 +0000 (20:17 +0000)]
Line 21:  mac does not need to be converted to lower() before checking if val exists in dict.

17 years ago* Changed variable names for clarity...and fixed a glaring syntax error.
Faiyaz Ahmed [Wed, 14 Feb 2007 19:49:03 +0000 (19:49 +0000)]
* Changed variable names for clarity...and fixed a glaring syntax error.

17 years ago* Bump release number.
Faiyaz Ahmed [Wed, 14 Feb 2007 19:30:41 +0000 (19:30 +0000)]
* Bump release number.

17 years agoSlice attributes are strings. Cast to int before calculating limits.
Faiyaz Ahmed [Wed, 14 Feb 2007 03:51:35 +0000 (03:51 +0000)]
Slice attributes are strings.   Cast to int before calculating limits.

17 years agoSets up slice bw limits and HTBs. Incorporates pl_mom/bwmon.
Faiyaz Ahmed [Mon, 12 Feb 2007 23:05:58 +0000 (23:05 +0000)]
Sets up slice bw limits and HTBs.  Incorporates pl_mom/bwmon.

17 years agoInclude bwmon
Faiyaz Ahmed [Mon, 12 Feb 2007 23:00:31 +0000 (23:00 +0000)]
Include bwmon

17 years ago* Sets up root slice / default slice HTBs.
Faiyaz Ahmed [Thu, 8 Feb 2007 22:39:49 +0000 (22:39 +0000)]
*  Sets up root slice / default slice HTBs.

17 years ago* Limits are in KBytes.
Faiyaz Ahmed [Thu, 8 Feb 2007 20:34:22 +0000 (20:34 +0000)]
* Limits are in KBytes.

17 years agoNeeds to be tested before certifying good.
Faiyaz Ahmed [Thu, 8 Feb 2007 05:19:06 +0000 (05:19 +0000)]
Needs to be tested before certifying good.

17 years agoon going conversion
Faiyaz Ahmed [Wed, 7 Feb 2007 18:12:02 +0000 (18:12 +0000)]
on going conversion

17 years agoclose nonstandard fds before forking external processes
Mark Huang [Wed, 7 Feb 2007 04:23:22 +0000 (04:23 +0000)]
close nonstandard fds before forking external processes

17 years agotry and recreate bad vservers
Mark Huang [Wed, 7 Feb 2007 04:21:52 +0000 (04:21 +0000)]
try and recreate bad vservers

17 years ago- net_*_rate are in kbps because of XML-RPC maxint limitations
Mark Huang [Tue, 6 Feb 2007 22:28:18 +0000 (22:28 +0000)]
- net_*_rate are in kbps because of XML-RPC maxint limitations
- get primary bwlimit from GetSlivers() call, fix up default allocation
  appropriately

17 years agonet_*_rate are in kbps because of XML-RPC maxint
Mark Huang [Tue, 6 Feb 2007 22:27:12 +0000 (22:27 +0000)]
net_*_rate are in kbps because of XML-RPC maxint
limitations, convert to bps which is what bwlimit.py expects.

17 years ago- pass rspec['vref'] instead of internal rspec['type'] to vuseradd -t
Mark Huang [Mon, 5 Feb 2007 22:50:05 +0000 (22:50 +0000)]
- pass rspec['vref'] instead of internal rspec['type'] to vuseradd -t

17 years agoAutomatically adjust stack sizes downward to avoid exhausting virtual
David E. Eisenstat [Mon, 5 Feb 2007 16:39:29 +0000 (16:39 +0000)]
Automatically adjust stack sizes downward to avoid exhausting virtual
memory.

17 years agoAdded a semaphore to keep multiple init_disk_info()s from knocking over the machine.
David E. Eisenstat [Sat, 3 Feb 2007 21:56:53 +0000 (21:56 +0000)]
Added a semaphore to keep multiple init_disk_info()s from knocking over the machine.

17 years agoAdded NodeManager API calls for inspecting the slicename -> XID mapping and slice...
David E. Eisenstat [Sat, 3 Feb 2007 20:39:54 +0000 (20:39 +0000)]
Added NodeManager API calls for inspecting the slicename -> XID mapping and slice keys.

17 years agoIncorporating old pl_mom into NM.
Faiyaz Ahmed [Sat, 3 Feb 2007 03:42:43 +0000 (03:42 +0000)]
Incorporating old pl_mom into NM.

*not ready yet.

17 years agosettle on names for net_ slice attributes
Mark Huang [Fri, 2 Feb 2007 19:58:51 +0000 (19:58 +0000)]
settle on names for net_ slice attributes

17 years ago- set methodresponse to True in ticket signing example code
Mark Huang [Thu, 1 Feb 2007 21:59:44 +0000 (21:59 +0000)]
- set methodresponse to True in ticket signing example code

17 years ago- add missing -f option
Mark Huang [Thu, 1 Feb 2007 21:56:15 +0000 (21:56 +0000)]
- add missing -f option

17 years ago- tickets do not have 'node_id' in them
Mark Huang [Thu, 1 Feb 2007 21:55:59 +0000 (21:55 +0000)]
- tickets do not have 'node_id' in them

17 years ago- raise an xmlrpclib.Fault on any exception while parsing/delivering ticket
Mark Huang [Thu, 1 Feb 2007 21:55:19 +0000 (21:55 +0000)]
- raise an xmlrpclib.Fault on any exception while parsing/delivering ticket

17 years agonm_enabled is true for positive values instead of nonzero values
David E. Eisenstat [Wed, 24 Jan 2007 16:22:59 +0000 (16:22 +0000)]
nm_enabled is true for positive values instead of nonzero values

17 years agofix --noscripts action
Mark Huang [Fri, 12 Jan 2007 06:36:38 +0000 (06:36 +0000)]
fix --noscripts action

17 years ago- gracefully skip non-existent conf files
Mark Huang [Fri, 12 Jan 2007 00:07:56 +0000 (00:07 +0000)]
- gracefully skip non-existent conf files

17 years ago- fail with non-zero exit code on e.g. 404 errors
Mark Huang [Fri, 12 Jan 2007 00:07:37 +0000 (00:07 +0000)]
- fail with non-zero exit code on e.g. 404 errors

17 years ago- add --noscripts option to skip running pre-, post-, and error commands
Mark Huang [Thu, 11 Jan 2007 23:46:22 +0000 (23:46 +0000)]
- add --noscripts option to skip running pre-, post-, and error commands

17 years ago- fix typo
Mark Huang [Thu, 11 Jan 2007 22:20:50 +0000 (22:20 +0000)]
- fix typo

17 years ago- specify AuthMethod
Mark Huang [Thu, 11 Jan 2007 22:01:17 +0000 (22:01 +0000)]
- specify AuthMethod

17 years ago- fix typo
Mark Huang [Thu, 11 Jan 2007 06:17:33 +0000 (06:17 +0000)]
- fix typo

17 years ago- GetSlivers() now returns a single struct
Mark Huang [Thu, 11 Jan 2007 06:17:32 +0000 (06:17 +0000)]
- GetSlivers() now returns a single struct

17 years ago- add net and proper to manifest
Mark Huang [Tue, 28 Nov 2006 21:36:06 +0000 (21:36 +0000)]
- add net and proper to manifest

17 years ago- generate proper configuration file from slice attribute proper_op
Mark Huang [Tue, 28 Nov 2006 21:35:58 +0000 (21:35 +0000)]
- generate proper configuration file from slice attribute proper_op

17 years ago- ignore /etc/proper/propd.conf (we deal with this separately in proper.py)
Mark Huang [Tue, 28 Nov 2006 21:35:39 +0000 (21:35 +0000)]
- ignore /etc/proper/propd.conf (we deal with this separately in proper.py)

17 years ago- add proper module
Mark Huang [Tue, 28 Nov 2006 21:35:11 +0000 (21:35 +0000)]
- add proper module

17 years ago- moved bwlimit stuff here
Mark Huang [Tue, 28 Nov 2006 19:45:01 +0000 (19:45 +0000)]
- moved bwlimit stuff here

17 years ago- be less verbose
Mark Huang [Tue, 28 Nov 2006 19:44:50 +0000 (19:44 +0000)]
- be less verbose
- use new callback method

17 years ago- move bwlimit stuff into net.py module
Mark Huang [Tue, 28 Nov 2006 19:44:27 +0000 (19:44 +0000)]
- move bwlimit stuff into net.py module

17 years ago- dynamically load, start, and callback into modules
Mark Huang [Tue, 28 Nov 2006 19:44:10 +0000 (19:44 +0000)]
- dynamically load, start, and callback into modules

17 years ago- build sioc module
Mark Huang [Mon, 27 Nov 2006 22:42:48 +0000 (22:42 +0000)]
- build sioc module

17 years ago- initialize bwlimit appropriately
Mark Huang [Mon, 27 Nov 2006 22:42:38 +0000 (22:42 +0000)]
- initialize bwlimit appropriately

17 years ago- specify --install-platlib to install sioc.so extension
Mark Huang [Mon, 27 Nov 2006 22:39:34 +0000 (22:39 +0000)]
- specify --install-platlib to install sioc.so extension

17 years ago- extension to gather information about local network interfaces
Mark Huang [Mon, 27 Nov 2006 22:39:09 +0000 (22:39 +0000)]
- extension to gather information about local network interfaces

17 years agoadd /etc/init.d/conf_files to update conf files once at startup
Mark Huang [Sat, 18 Nov 2006 18:43:18 +0000 (18:43 +0000)]
add /etc/init.d/conf_files to update conf files once at startup

17 years agoset global main variable
Mark Huang [Sat, 18 Nov 2006 18:32:50 +0000 (18:32 +0000)]
set global main variable

17 years agoimport os
Mark Huang [Sat, 18 Nov 2006 18:32:41 +0000 (18:32 +0000)]
import os

17 years agopass config to modules and support configurable polling interval
Mark Huang [Sat, 18 Nov 2006 18:17:25 +0000 (18:17 +0000)]
pass config to modules and support configurable polling interval

17 years agosupport passing config to modules
Mark Huang [Sat, 18 Nov 2006 18:16:54 +0000 (18:16 +0000)]
support passing config to modules

17 years agopass cacert to plcapi init
Mark Huang [Sat, 18 Nov 2006 18:16:40 +0000 (18:16 +0000)]
pass cacert to plcapi init

17 years agosupport one-shot run
Mark Huang [Sat, 18 Nov 2006 18:16:21 +0000 (18:16 +0000)]
support one-shot run

17 years agopass cacert and timeout to safexmlrpc init
Mark Huang [Sat, 18 Nov 2006 18:15:55 +0000 (18:15 +0000)]
pass cacert and timeout to safexmlrpc init

17 years agolook for PLC_API_CA_SSL_CRT (myplc), default to /usr/boot/cacert.pem (node)
Mark Huang [Sat, 18 Nov 2006 18:15:37 +0000 (18:15 +0000)]
look for PLC_API_CA_SSL_CRT (myplc), default to /usr/boot/cacert.pem (node)

17 years agosupport cacert specification and curl timeout
Mark Huang [Sat, 18 Nov 2006 18:14:55 +0000 (18:14 +0000)]
support cacert specification and curl timeout

17 years ago- revert incorrect mangling of 'type' slice attribute
Mark Huang [Thu, 16 Nov 2006 17:09:21 +0000 (17:09 +0000)]
- revert incorrect mangling of 'type' slice attribute

17 years agouse "vserver" as the default value for the slice attribute "type"
Mark Huang [Thu, 16 Nov 2006 16:18:24 +0000 (16:18 +0000)]
use "vserver" as the default value for the slice attribute "type"

17 years ago- don't care what 'type' attribute here
Mark Huang [Thu, 16 Nov 2006 16:16:48 +0000 (16:16 +0000)]
- don't care what 'type' attribute here

17 years ago- create leading directories of conf files
Mark Huang [Wed, 15 Nov 2006 22:50:27 +0000 (22:50 +0000)]
- create leading directories of conf files
- fix typo

17 years ago- pass vserver reference type
Mark Huang [Wed, 15 Nov 2006 22:50:12 +0000 (22:50 +0000)]
- pass vserver reference type

17 years ago- forgot nm.py
Mark Huang [Wed, 15 Nov 2006 20:02:49 +0000 (20:02 +0000)]
- forgot nm.py

17 years ago- enable /etc/init.d/nm
Mark Huang [Wed, 15 Nov 2006 19:27:36 +0000 (19:27 +0000)]
- enable /etc/init.d/nm

17 years ago- RPM spec file for new NodeManager package
Mark Huang [Mon, 13 Nov 2006 20:17:46 +0000 (20:17 +0000)]
- RPM spec file for new NodeManager package

17 years ago- poll PLC every 10 minutes
Mark Huang [Mon, 13 Nov 2006 20:17:20 +0000 (20:17 +0000)]
- poll PLC every 10 minutes

17 years agopackage details
Mark Huang [Mon, 13 Nov 2006 20:04:44 +0000 (20:04 +0000)]
package details

17 years ago- write pid to /var/run/nm.pid
Mark Huang [Mon, 13 Nov 2006 20:03:43 +0000 (20:03 +0000)]
- write pid to /var/run/nm.pid

17 years ago- log to /var/log/nm
Mark Huang [Mon, 13 Nov 2006 19:56:57 +0000 (19:56 +0000)]
- log to /var/log/nm