nodemanager.git
13 years agoSetting tag nodemanager-2.0-18 nodemanager-2.0-18
S.Çağlar Onur [Mon, 23 Aug 2010 20:18:17 +0000 (16:18 -0400)]
Setting tag nodemanager-2.0-18

13 years agohardcode planetlab-f8-i386 as a vref until migration from 4.3 to 5.0 completes
S.Çağlar Onur [Mon, 23 Aug 2010 20:15:30 +0000 (16:15 -0400)]
hardcode planetlab-f8-i386 as a vref until migration from 4.3 to 5.0 completes

13 years agoinitial checkin of NM plugin for installing SFA gids
Tony Mack [Thu, 12 Aug 2010 02:27:56 +0000 (22:27 -0400)]
initial checkin of NM plugin for installing SFA gids

13 years agocciss fix and cleaner way to reach the partition.
Daniel Hokka Zakrisson [Mon, 26 Jul 2010 19:31:51 +0000 (15:31 -0400)]
cciss fix and cleaner way to reach the partition.

13 years agoFix for cciss.
Daniel Hokka Zakrisson [Fri, 23 Jul 2010 14:29:32 +0000 (10:29 -0400)]
Fix for cciss.

13 years agoSetting tag nodemanager-2.0-17 nodemanager-2.0-17
Thierry Parmentelat [Fri, 16 Jul 2010 12:29:32 +0000 (14:29 +0200)]
Setting tag nodemanager-2.0-17
revert curlwrapper to former forking-curl version
fixes in the omf plugin for ssh key location and node hrn
set umask 0022 in tools.daemon

13 years agopreserve comment that ends in the config file
Thierry Parmentelat [Fri, 16 Jul 2010 12:27:45 +0000 (14:27 +0200)]
preserve comment that ends in the config file

13 years agorevert to the forking-curl approach to curlwrapper
Thierry Parmentelat [Fri, 16 Jul 2010 12:07:40 +0000 (14:07 +0200)]
revert to the forking-curl approach to curlwrapper

13 years agoMerge branch 'master' of ssh://git.onelab.eu/git/nodemanager
Thierry Parmentelat [Fri, 16 Jul 2010 10:59:58 +0000 (12:59 +0200)]
Merge branch 'master' of ssh://git.onelab.eu/git/nodemanager

13 years agoMerge remote branch 'origin/master'
Barış Metin [Fri, 16 Jul 2010 07:05:45 +0000 (09:05 +0200)]
Merge remote branch 'origin/master'

13 years agofix path for the sliver private key
Barış Metin [Fri, 16 Jul 2010 07:05:30 +0000 (09:05 +0200)]
fix path for the sliver private key

13 years agolingering cosmetic
Thierry Parmentelat [Thu, 15 Jul 2010 17:19:06 +0000 (19:19 +0200)]
lingering cosmetic

13 years agouse system-wide umask value otherwise all directories under /dev/cgroup and /vservers...
S.Çağlar Onur [Wed, 14 Jul 2010 17:15:39 +0000 (13:15 -0400)]
use system-wide umask value otherwise all directories under /dev/cgroup and /vservers become world writable

13 years agoexclude git repo
Thierry Parmentelat [Fri, 9 Jul 2010 15:17:44 +0000 (17:17 +0200)]
exclude git repo

13 years agoSetting tag nodemanager-2.0-16 nodemanager-2.0-16
Barış Metin [Thu, 8 Jul 2010 13:58:13 +0000 (15:58 +0200)]
Setting tag nodemanager-2.0-16
configure omf-resctl for keys

13 years agoadd sliver keys to resctl configuration
Barış Metin [Thu, 8 Jul 2010 11:01:50 +0000 (13:01 +0200)]
add sliver keys to resctl configuration

13 years agoSetting tag NodeManager-2.0-15
Barış Metin [Mon, 5 Jul 2010 17:15:34 +0000 (17:15 +0000)]
Setting tag NodeManager-2.0-15
fix key generation

13 years agofix key generation
Barış Metin [Mon, 5 Jul 2010 17:14:11 +0000 (17:14 +0000)]
fix key generation

13 years agoSetting tag NodeManager-2.0-14
Barış Metin [Mon, 5 Jul 2010 12:19:20 +0000 (12:19 +0000)]
Setting tag NodeManager-2.0-14
name changes and fix typos

13 years agouses lowercase module names - needs the fix in myplc-docs.spec
Thierry Parmentelat [Fri, 2 Jul 2010 10:54:58 +0000 (10:54 +0000)]
uses lowercase module names - needs the fix in myplc-docs.spec

13 years agofix the typo
S.Çağlar Onur [Thu, 1 Jul 2010 20:47:13 +0000 (20:47 +0000)]
fix the typo

13 years agostore sliver ssh keys in the root /home and rely on the mounting vsys script to expose it
Thierry Parmentelat [Thu, 1 Jul 2010 14:48:31 +0000 (14:48 +0000)]
store sliver ssh keys in the root /home and rely on the mounting vsys script to expose it

13 years agoSetting tag NodeManager-2.0-13
S.Çağlar Onur [Mon, 28 Jun 2010 18:13:42 +0000 (18:13 +0000)]
Setting tag NodeManager-2.0-13
remove config and options parameters from start function

13 years agoremove config and options parameters from start function as nobody uses them
S.Çağlar Onur [Mon, 28 Jun 2010 17:34:58 +0000 (17:34 +0000)]
remove config and options parameters from start function as nobody uses them

13 years agoSetting tag NodeManager-2.0-12
Thierry Parmentelat [Sat, 26 Jun 2010 06:13:27 +0000 (06:13 +0000)]
Setting tag NodeManager-2.0-12
working version of reservable nodes
sliverauth generates an ssh keypair and export pub part as 'ssh_key' tag
dismantled the -s|--startup option (no convincing need for that)
simpler and more robust init.d/nm
initscript content management through replace_file_with_string
sliverauth uses replace_file_with_string
curlwrapper has a debug mode

13 years agonote-added
Thierry Parmentelat [Fri, 25 Jun 2010 16:31:05 +0000 (16:31 +0000)]
note-added

13 years agofirst working code for reservations
Thierry Parmentelat [Fri, 25 Jun 2010 16:30:49 +0000 (16:30 +0000)]
first working code for reservations

13 years agofirst working code for reservations
Thierry Parmentelat [Fri, 25 Jun 2010 16:30:36 +0000 (16:30 +0000)]
first working code for reservations

13 years agotake down the -s (startingup) option
Thierry Parmentelat [Fri, 25 Jun 2010 13:58:00 +0000 (13:58 +0000)]
take down the -s (startingup) option

13 years agocosmetic
Thierry Parmentelat [Fri, 25 Jun 2010 13:51:53 +0000 (13:51 +0000)]
cosmetic

13 years agoplaceholder
Thierry Parmentelat [Fri, 25 Jun 2010 13:50:39 +0000 (13:50 +0000)]
placeholder

13 years agoreview ssh generation for deleted/re-created slivers
Thierry Parmentelat [Fri, 25 Jun 2010 13:02:44 +0000 (13:02 +0000)]
review ssh generation for deleted/re-created slivers

13 years agorename local config file
Thierry Parmentelat [Fri, 25 Jun 2010 13:02:09 +0000 (13:02 +0000)]
rename local config file

13 years agosliverauth generates a sliver ssh keypair and exposes it in the 'ssh_key' tag
Thierry Parmentelat [Thu, 24 Jun 2010 15:09:58 +0000 (15:09 +0000)]
sliverauth generates a sliver ssh keypair and exposes it in the 'ssh_key' tag
sliverauth uses replace_file_with_string
replace_file_with_string uses sliverauth's atomic code

13 years agocosmetic
Thierry Parmentelat [Thu, 24 Jun 2010 14:59:00 +0000 (14:59 +0000)]
cosmetic

13 years agobugfix for initscript creation
Thierry Parmentelat [Thu, 24 Jun 2010 13:20:27 +0000 (13:20 +0000)]
bugfix for initscript creation

13 years agobugfix in child processes management - review initscript install
Thierry Parmentelat [Thu, 24 Jun 2010 11:22:24 +0000 (11:22 +0000)]
bugfix in child processes management - review initscript install

13 years ago uses pidfile for all steps - more robust
Thierry Parmentelat [Thu, 24 Jun 2010 11:20:57 +0000 (11:20 +0000)]
 uses pidfile for all steps - more robust

13 years agodebug mode might be useful occasionnally
Thierry Parmentelat [Thu, 24 Jun 2010 11:19:40 +0000 (11:19 +0000)]
debug mode might be useful occasionnally

13 years agoSetting tag NodeManager-2.0-11
Thierry Parmentelat [Wed, 23 Jun 2010 08:30:07 +0000 (08:30 +0000)]
Setting tag NodeManager-2.0-11
pretty-printing/normalized python code - hopefully neutral

13 years ago- Change .py files to use 4-space indents and no hard tab characters.
S.Çağlar Onur [Tue, 22 Jun 2010 21:26:44 +0000 (21:26 +0000)]
- Change .py files to use 4-space indents and no hard tab characters.
- Trim excess spaces and tabs from ends of lines, and remove empty lines at the end of files.
- Ensure the last line ends with a newline.

13 years agoSetting tag NodeManager-2.0-10
Thierry Parmentelat [Tue, 22 Jun 2010 18:53:40 +0000 (18:53 +0000)]
Setting tag NodeManager-2.0-10
(1) unconditionnally install and chkconfig-like a generic 'vinit' service
that triggers /etc/init.d/vinit.slice if present and executable
(2) install the slice-provided initscript (as per the initscript tag) as
/etc/init.d/vinit.slice
(3) as a result the initscript are now triggered by rc as part of the
standard vserver .. start, properly attached to the vserver,
and properly killed upon vserver .. stop
(4) this works best with util-vserver-pl 0.3-31 or 0.4-12

13 years agoprovide a generic stop method for the initscript
Thierry Parmentelat [Tue, 22 Jun 2010 13:39:04 +0000 (13:39 +0000)]
provide a generic stop method for the initscript

13 years agoinitscripts are now triggered through rc via a generic /etc/init.d/vinit
Thierry Parmentelat [Mon, 21 Jun 2010 14:54:01 +0000 (14:54 +0000)]
initscripts are now triggered through rc via a generic /etc/init.d/vinit
that script is always installed and chkconfig-enabled
it then checks for /etc/init.d/vinit.slice, from the initscript tag
this way this process group correctly gets wiped when the sliver is shutdown
this was confirmed to not be the case formerly

13 years agocosmetic
Thierry Parmentelat [Fri, 18 Jun 2010 15:48:54 +0000 (15:48 +0000)]
cosmetic

13 years agoSetting tag NodeManager-2.0-9
Thierry Parmentelat [Wed, 16 Jun 2010 08:17:40 +0000 (08:17 +0000)]
Setting tag NodeManager-2.0-9
fix for 64bits nodes: add newline to the personality files that instruct util-vserver to create 32bits slivers
basic/partial support from reservable nodes through the 'reservation plugin' (not fully working yet)
plugins can set 'persistent_data' to receive the latests know GetSlivers in case the connection is down
cleanup: moved runtime files in /var/lib/nodemanager, and logs as /var/log/nodemanager* (see specfile)
cleanup: some modules renamed (e.g. nm.py becomes nodemanager.py)
cleanup: nodemanger now is a class; however plugins are still dumb modules
cleanup: does not depend on obsolete Set

13 years agobasics are OK; still needs to prevent the regular slivermanager from starting slivers...
Thierry Parmentelat [Fri, 11 Jun 2010 16:33:05 +0000 (16:33 +0000)]
basics are OK; still needs to prevent the regular slivermanager from starting slivers in reservation mode

13 years agomore data stored in verbose mode
Thierry Parmentelat [Fri, 11 Jun 2010 16:32:20 +0000 (16:32 +0000)]
more data stored in verbose mode

13 years agocosmetic
Thierry Parmentelat [Fri, 11 Jun 2010 15:07:50 +0000 (15:07 +0000)]
cosmetic

13 years agocheckpoint
Thierry Parmentelat [Fri, 11 Jun 2010 15:07:43 +0000 (15:07 +0000)]
checkpoint

13 years agocosmetic
Thierry Parmentelat [Thu, 10 Jun 2010 17:13:26 +0000 (17:13 +0000)]
cosmetic

13 years agomoving towards reservable nodes
Thierry Parmentelat [Wed, 9 Jun 2010 17:58:19 +0000 (17:58 +0000)]
moving towards reservable nodes

13 years agodummy/scaffolding plugin for reservations
Thierry Parmentelat [Wed, 2 Jun 2010 16:22:39 +0000 (16:22 +0000)]
dummy/scaffolding plugin for reservations
modules that set 'persistent_data' are provided with the latest known getslivers data instead of {}
nodemanager now is a class
bwmon.data renamed more consistently into /var/lib/nodemanager/bwmon.pickle
cleaned up deprecated uses of Set

13 years agoadd trailing newline in sliver's personality config file
Thierry Parmentelat [Wed, 2 Jun 2010 10:54:18 +0000 (10:54 +0000)]
add trailing newline in sliver's personality config file

13 years agocosmetic: protect drl against void getslivers
Thierry Parmentelat [Wed, 2 Jun 2010 10:01:22 +0000 (10:01 +0000)]
cosmetic: protect drl against void getslivers

13 years agomore renamings
Thierry Parmentelat [Tue, 1 Jun 2010 08:41:45 +0000 (08:41 +0000)]
more renamings

13 years agorenamed files used at runtime (see post-install script in specfile)
Thierry Parmentelat [Tue, 1 Jun 2010 07:46:28 +0000 (07:46 +0000)]
renamed files used at runtime (see post-install script in specfile)
curlwrapper now uses pycurl
needs testing

13 years agoSetting tag NodeManager-2.0-8
Barış Metin [Fri, 14 May 2010 18:11:37 +0000 (18:11 +0000)]
Setting tag NodeManager-2.0-8
tagging before RC

13 years agofix harmless slice_id does not end on newline warning
S.Çağlar Onur [Wed, 12 May 2010 17:14:06 +0000 (17:14 +0000)]
fix harmless slice_id does not end on newline warning

13 years agoSetting tag NodeManager-2.0-7
S.Çağlar Onur [Wed, 12 May 2010 14:47:28 +0000 (14:47 +0000)]
Setting tag NodeManager-2.0-7
Fix typos in plugins/drl.py and doc/NMAPI.xml.in
Added some precautions to the slice id-saving code
Added log message to code that records the slice id

13 years agofix log message
S.Çağlar Onur [Wed, 12 May 2010 14:42:10 +0000 (14:42 +0000)]
fix log message

13 years agotypo
Thierry Parmentelat [Fri, 7 May 2010 09:15:19 +0000 (09:15 +0000)]
typo

14 years agos/install/update/g
S.Çağlar Onur [Wed, 5 May 2010 21:37:51 +0000 (21:37 +0000)]
s/install/update/g

14 years agoTweaks
Sapan Bhatia [Wed, 28 Apr 2010 15:09:36 +0000 (15:09 +0000)]
Tweaks

14 years agoAdded log message to code that records the slice id.
Sapan Bhatia [Tue, 27 Apr 2010 18:22:22 +0000 (18:22 +0000)]
Added log message to code that records the slice id.

14 years agoAdded some precautions to the slice id-saving code.
Sapan Bhatia [Tue, 27 Apr 2010 16:34:15 +0000 (16:34 +0000)]
Added some precautions to the slice id-saving code.

14 years agoSetting tag NodeManager-2.0-6
Sapan Bhatia [Mon, 26 Apr 2010 21:37:52 +0000 (21:37 +0000)]
Setting tag NodeManager-2.0-6
This version changes the location of the slice id for components such as PlanetFlow to look up. Previously this piece
of information was stored in the 'vserver name' field of the per-vserver context structure in the kernel but we needed
to move it elsewhere since Daniel decided to use that for something else (the vserver name... pedantic!).

14 years agoDo we really need an exec trace for this expected state - not sure, please change...
Sapan Bhatia [Mon, 26 Apr 2010 21:28:47 +0000 (21:28 +0000)]
Do we really need an exec trace for this expected state - not sure, please change if appropriate.

14 years agoThsi appears to be a typo.
Sapan Bhatia [Mon, 26 Apr 2010 20:15:07 +0000 (20:15 +0000)]
Thsi appears to be a typo.

14 years agoCorrection to the previous commit. This is the version that was tested.
Sapan Bhatia [Mon, 26 Apr 2010 20:10:06 +0000 (20:10 +0000)]
Correction to the previous commit. This is the version that was tested.

14 years agoRecommitting this patch, after testing it on a PLC node.
Sapan Bhatia [Mon, 26 Apr 2010 20:07:33 +0000 (20:07 +0000)]
Recommitting this patch, after testing it on a PLC node.

This patch stores the slice id in a file in /etc/vservers instead of poking it in the kernel as was done previously.

14 years agoSetting tag NodeManager-2.0-5
Barış Metin [Wed, 14 Apr 2010 13:22:20 +0000 (13:22 +0000)]
Setting tag NodeManager-2.0-5
fix log_call in plugins/drl.py

14 years agolag_call requires the command to be an array
Barış Metin [Wed, 14 Apr 2010 09:38:35 +0000 (09:38 +0000)]
lag_call requires the command to be an array

14 years agoSetting tag NodeManager-2.0-4
Thierry Parmentelat [Fri, 2 Apr 2010 13:18:29 +0000 (13:18 +0000)]
Setting tag NodeManager-2.0-4
protect against nodes in migrated PLC's not having the hrn tag yet

14 years agohrn might be empty during transition period
Thierry Parmentelat [Mon, 22 Mar 2010 13:13:54 +0000 (13:13 +0000)]
hrn might be empty during transition period

14 years agoSetting tag NodeManager-2.0-3
Thierry Parmentelat [Fri, 12 Mar 2010 21:03:17 +0000 (21:03 +0000)]
Setting tag NodeManager-2.0-3
new omf-resctl and drl plugins
specialaccount optimized to overwrite authorized keys only upon changes
codemux plugin has support for a new 'ip' setting
mainloop to display ordered modules&plugins at all times

14 years agoexpose node hrn to the OMF resource controller
Thierry Parmentelat [Fri, 12 Mar 2010 10:19:48 +0000 (10:19 +0000)]
expose node hrn to the OMF resource controller

14 years agohandle all installed versions
Thierry Parmentelat [Thu, 11 Mar 2010 17:43:05 +0000 (17:43 +0000)]
handle all installed versions

14 years agochange the way 'vref' gets set on omf-control'ed slivers
Thierry Parmentelat [Wed, 10 Mar 2010 15:51:51 +0000 (15:51 +0000)]
change the way 'vref' gets set on omf-control'ed slivers

14 years agonodenetworks are now known as interfaces
Thierry Parmentelat [Wed, 10 Mar 2010 15:49:14 +0000 (15:49 +0000)]
nodenetworks are now known as interfaces

14 years ago(no commit message)
S.Çağlar Onur [Tue, 9 Mar 2010 21:29:58 +0000 (21:29 +0000)]

14 years agomerge rev 17315
S.Çağlar Onur [Tue, 9 Mar 2010 21:19:11 +0000 (21:19 +0000)]
merge rev 17315

14 years agonew omf-oriented plugins
Thierry Parmentelat [Tue, 9 Mar 2010 11:48:45 +0000 (11:48 +0000)]
new omf-oriented plugins
new tool for changing files only when needed

14 years agocosmetic fix
S.Çağlar Onur [Thu, 4 Mar 2010 15:44:58 +0000 (15:44 +0000)]
cosmetic fix

14 years agoDRL plugin
S.Çağlar Onur [Mon, 1 Mar 2010 21:41:40 +0000 (21:41 +0000)]
DRL plugin

14 years agodon't invoke /etc/init.d/codemux if it is not installed
Marc Fiuczynski [Tue, 23 Feb 2010 01:30:43 +0000 (01:30 +0000)]
don't invoke /etc/init.d/codemux if it is not installed

14 years agoEnable/disable the initscript as well.
Daniel Hokka Zakrisson [Fri, 19 Feb 2010 17:36:25 +0000 (17:36 +0000)]
Enable/disable the initscript as well.

14 years agoSetting tag NodeManager-2.0-2
Thierry Parmentelat [Thu, 11 Feb 2010 15:12:22 +0000 (15:12 +0000)]
Setting tag NodeManager-2.0-2
modules and plugins have a priority
specialaccounts appears soon in the priority chain
logger.log_call logs process output, and has a timeout
vuser{add,del} run through bash -x
nm initscript has support for 'service nm restartverbose'
logs reviewed for consistency
use hashlib module instead of sha when available

14 years agofix log_call deadlock
Thierry Parmentelat [Thu, 11 Feb 2010 12:12:37 +0000 (12:12 +0000)]
fix log_call deadlock
initscript cleaned up - now supports 'service nm restartverbose'
run vuseradd and vuserdel through bash -x (should be in verbose only but..)

14 years ago(no commit message)
Thierry Parmentelat [Wed, 10 Feb 2010 17:25:41 +0000 (17:25 +0000)]

14 years agouse hashlib and fallback to sha (for python 2.4)
Barış Metin [Wed, 10 Feb 2010 16:34:20 +0000 (16:34 +0000)]
use hashlib and fallback to sha (for python 2.4)

14 years ago(*) the various modules have a priority; lower gets invoked first
Thierry Parmentelat [Tue, 9 Feb 2010 17:37:04 +0000 (17:37 +0000)]
(*) the various modules have a priority; lower gets invoked first
(*) default is net, conf_files, specialaccounts, sm, bwmon, then the rest
(*) log_call can log child output on the fly even if hangs
(*) log_call has timeout and terminates hanging child if too long

14 years agoexpects the 'interfaces' key in GetSlivers - review logs to always mention module
Thierry Parmentelat [Fri, 5 Feb 2010 17:28:31 +0000 (17:28 +0000)]
expects the 'interfaces' key in GetSlivers - review logs to always mention module

14 years agocosmetic
Thierry Parmentelat [Sat, 30 Jan 2010 07:14:17 +0000 (07:14 +0000)]
cosmetic

14 years agomore graceful log message when GetSlivers() API called failed
Marc Fiuczynski [Sat, 30 Jan 2010 04:42:17 +0000 (04:42 +0000)]
more graceful log message when GetSlivers() API called failed

14 years agogracefully handle case where the sliver has not yet been instantiated
Marc Fiuczynski [Sat, 30 Jan 2010 04:41:15 +0000 (04:41 +0000)]
gracefully handle case where the sliver has not yet been instantiated

14 years agoSetting tag NodeManager-2.0-1
Thierry Parmentelat [Fri, 29 Jan 2010 14:21:18 +0000 (14:21 +0000)]
Setting tag NodeManager-2.0-1
first working version of 5.0:
pld.c/, db-config.d/ and nodeconfig/ scripts should now sit in the module they belong to
nodefamily is 3-fold with pldistro-fcdistro-arch
relies on GetSlivers to expose 'GetSliceFamily' for slivers
(in addition to the 'vref' tag that's still exposed too)
logging reviewed for more convenience
support for 'service nm restartdebug'
make sync knows how to publish uncommitted code on a test node

14 years agoBranch 2.0 for module NodeManager created (as new trunk) from tag NodeManager-1.8-23
Thierry Parmentelat [Fri, 29 Jan 2010 14:14:38 +0000 (14:14 +0000)]
Branch 2.0 for module NodeManager created (as new trunk) from tag NodeManager-1.8-23

14 years agologs for when PLC is unreachable
Thierry Parmentelat [Thu, 28 Jan 2010 17:24:03 +0000 (17:24 +0000)]
logs for when PLC is unreachable

14 years agofixed broken slice-creation
Thierry Parmentelat [Thu, 28 Jan 2010 14:12:32 +0000 (14:12 +0000)]
fixed broken slice-creation