Faiyaz Ahmed [Mon, 28 Jul 2008 20:13:21 +0000 (20:13 +0000)]
Tagging module NodeManager - NodeManager-1.7-23
After removing the fork() to the slice's uid when writing .ssh/authorized_keys, .ssh had the wrong owner/group. Fixed.
Faiyaz Ahmed [Mon, 28 Jul 2008 19:43:57 +0000 (19:43 +0000)]
Chown .ssh to user:slices. SSH will bail otherwise.
Faiyaz Ahmed [Sat, 26 Jul 2008 02:51:12 +0000 (02:51 +0000)]
Tagging module NodeManager - NodeManager-1.7-22
Small change. Change uid to slice owner of authorized_keys.
Faiyaz Ahmed [Sat, 26 Jul 2008 02:49:30 +0000 (02:49 +0000)]
Change ownership of authorized_keys after writing
Faiyaz Ahmed [Wed, 23 Jul 2008 15:51:57 +0000 (15:51 +0000)]
Tagging module NodeManager - NodeManager-1.7-21
Slices with initscripts kept restarting. Fixed.
Also removed unnecessary fork just to write .ssh/authorized keys for every slice.
Faiyaz Ahmed [Tue, 22 Jul 2008 22:32:01 +0000 (22:32 +0000)]
* Slices w/ initscripts were starting repeatedly because the flag that signals the initscript has not changed was being toggled after the fork(). Fixed.
Faiyaz Ahmed [Tue, 22 Jul 2008 15:45:01 +0000 (15:45 +0000)]
why are we forking here? Removed fork just to write a file.
Faiyaz Ahmed [Tue, 15 Jul 2008 21:25:34 +0000 (21:25 +0000)]
Tagging module NodeManager - NodeManager-1.7-20
* Check slice is_running() every cycle. If not, assume damaged and restart.
Faiyaz Ahmed [Tue, 15 Jul 2008 21:10:56 +0000 (21:10 +0000)]
Added logging. Forgot to return anything; threads would blow up since test of is_runing would fail.
Faiyaz Ahmed [Mon, 14 Jul 2008 22:00:52 +0000 (22:00 +0000)]
Add check to see if sliver is_running() during ensure_created. Previously, if the object existed in the database, it was assumed the sliver was running and the start() operation would ignore the record. However, if a sliver is damaged, its best to query util-vserver to actually make sure the slice is indeed running.
Daniel Hokka Zakrisson [Mon, 7 Jul 2008 16:22:57 +0000 (16:22 +0000)]
Tagging module NodeManager - NodeManager-1.7-19
chrooting is not thread-safe.
Daniel Hokka Zakrisson [Mon, 7 Jul 2008 16:13:12 +0000 (16:13 +0000)]
Use the right variable.
Daniel Hokka Zakrisson [Mon, 7 Jul 2008 15:58:24 +0000 (15:58 +0000)]
chrooting is not thread-safe. Install the initscript before calling VServer.start instead, where we know we're the only thread running.
Faiyaz Ahmed [Fri, 27 Jun 2008 17:32:13 +0000 (17:32 +0000)]
Tagging module NodeManager - NodeManager-1.7-18
Log disk init AFTER acquiring disk semaphore.
Faiyaz Ahmed [Fri, 27 Jun 2008 16:48:20 +0000 (16:48 +0000)]
Print log only after global vdu semaphore is acquired. Misleading otherwise.
Thierry Parmentelat [Wed, 25 Jun 2008 09:09:58 +0000 (09:09 +0000)]
Tagging module NodeManager - NodeManager-1.7-17
unconditionnally passes node_id and slicefamily to conf_file scripts
correctly set personality a sliver creation time (not yet used by util-vserver-pl though)
Thierry Parmentelat [Wed, 25 Jun 2008 08:55:42 +0000 (08:55 +0000)]
passes slicefamily unconditionnaly, as for node_id
Thierry Parmentelat [Wed, 25 Jun 2008 08:49:22 +0000 (08:49 +0000)]
enable & fix keyword expansion
Thierry Parmentelat [Wed, 25 Jun 2008 08:17:57 +0000 (08:17 +0000)]
conf_files has support for @SLICEFAMILY@ in sources
new functions for reading node's arch, node_id and the like have moved in tools.py
Thierry Parmentelat [Tue, 24 Jun 2008 16:12:40 +0000 (16:12 +0000)]
cross-module change for 4.2
- NodeManager/conf_files set node_id when invoking source URL
- nodeconfig/yum.conf.php : no functional change, but uses node_id to gather nodegroups and displays them in comments
Thierry Parmentelat [Tue, 24 Jun 2008 07:43:06 +0000 (07:43 +0000)]
set personality for slivers with a different arch
Stephen Soltesz [Thu, 19 Jun 2008 19:13:58 +0000 (19:13 +0000)]
Tagging module NodeManager - NodeManager-1.7-16
enables a vsys slice attribute to end with 'a', 'c', or 'l' characters without
NM going bonkers.
Stephen Soltesz [Thu, 19 Jun 2008 19:12:02 +0000 (19:12 +0000)]
Stupidest bug in history.
rstrip is a character oriented function, that nukes all characters in the
argument, therefore, an attribute named "comon_exec.acl" will strip all the
right most, 'a', 'c', 'l', and '.' characters. The result is 'comon_exe' b/c
of the trailing 'c'.
Ugg.
Stephen Soltesz [Wed, 18 Jun 2008 19:29:40 +0000 (19:29 +0000)]
Tagging module NodeManager - NodeManager-1.7-15
enable restart if vsys.conf changes also.
Stephen Soltesz [Wed, 18 Jun 2008 19:01:11 +0000 (19:01 +0000)]
also set vsys to restart when the vsys.conf file is re-written.
this avoids the vsys update, which may wipe out the current /etc/vsys.conf
file, from keeping vsys dysfunctional forever. Previously, vsys never would
have been restarted.
Stephen Soltesz [Wed, 18 Jun 2008 17:31:10 +0000 (17:31 +0000)]
Tagging module NodeManager - NodeManager-1.7-14
the _restart flag for vsys was getting lost when looking across multiple
vservers. adding the 'or' should preserve any 'True' returns from
createVsysDir()
Stephen Soltesz [Wed, 18 Jun 2008 17:18:16 +0000 (17:18 +0000)]
the _restart value was being reset when subsequent slices weren't yet created.
the result was that vsys was not being restarted when it should be.
Faiyaz Ahmed [Tue, 17 Jun 2008 20:09:58 +0000 (20:09 +0000)]
Tagging module NodeManager - NodeManager-1.7-13
Time out curl when no response for 90 seconds.
Faiyaz Ahmed [Tue, 17 Jun 2008 18:47:22 +0000 (18:47 +0000)]
Timeout curl in the event Apache (PLC side) opens the XMLRPC session, but returns no data for specified timeout.
Stephen Soltesz [Fri, 13 Jun 2008 22:03:34 +0000 (22:03 +0000)]
Tagging module NodeManager - NodeManager-1.7-12
Patch designed to work around the vsys-fail-to-restart problem with
non-existent directories, and the vuseradd-fail-to-work on directories that
do exist.
This patch will work in conjunction with the new vsys patch.
Stephen Soltesz [Fri, 13 Jun 2008 21:57:42 +0000 (21:57 +0000)]
patch to not create the /vservers/slicename/vsys directory until vuseradd has
created /vservers/slicename, then report the difference so that vsys can be
restarted even if the configuration files have not been movidifed.
Restarting vsys will ensure that it re-reads the config file. The preferred
long-term solution is for vsys to auto-read it's config files using the
same/similar inotify mechanism used on the pipes.
Thierry Parmentelat [Mon, 9 Jun 2008 15:24:29 +0000 (15:24 +0000)]
taglevel on the 1.7-11 tag had remained 10 - also moving the trunk to 1.8-0 as 1.7 is confusing
Faiyaz Ahmed [Wed, 4 Jun 2008 20:43:00 +0000 (20:43 +0000)]
Log when talking to PLC.
Faiyaz Ahmed [Wed, 4 Jun 2008 20:10:54 +0000 (20:10 +0000)]
Don't wait for vserver to be running before starting vsys on slice.
Faiyaz Ahmed [Wed, 4 Jun 2008 19:59:57 +0000 (19:59 +0000)]
Removed proper.
Thierry Parmentelat [Wed, 14 May 2008 12:53:55 +0000 (12:53 +0000)]
Tagging module NodeManager - NodeManager-1.7-10
fixed doc build by locating locally installed DTDs at build-time
Thierry Parmentelat [Wed, 14 May 2008 12:25:29 +0000 (12:25 +0000)]
merge changeset 9346 in the 4.2 branches
Faiyaz Ahmed [Fri, 9 May 2008 21:24:48 +0000 (21:24 +0000)]
Tagging module NodeManager - NodeManager-1.7-9
* Reverted vserver start to forking before VServer.start to avoid defunct procs.* House keeping in various places.
Faiyaz Ahmed [Fri, 9 May 2008 21:21:39 +0000 (21:21 +0000)]
* Avoids defunct procs
* generalized architecture vserver reference code.
Thierry Parmentelat [Fri, 9 May 2008 11:42:13 +0000 (11:42 +0000)]
Tagging module NodeManager - NodeManager-1.7-8
merge changes for myplc-docs from trunk
Thierry Parmentelat [Fri, 9 May 2008 11:40:34 +0000 (11:40 +0000)]
nm branch : merge changesets 9269 and 9278
Faiyaz Ahmed [Wed, 16 Apr 2008 21:31:48 +0000 (21:31 +0000)]
Tagging module NodeManager - NodeManager-1.7-7
Set vcVHI_CONTEXT as slice_id for fprobe-ulog to mark packets with.
Faiyaz Ahmed [Wed, 16 Apr 2008 21:26:57 +0000 (21:26 +0000)]
setname as part of set_resources. Better than stupid sleep while part of start(). Called from VServer.__do_chcontext().
Faiyaz Ahmed [Wed, 16 Apr 2008 20:49:51 +0000 (20:49 +0000)]
Set name to slice_id during start.
Removed extra fork during start.
Faiyaz Ahmed [Wed, 9 Apr 2008 19:08:08 +0000 (19:08 +0000)]
Tagging module NodeManager - NodeManager-1.7-6
* Codemux will use PLC_API_HOST when PLC_PLANETFLOW_HOST isn't defined.
Faiyaz Ahmed [Wed, 9 Apr 2008 19:01:02 +0000 (19:01 +0000)]
BW limits and resources are handled by bwmon.py
Faiyaz Ahmed [Wed, 9 Apr 2008 19:00:48 +0000 (19:00 +0000)]
Use API host when Planetflow host isn't defined.
Faiyaz Ahmed [Fri, 4 Apr 2008 20:00:49 +0000 (20:00 +0000)]
Tagging module NodeManager - NodeManager-1.7-5
* vdu limitting when NM restarts and slices are re-init'ed
* CoDemux config parser update. Now tolerates spaces.
Faiyaz Ahmed [Fri, 4 Apr 2008 19:54:58 +0000 (19:54 +0000)]
File locking isn't exclusive in the same process across threads. Switched to regular semaphores. The assumption is sliver_vs.configure is called before Vserver.start(), which sets disk_usage_initialized. The disk check should be skipped during start, so the lock won't carry over. ...I hope.
Faiyaz Ahmed [Thu, 3 Apr 2008 22:15:41 +0000 (22:15 +0000)]
Fix config file parsing. Blank lines were messing thigns up.
Faiyaz Ahmed [Wed, 2 Apr 2008 21:15:36 +0000 (21:15 +0000)]
Fixed api deliver_ticket bug.
Faiyaz Ahmed [Wed, 2 Apr 2008 21:13:21 +0000 (21:13 +0000)]
Updated changelog
Faiyaz Ahmed [Wed, 2 Apr 2008 19:14:09 +0000 (19:14 +0000)]
Added support for multiple host -> same slice mappings
Faiyaz Ahmed [Tue, 1 Apr 2008 21:47:59 +0000 (21:47 +0000)]
Bump revision.
Faiyaz Ahmed [Tue, 1 Apr 2008 21:39:50 +0000 (21:39 +0000)]
Syntax error when writing config file
Faiyaz Ahmed [Fri, 28 Mar 2008 19:18:26 +0000 (19:18 +0000)]
updated changelog.
Faiyaz Ahmed [Fri, 28 Mar 2008 17:50:54 +0000 (17:50 +0000)]
Bump versions
Faiyaz Ahmed [Fri, 28 Mar 2008 17:20:11 +0000 (17:20 +0000)]
Latest branch.
Faiyaz Ahmed [Thu, 27 Mar 2008 20:34:26 +0000 (20:34 +0000)]
get config from file.
Faiyaz Ahmed [Thu, 27 Mar 2008 19:17:51 +0000 (19:17 +0000)]
sort domain name. lower order domains should be first.
Faiyaz Ahmed [Tue, 25 Mar 2008 19:21:16 +0000 (19:21 +0000)]
root slice needs to come first. Also, emtpy conf file now handled correctly.
Faiyaz Ahmed [Tue, 25 Mar 2008 17:35:01 +0000 (17:35 +0000)]
* Checks for zombied pids during restart
* Fixed toggling of instantiated slices.
Faiyaz Ahmed [Mon, 24 Mar 2008 21:41:20 +0000 (21:41 +0000)]
add carriage return to lines
Faiyaz Ahmed [Mon, 24 Mar 2008 21:30:00 +0000 (21:30 +0000)]
Added codemux
Faiyaz Ahmed [Mon, 24 Mar 2008 21:29:32 +0000 (21:29 +0000)]
* Now callback in NM by default
* Clean up after slice is removed
Faiyaz Ahmed [Mon, 24 Mar 2008 21:00:32 +0000 (21:00 +0000)]
path fix.
Faiyaz Ahmed [Mon, 24 Mar 2008 20:00:59 +0000 (20:00 +0000)]
Initial Commit.
Faiyaz Ahmed [Mon, 24 Mar 2008 19:50:38 +0000 (19:50 +0000)]
Initial commit.
Thierry Parmentelat [Sat, 22 Mar 2008 11:03:45 +0000 (11:03 +0000)]
multiple slice falvours - second iteration
* review naming scheme for system slices; now planetflow vref image is named like
planetflow-f8-i386 for consistency
* use for sensible name for the stamp where default slicefamily is stored
Thierry Parmentelat [Fri, 21 Mar 2008 21:09:39 +0000 (21:09 +0000)]
fixed a couple remaining issues, seems to work
Thierry Parmentelat [Fri, 21 Mar 2008 20:55:48 +0000 (20:55 +0000)]
fixed syntax error
Faiyaz Ahmed [Fri, 21 Mar 2008 18:27:10 +0000 (18:27 +0000)]
Check to see if slice is running first before creating /vsys directory.
Thierry Parmentelat [Fri, 21 Mar 2008 16:35:32 +0000 (16:35 +0000)]
support for multiple slice reference images
* vserver-reference rpm names have changed and become
vserver-@pldistro@-@fcdistro@-@arch@
vserver-systemslices-@pldistro@-@fcdistro@-@arch@
* this contains the images located as
/vservers/.vref/@pldistro@-@fcdistro@-@arch@
and
/vservers/.vstub/@pldistro@-@fcdistro@-@arch@/planetflow
respectively
* a stamp gets created on the nodes as /etc/planetlab/defaultvref
that contains the name for the default slicefamily to use
* nodemanager tries to be smart when chosing the right argument to pass to vuseradd
for this purpose, the argument in 'vref' is taken as a dash-separated list of 'wishes'
so e.g. is defaultvref is planetlab-f8-x86_64, then we should find for the image name:
vref=i386 -> vuseradd -t planetlab-f8-i386
vref=centos5 -> vuseradd -t planetlab-centos5-x86_64
vref=planetflow -> vuseradd -t planetflow
vref=centos5-onelab -> vuseradd -t onelab-centos5-x86_64
for legacy reasons, if the stamp is not found, 'default' is taken instead
=== status
* this is only partly tested
* a given node can install several variants of vserver-*
this would require a manual upload of the rpms into the right install-rpms
and manual changes in yumgroups.
* next improvement would be to have the system (planetflow) slices have a smarter naming scheme as well
this way a 'planetflow' vref would rather be rewritten as planetflow-f8-x86_64
for the time being it is not supported to install several variants of vserver-systemslices
on the node - although it should be harmless
Faiyaz Ahmed [Fri, 7 Mar 2008 22:24:31 +0000 (22:24 +0000)]
Bug fix for caching dead slices.
Faiyaz Ahmed [Fri, 7 Mar 2008 20:34:59 +0000 (20:34 +0000)]
Less noisey logging. Also uses LOG_LEVEL now.
Faiyaz Ahmed [Thu, 6 Mar 2008 22:06:13 +0000 (22:06 +0000)]
fixed deletion logic. ..this is sloppy but it works. Also fixed network shares.
Faiyaz Ahmed [Thu, 6 Mar 2008 16:01:56 +0000 (16:01 +0000)]
to support pl_mom list emails instead of mails to support
John Doe [Wed, 5 Mar 2008 09:43:05 +0000 (09:43 +0000)]
simple patch for redirecting pl-mom notification to the right mailing list
Stephen Soltesz [Tue, 4 Mar 2008 19:26:17 +0000 (19:26 +0000)]
Added code to reduce duplicate entries in /etc/vsys.conf; this will help play
more nicely with vsys.
Stephen Soltesz [Fri, 29 Feb 2008 19:27:55 +0000 (19:27 +0000)]
Added stuff for the NM API.
Stephen Soltesz [Fri, 29 Feb 2008 19:27:12 +0000 (19:27 +0000)]
Script to automatically upload changes in a drupal page to drupal. Handy for
the api. This almost works, but not quite. It worked on a recent myplc, but doesn't
work on the production box. I don't know why.
Faiyaz Ahmed [Wed, 27 Feb 2008 14:28:42 +0000 (14:28 +0000)]
Added sharing for loans.
Thierry Parmentelat [Thu, 14 Feb 2008 18:33:10 +0000 (18:33 +0000)]
Configures vsys via vsys slice attribute {name: vsys, value: script}
CPU reservations are now calculated via percentages instead of shares
BW totals preserved for dynamic slices
Closes bug where node cap sets off bw slice alarms for all slices.
Manual fix after a broken module-tag.py attempt
Faiyaz Ahmed [Wed, 13 Feb 2008 17:25:25 +0000 (17:25 +0000)]
Include vsys.
Faiyaz Ahmed [Wed, 13 Feb 2008 17:24:46 +0000 (17:24 +0000)]
include vsys call back.
Faiyaz Ahmed [Wed, 13 Feb 2008 17:15:41 +0000 (17:15 +0000)]
Cleaned up bugs. Now works as advertised.
Faiyaz Ahmed [Mon, 11 Feb 2008 22:35:32 +0000 (22:35 +0000)]
fixed typos.
Faiyaz Ahmed [Mon, 11 Feb 2008 21:59:36 +0000 (21:59 +0000)]
Secure, and configure vsys scripts.
Faiyaz Ahmed [Thu, 7 Feb 2008 19:50:58 +0000 (19:50 +0000)]
typo
Faiyaz Ahmed [Wed, 6 Feb 2008 22:05:32 +0000 (22:05 +0000)]
long awaited vsys callback. Still in progress.
Faiyaz Ahmed [Thu, 31 Jan 2008 17:09:31 +0000 (17:09 +0000)]
debugging off
Faiyaz Ahmed [Thu, 24 Jan 2008 20:48:21 +0000 (20:48 +0000)]
fixed syntax error and added sanity checking.
Faiyaz Ahmed [Wed, 23 Jan 2008 22:32:28 +0000 (22:32 +0000)]
proposed fix for spurious emails when admins set node caps. Also fix for keeping persistent slice information for delegated slices. Should work with regular slices too...
Faiyaz Ahmed [Tue, 22 Jan 2008 20:59:58 +0000 (20:59 +0000)]
can't kill processes in other contexts.
Faiyaz Ahmed [Tue, 22 Jan 2008 20:46:00 +0000 (20:46 +0000)]
s/cpu_min/cpu_pct/g
Thierry Parmentelat [Tue, 22 Jan 2008 15:41:18 +0000 (15:41 +0000)]
the full version number includes taglevel already
Andy Bavier [Mon, 21 Jan 2008 19:39:20 +0000 (19:39 +0000)]
Change cpu_min to cpu_pct to avoid name conflict with attributes affecting rlimits
Andy Bavier [Mon, 21 Jan 2008 19:20:22 +0000 (19:20 +0000)]
Clean up code for setting rlimits
Faiyaz Ahmed [Wed, 16 Jan 2008 22:06:09 +0000 (22:06 +0000)]
"use name instead of id for initscript.
Andy Bavier [Wed, 16 Jan 2008 22:03:59 +0000 (22:03 +0000)]
Change default CPU share from 32 to 1