nodemanager.git
16 years agoinitial tag NodeManager-1.6-1
Thierry Parmentelat [Tue, 8 Jan 2008 20:07:11 +0000 (20:07 +0000)]
initial tag

16 years agoready for tagging
Thierry Parmentelat [Tue, 8 Jan 2008 11:49:43 +0000 (11:49 +0000)]
ready for tagging
reviewed URLs and %{plrelease}

16 years ago(no commit message)
Faiyaz Ahmed [Thu, 3 Jan 2008 19:48:17 +0000 (19:48 +0000)]

16 years agoTo be added to all modules.
Faiyaz Ahmed [Thu, 3 Jan 2008 19:45:57 +0000 (19:45 +0000)]
To be added to all modules.

16 years agos/plc_initscript_id/initscript
Faiyaz Ahmed [Thu, 20 Dec 2007 21:59:33 +0000 (21:59 +0000)]
s/plc_initscript_id/initscript
The attribute name used in the API changed and nm was never updated.  Thanks Amine & Thierry.

16 years agoi give up.
Faiyaz Ahmed [Thu, 20 Dec 2007 18:33:15 +0000 (18:33 +0000)]
i give up.

16 years agoPropset.
Faiyaz Ahmed [Thu, 20 Dec 2007 18:06:38 +0000 (18:06 +0000)]
Propset.

16 years agoURL fix.
Faiyaz Ahmed [Thu, 20 Dec 2007 18:02:39 +0000 (18:02 +0000)]
URL fix.

16 years agoUpdated url.
Faiyaz Ahmed [Thu, 20 Dec 2007 18:02:05 +0000 (18:02 +0000)]
Updated url.

16 years agoIf API can't be contacted, let modules bootstrap when applicable.
Faiyaz Ahmed [Mon, 17 Dec 2007 22:23:06 +0000 (22:23 +0000)]
If API can't be contacted, let modules bootstrap when applicable.

16 years agoAdding a check to verify that the environment is not the BOOTCD will prevent a
Stephen Soltesz [Thu, 13 Dec 2007 19:14:58 +0000 (19:14 +0000)]
Adding a check to verify that the environment is not the BOOTCD will prevent a
NodeUpdate from starting the NM.  I think NM starting in the boot cd may be
causing some of the rpmdb corruption seen in /vservers/

16 years agomissing module.
Faiyaz Ahmed [Wed, 12 Dec 2007 21:19:53 +0000 (21:19 +0000)]
missing module.

16 years agoprotect against, and log unknown user or group
Thierry Parmentelat [Wed, 12 Dec 2007 15:43:35 +0000 (15:43 +0000)]
protect against, and log unknown user or group

16 years agofix logging of vserver class into /var/log/nm
Thierry Parmentelat [Wed, 12 Dec 2007 15:13:35 +0000 (15:13 +0000)]
fix logging of vserver class into /var/log/nm

16 years agologging support in vserver.py
Thierry Parmentelat [Wed, 12 Dec 2007 12:09:47 +0000 (12:09 +0000)]
logging support in vserver.py

16 years agoadd a --module option for testing one module at a time
Thierry Parmentelat [Wed, 12 Dec 2007 10:43:24 +0000 (10:43 +0000)]
add a --module option for testing one module at a time

16 years agoApparently this is needed for a sliver to use networking.
Faiyaz Ahmed [Tue, 11 Dec 2007 20:47:30 +0000 (20:47 +0000)]
Apparently this is needed for a sliver to use networking.

16 years agocheck indenting. set ip if ip exists. Probably for vini or related projects. NOT...
Faiyaz Ahmed [Tue, 11 Dec 2007 19:53:36 +0000 (19:53 +0000)]
check indenting.  set ip if ip exists.  Probably for vini or related projects.  NOT for production nodes to worry about...yet.

16 years agodisplay version at startup
Thierry Parmentelat [Tue, 11 Dec 2007 14:58:03 +0000 (14:58 +0000)]
display version at startup

16 years agoreverting initial indentation as per Daniel warning
Thierry Parmentelat [Tue, 11 Dec 2007 14:56:53 +0000 (14:56 +0000)]
reverting initial indentation as per Daniel warning

16 years agovarious cosmetic changes
Thierry Parmentelat [Tue, 11 Dec 2007 12:02:46 +0000 (12:02 +0000)]
various cosmetic changes

NOTE.
I'm leaving vsliver_vs.py untouched
However, in set_resources, most of the calls to the lower level (vserver/vserverimpl)
methods are called unprotected by a try/except
If any of this fails, then the exception gets caught in accounts:_run only
and this might prevent correct operations
to make things worse, in such a case the error messages printed by vserverimpl
might get lost in daemon mode
So a cleanup in this area might be most useful

16 years agomisplaced indentation - caused set_resources to bail out as deep as accounts:_run
Thierry Parmentelat [Tue, 11 Dec 2007 11:51:55 +0000 (11:51 +0000)]
misplaced indentation - caused set_resources to bail out as deep as accounts:_run

16 years agothis error in log_exc caused most of the interesting logs to get just trashed
Thierry Parmentelat [Tue, 11 Dec 2007 08:38:14 +0000 (08:38 +0000)]
this error in log_exc caused most of the interesting logs to get just trashed

16 years ago(*) basically no operational change
Thierry Parmentelat [Mon, 10 Dec 2007 17:25:43 +0000 (17:25 +0000)]
(*) basically no operational change

(*) fix initscript
- was using only first item in OPTIONS
  so only -d was used despite   do_start ${OPTIONS-"-d -s"}
- idem & worse when OPTIONS were set in /etc/sysconfig/NodeManager

btw. it is confusing that the chkconfig name is nm
     while /etc/sysconfig/NodeManager is sourced

(*) add -v option
- allows to log stuff that uses logger.verbose - see below
- stores a pretty printed version of the latest GetSlivers in
  /var/log/get_slivers.txt

(*) actual period was period + random[1..301] with 301 hardwired
    fixed --period (never used because of the above) and added --random

(*) logger now supports logger.verbose and logger.log_slivers

(*) so bottom line is, use e.g. following settings for debugging
# cat /etc/sysconfig/NodeManager
OPTIONS="-d -s --period 60 --random 15 -v"

16 years agoInstall iptables module.
Daniel Hokka Zakrisson [Fri, 7 Dec 2007 15:36:37 +0000 (15:36 +0000)]
Install iptables module.

16 years agoHardcoding names is ugly enough. Don't care about case.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 19:07:02 +0000 (19:07 +0000)]
Hardcoding names is ugly enough. Don't care about case.

16 years agoDon't mess with the blacklist, it's handled elsewhere.
Daniel Hokka Zakrisson [Tue, 4 Dec 2007 22:52:15 +0000 (22:52 +0000)]
Don't mess with the blacklist, it's handled elsewhere.

16 years agoSupport NAT/port forwards.
Daniel Hokka Zakrisson [Tue, 4 Dec 2007 22:41:31 +0000 (22:41 +0000)]
Support NAT/port forwards.

16 years agoindentation fixed
Thierry Parmentelat [Fri, 30 Nov 2007 09:31:50 +0000 (09:31 +0000)]
indentation fixed

16 years agotabs != 5 spaces
Faiyaz Ahmed [Wed, 21 Nov 2007 15:36:42 +0000 (15:36 +0000)]
tabs != 5 spaces

16 years agoAdded ReCreate. Also added try catch to api eval of rpc method.
Faiyaz Ahmed [Wed, 21 Nov 2007 14:41:17 +0000 (14:41 +0000)]
Added ReCreate.  Also added try catch to api eval of rpc method.

16 years agoIn case the API isn't installed, skip docbook stuffs.
Faiyaz Ahmed [Wed, 14 Nov 2007 03:08:20 +0000 (03:08 +0000)]
In case the API isn't installed, skip docbook stuffs.

16 years agoadd target tags
Thierry Parmentelat [Mon, 12 Nov 2007 13:42:09 +0000 (13:42 +0000)]
add target tags

16 years agoWhile building bootstrapfs on fc6, I'm getting this
Thierry Parmentelat [Mon, 12 Nov 2007 13:40:48 +0000 (13:40 +0000)]
While building bootstrapfs on fc6, I'm getting this

^M  Installing: NodeManager                  ##################### [114/119]Stopping Node Manager: [FAILED]^M
can not change context: migrate kernel feature missing and 'compat' API disabled: Function not implemented
Starting Node Manager: Traceback (most recent call last):
  File "/usr/share/NodeManager/nm.py", line 13, in ?
    import logger
  File "/usr/share/NodeManager/logger.py", line 32
    if name:
             ^
IndentationError: unindent does not match any outer indentation level
[FAILED]^M

16 years agolog slice name where applicable before traceback.
Faiyaz Ahmed [Wed, 7 Nov 2007 22:09:32 +0000 (22:09 +0000)]
log slice name where applicable before traceback.

16 years agoIf no name is specified, just print the traceback.
Faiyaz Ahmed [Wed, 7 Nov 2007 21:59:03 +0000 (21:59 +0000)]
If no name is specified, just print the traceback.

16 years agoAdd more info to tracebacks. Echos slice name before traceback.
Faiyaz Ahmed [Wed, 7 Nov 2007 21:44:33 +0000 (21:44 +0000)]
Add more info to tracebacks.  Echos slice name before traceback.

16 years agoAdded debugging code. Will log slice name when threads die.
Faiyaz Ahmed [Wed, 7 Nov 2007 04:31:55 +0000 (04:31 +0000)]
Added debugging code.  Will log slice name when threads die.

16 years agoCLean up deaddb.
Faiyaz Ahmed [Tue, 6 Nov 2007 19:53:47 +0000 (19:53 +0000)]
CLean up deaddb.

16 years agoForgot case where NM is reinstalled and dat is deleted. Re-init slices, update limit...
Faiyaz Ahmed [Thu, 1 Nov 2007 18:56:53 +0000 (18:56 +0000)]
Forgot case where NM is reinstalled and dat is deleted.  Re-init slices, update limits, then add to dat.

16 years agoSupport for persistent byte limits for dynamic slices. [ticket:19 Ticket]
Faiyaz Ahmed [Wed, 31 Oct 2007 20:48:37 +0000 (20:48 +0000)]
Support for persistent byte limits for dynamic slices. [ticket:19 Ticket]

16 years agoAdded an example of opening ssh within python using popen()
Stephen Soltesz [Tue, 30 Oct 2007 18:17:39 +0000 (18:17 +0000)]
Added an example of opening ssh within python using popen()

16 years agoNMAPI.xml now includes a section including and example using the nm-controller
Stephen Soltesz [Tue, 30 Oct 2007 18:10:48 +0000 (18:10 +0000)]
NMAPI.xml now includes a section including and example using the nm-controller
and the xml-rpc forwarding over the SSH stub account.

The make file uses awk the strip out the unnecessary parts of the html for
upload into Drupal.  out.html is ready for upload.  Would be nice if we could
figure out a 'curl' incantation that would do the post automatically.

16 years agoa typeo prevented the docs from compiling
Stephen Soltesz [Tue, 30 Oct 2007 18:09:21 +0000 (18:09 +0000)]
a typeo prevented the docs from compiling

16 years agoTo support persistent byte totals in case of dynamic slices. Slice data is kept...
Faiyaz Ahmed [Thu, 25 Oct 2007 21:18:41 +0000 (21:18 +0000)]
To support persistent byte totals in case of dynamic slices.  Slice data is kept through duration of recording period in case slice is to reappear.

16 years agoA few tweaks.
Stephen Soltesz [Thu, 25 Oct 2007 18:05:17 +0000 (18:05 +0000)]
A few tweaks.

16 years agoSplit api_calls.py and api.py to make the documentation of the XMLRPC calls
Stephen Soltesz [Thu, 25 Oct 2007 17:49:11 +0000 (17:49 +0000)]
Split api_calls.py and api.py to make the documentation of the XMLRPC calls
easier.

TODO: need to add ReCreate() back to the api.  According to David, it was
lost.

TODO: test that these changes do not break the running operation of NM.

16 years agoTake the new doc out of the branch and into trunk
Stephen Soltesz [Thu, 25 Oct 2007 16:49:32 +0000 (16:49 +0000)]
Take the new doc out of the branch and into trunk

16 years agoTo kill nm procs that are defunct and won't die normall and also to kill nm procs...
Faiyaz Ahmed [Wed, 17 Oct 2007 20:10:20 +0000 (20:10 +0000)]
To kill nm procs that are defunct and won't die normall and also to kill nm procs that are in vservers but won't exit.

16 years agoremove build directory
Faiyaz Ahmed [Wed, 17 Oct 2007 18:22:01 +0000 (18:22 +0000)]
remove build directory

16 years agoPatched with nm-disk-lock.patch provided by dhozac. Closes (or attempts to) [ticket...
Faiyaz Ahmed [Wed, 17 Oct 2007 17:30:39 +0000 (17:30 +0000)]
Patched with nm-disk-lock.patch provided by dhozac.  Closes (or attempts to) [ticket:7 chcontext bug].  Uses file based locks in place of thread mutexes.

16 years agoANother test email.
Faiyaz Ahmed [Wed, 3 Oct 2007 21:03:38 +0000 (21:03 +0000)]
ANother test email.

16 years agofoobar
Faiyaz Ahmed [Wed, 3 Oct 2007 20:56:07 +0000 (20:56 +0000)]
foobar

16 years agoAdded a comment.
Faiyaz Ahmed [Wed, 3 Oct 2007 20:44:01 +0000 (20:44 +0000)]
Added a comment.

16 years agofooo
Faiyaz Ahmed [Thu, 27 Sep 2007 21:21:08 +0000 (21:21 +0000)]
fooo

16 years agofoo
Faiyaz Ahmed [Thu, 27 Sep 2007 21:18:17 +0000 (21:18 +0000)]
foo

16 years agotuff
Faiyaz Ahmed [Thu, 27 Sep 2007 21:17:35 +0000 (21:17 +0000)]
tuff

16 years agofoo
Faiyaz Ahmed [Thu, 27 Sep 2007 19:47:10 +0000 (19:47 +0000)]
foo

16 years agoSomething relevant
Faiyaz Ahmed [Thu, 27 Sep 2007 18:20:35 +0000 (18:20 +0000)]
Something relevant

16 years agoRemoved ID
Faiyaz Ahmed [Thu, 27 Sep 2007 18:19:51 +0000 (18:19 +0000)]
Removed ID

16 years agoAdded ID field.
Faiyaz Ahmed [Fri, 21 Sep 2007 19:22:33 +0000 (19:22 +0000)]
Added ID field.

16 years agoRemove the gzip log.
Faiyaz Ahmed [Wed, 19 Sep 2007 18:12:16 +0000 (18:12 +0000)]
Remove the gzip log.

16 years agoAdd try/except around GetSlivers.
Faiyaz Ahmed [Wed, 19 Sep 2007 17:47:06 +0000 (17:47 +0000)]
Add try/except around GetSlivers.

16 years agoMove call to update i2 ip address into GetSlivers. Move try catch out of main into...
Faiyaz Ahmed [Tue, 4 Sep 2007 20:52:53 +0000 (20:52 +0000)]
Move call to update i2 ip address into GetSlivers.  Move try catch out of main into GetSlivers().

16 years agoAllow slivers to make api calls on themselves.
Faiyaz Ahmed [Tue, 4 Sep 2007 20:47:25 +0000 (20:47 +0000)]
Allow slivers to make api calls on themselves.

16 years agoSlices should be able to make operations on themselves.
Faiyaz Ahmed [Tue, 28 Aug 2007 16:55:33 +0000 (16:55 +0000)]
Slices should be able to make operations on themselves.

16 years agoRemove boot key update. BM does same thing during boot.
Faiyaz Ahmed [Fri, 24 Aug 2007 20:05:41 +0000 (20:05 +0000)]
Remove boot key update.  BM does same thing during boot.

16 years agoLog information about threads dying
David E. Eisenstat [Thu, 16 Aug 2007 16:18:45 +0000 (16:18 +0000)]
Log information about threads dying

16 years agoHEAD should be 1 ahead from the branch
Faiyaz Ahmed [Tue, 14 Aug 2007 16:25:27 +0000 (16:25 +0000)]
HEAD should be 1 ahead from the branch

16 years agonm.log != nm
Faiyaz Ahmed [Tue, 31 Jul 2007 18:35:32 +0000 (18:35 +0000)]
nm.log != nm

16 years agoAssign 0.0.0.0 by default
Daniel Hokka Zakrisson [Tue, 31 Jul 2007 14:30:36 +0000 (14:30 +0000)]
Assign 0.0.0.0 by default

16 years agoAdd support for assigning IP addresses
Daniel Hokka Zakrisson [Fri, 27 Jul 2007 18:02:36 +0000 (18:02 +0000)]
Add support for assigning IP addresses

16 years agocleaner type support
Daniel Hokka Zakrisson [Tue, 24 Jul 2007 15:59:04 +0000 (15:59 +0000)]
cleaner type support

16 years agoBump revision
Faiyaz Ahmed [Mon, 23 Jul 2007 20:42:11 +0000 (20:42 +0000)]
Bump revision

16 years agoRemoved whitelist support in favor of PLC API whitelists.
Faiyaz Ahmed [Mon, 23 Jul 2007 19:28:07 +0000 (19:28 +0000)]
Removed whitelist support in favor of PLC API whitelists.

16 years agoGzip old nm log
Faiyaz Ahmed [Mon, 23 Jul 2007 18:21:36 +0000 (18:21 +0000)]
Gzip old nm log

16 years agoBump minor number.
Faiyaz Ahmed [Fri, 20 Jul 2007 20:24:05 +0000 (20:24 +0000)]
Bump minor number.

16 years agoAdd CVS ID.
Faiyaz Ahmed [Fri, 20 Jul 2007 19:35:29 +0000 (19:35 +0000)]
Add CVS ID.

16 years agoRemoved bad method check in api dispatch.
Faiyaz Ahmed [Wed, 18 Jul 2007 20:08:54 +0000 (20:08 +0000)]
Removed bad method check in api dispatch.

16 years agoRemove debug line.
Faiyaz Ahmed [Mon, 16 Jul 2007 20:53:37 +0000 (20:53 +0000)]
Remove debug line.

16 years agoDelegation fix. Slivers weren't being created once ticket was delivered.
Faiyaz Ahmed [Mon, 16 Jul 2007 20:52:20 +0000 (20:52 +0000)]
Delegation fix.  Slivers weren't being created once ticket was delivered.

16 years agoadd support for capabilities
Daniel Hokka Zakrisson [Mon, 16 Jul 2007 17:53:22 +0000 (17:53 +0000)]
add support for capabilities

16 years agoBump build.
Faiyaz Ahmed [Tue, 26 Jun 2007 18:59:46 +0000 (18:59 +0000)]
Bump build.

16 years agoHTBS exist but aren't in dat file are no longer toggled on and off. Just update...
Faiyaz Ahmed [Tue, 26 Jun 2007 18:59:05 +0000 (18:59 +0000)]
HTBS exist but aren't in dat file are no longer toggled on and off.  Just update dat's byte counts.

16 years agoUpdate version
Faiyaz Ahmed [Tue, 26 Jun 2007 18:05:10 +0000 (18:05 +0000)]
Update version

16 years agoBump build number
Faiyaz Ahmed [Tue, 26 Jun 2007 18:04:40 +0000 (18:04 +0000)]
Bump build number

16 years agoUpdate comment to reflect change.
Faiyaz Ahmed [Tue, 26 Jun 2007 18:01:18 +0000 (18:01 +0000)]
Update comment to reflect change.

16 years agoStart tracking HTBS that are already running (presumeably after a software upgrade).
Faiyaz Ahmed [Tue, 26 Jun 2007 18:00:46 +0000 (18:00 +0000)]
Start tracking HTBS that are already running (presumeably after a software upgrade).

16 years agoUpdate host key in main loop.
David E. Eisenstat [Mon, 25 Jun 2007 16:19:19 +0000 (16:19 +0000)]
Update host key in main loop.

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 13:44:50 +0000 (13:44 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 13:11:39 +0000 (13:11 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 13:02:37 +0000 (13:02 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 12:57:04 +0000 (12:57 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 12:53:41 +0000 (12:53 +0000)]
*** empty log message ***

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 12:46:14 +0000 (12:46 +0000)]
*** empty log message ***

16 years agoCall start after initscript change. set_disklimit() workaround.
David E. Eisenstat [Sat, 23 Jun 2007 12:35:24 +0000 (12:35 +0000)]
Call start after initscript change.  set_disklimit() workaround.

16 years ago*** empty log message ***
David E. Eisenstat [Sat, 23 Jun 2007 12:22:24 +0000 (12:22 +0000)]
*** empty log message ***

16 years agoBug in startup logic that led slices new at bootup to be started twice.
David E. Eisenstat [Sat, 23 Jun 2007 11:49:58 +0000 (11:49 +0000)]
Bug in startup logic that led slices new at bootup to be started twice.

16 years agobumped release for a forced rollout and util-vserver dependency
Stephen Soltesz [Fri, 22 Jun 2007 17:11:11 +0000 (17:11 +0000)]
bumped release for a forced rollout and util-vserver dependency

16 years agoCVS doesn't know the difference between spaces and tabs. tabs are bad...or so ive...
Faiyaz Ahmed [Sat, 16 Jun 2007 14:30:17 +0000 (14:30 +0000)]
CVS doesn't know the difference between spaces and tabs.  tabs are bad...or so ive been told.