Daniel Hokka Zakrisson [Fri, 27 Jul 2007 18:14:40 +0000 (18:14 +0000)]
Add vip6-autod
Daniel Hokka Zakrisson [Fri, 27 Jul 2007 18:13:55 +0000 (18:13 +0000)]
NodeManager handles IP addresses now
Daniel Hokka Zakrisson [Fri, 27 Jul 2007 18:02:08 +0000 (18:02 +0000)]
Add support for assigning IP addresses
Daniel Hokka Zakrisson [Thu, 26 Jul 2007 23:08:00 +0000 (23:08 +0000)]
Cleaner remove-all-of-AF_x
Daniel Hokka Zakrisson [Thu, 26 Jul 2007 19:00:23 +0000 (19:00 +0000)]
Clean up the IPv6 auto-configuration daemon
Daniel Hokka Zakrisson [Wed, 25 Jul 2007 19:32:47 +0000 (19:32 +0000)]
add PoC IPv6 auto-configuration daemon
Daniel Hokka Zakrisson [Tue, 24 Jul 2007 18:38:05 +0000 (18:38 +0000)]
Prettify error output.
Daniel Hokka Zakrisson [Tue, 24 Jul 2007 17:22:37 +0000 (17:22 +0000)]
Fix configuration conversion
Faiyaz Ahmed [Mon, 23 Jul 2007 19:39:37 +0000 (19:39 +0000)]
Restart nm on util-vserver-python upgrade
Daniel Hokka Zakrisson [Fri, 20 Jul 2007 19:45:35 +0000 (19:45 +0000)]
re-add Marc's patch that got lost in the merge
Daniel Hokka Zakrisson [Fri, 20 Jul 2007 19:37:47 +0000 (19:37 +0000)]
Remove unneeded requires.
Daniel Hokka Zakrisson [Fri, 20 Jul 2007 19:37:26 +0000 (19:37 +0000)]
Add the conversion scripts.
Daniel Hokka Zakrisson [Fri, 20 Jul 2007 16:31:29 +0000 (16:31 +0000)]
Add some scripts to convert a legacy config to the new tree.
Daniel Hokka Zakrisson [Wed, 18 Jul 2007 14:58:29 +0000 (14:58 +0000)]
skip the network context setup if it already exists
Daniel Hokka Zakrisson [Wed, 18 Jul 2007 14:51:37 +0000 (14:51 +0000)]
remove persistent to actually get rid of the contexts
Daniel Hokka Zakrisson [Wed, 18 Jul 2007 14:50:49 +0000 (14:50 +0000)]
indentation + use subprocess to avoid vdu zombies
Daniel Hokka Zakrisson [Tue, 17 Jul 2007 18:55:25 +0000 (18:55 +0000)]
be less strict regarding the capabilities
Faiyaz Ahmed [Tue, 17 Jul 2007 17:56:04 +0000 (17:56 +0000)]
syntax.
Faiyaz Ahmed [Tue, 17 Jul 2007 17:51:27 +0000 (17:51 +0000)]
Added CVS Id field.
Daniel Hokka Zakrisson [Mon, 16 Jul 2007 15:21:31 +0000 (15:21 +0000)]
add support for bcapabilities
Daniel Hokka Zakrisson [Fri, 13 Jul 2007 17:52:16 +0000 (17:52 +0000)]
-D makes install choke here, expecting the last path component to be a non-directory
Daniel Hokka Zakrisson [Fri, 13 Jul 2007 15:20:45 +0000 (15:20 +0000)]
get rid of update_resources, simply use self.config directly
Daniel Hokka Zakrisson [Fri, 13 Jul 2007 15:16:18 +0000 (15:16 +0000)]
work without vnet
Daniel Hokka Zakrisson [Fri, 6 Jul 2007 17:39:26 +0000 (17:39 +0000)]
set vm_running based on is_running, always update scheduler configuration
Daniel Hokka Zakrisson [Fri, 6 Jul 2007 17:38:36 +0000 (17:38 +0000)]
Fix typo.
Daniel Hokka Zakrisson [Thu, 5 Jul 2007 21:16:52 +0000 (21:16 +0000)]
fix some logic flaws
Daniel Hokka Zakrisson [Thu, 5 Jul 2007 19:05:15 +0000 (19:05 +0000)]
merge with 0.30.213
Daniel Hokka Zakrisson [Thu, 5 Jul 2007 18:38:05 +0000 (18:38 +0000)]
This commit was generated by cvs2svn to compensate for changes in r2826,
which included commits to RCS files with non-trunk default branches.
Marc Fiuczynski [Thu, 28 Jun 2007 21:35:20 +0000 (21:35 +0000)]
use platform provided RLIMIT_ values
Stephen Soltesz [Fri, 22 Jun 2007 17:10:34 +0000 (17:10 +0000)]
bumped release version for NM
David E. Eisenstat [Thu, 21 Jun 2007 15:29:17 +0000 (15:29 +0000)]
Don't nuke /var/run.
Marc Fiuczynski [Thu, 14 Jun 2007 21:59:07 +0000 (21:59 +0000)]
Sapan's fix for hung init script processes
Marc Fiuczynski [Thu, 31 May 2007 18:23:18 +0000 (18:23 +0000)]
don't use lamba; put calls to vserverimpl in try blocks
Marc Fiuczynski [Thu, 31 May 2007 18:21:52 +0000 (18:21 +0000)]
drops passing in flags to pl_chcontext
David E. Eisenstat [Sun, 20 May 2007 12:45:00 +0000 (12:45 +0000)]
Change "slice suspended" and "not been allocated resources" messages to include hostname.
Marc Fiuczynski [Tue, 15 May 2007 16:22:37 +0000 (16:22 +0000)]
- clean up vserver_set_rlimit()
- clean up vserver_isrunning() to return Python Bool
Marc Fiuczynski [Tue, 15 May 2007 16:20:55 +0000 (16:20 +0000)]
making 'adjust_lim' global function
Marc Fiuczynski [Thu, 10 May 2007 22:45:08 +0000 (22:45 +0000)]
Fixed typo
Marc Fiuczynski [Thu, 10 May 2007 22:39:14 +0000 (22:39 +0000)]
Reset internal state (limits_changed) of a vserver when the sliver is
started or stopped.
Marc Fiuczynski [Thu, 10 May 2007 22:37:05 +0000 (22:37 +0000)]
Added support maintain state about whether limits have changed since
the last time the vserver was started.
Marc Fiuczynski [Thu, 10 May 2007 22:35:32 +0000 (22:35 +0000)]
Fix vserver_isrunning() by doing a simple stat of /proc/virtual/
Marc Fiuczynski [Thu, 10 May 2007 20:21:13 +0000 (20:21 +0000)]
Cleaned up limit setting code
Marc Fiuczynski [Thu, 10 May 2007 15:30:21 +0000 (15:30 +0000)]
Added is_running method.
Added methods to support the setting and getting of a number of
vserver related rlimits: CPU, RSS, NRPC, NOFILE, MEMLOCK, AS, LOCKS,
SIGPENDING, MSGQUEUE, NSOCK, OPENFD, ANON, SHMEM.
Added methods to support the setting and getting of the above rlimit
values to the vserver's config file.
Added method to set the vserver's WHITELISTED variable in its config
file. This value is checked by vsh.
Deleted {s,g}et_memlimit {s,g}et_tasklimit.
Marc Fiuczynski [Thu, 10 May 2007 15:26:34 +0000 (15:26 +0000)]
Added in a number of python exposed vserver constants.
Cleaned up support for setting/getting vserver rlimits.
Added 'vserver_isrunning' function.
Marc Fiuczynski [Thu, 10 May 2007 15:24:09 +0000 (15:24 +0000)]
Moved getlimits and other support functions out to planetlab.[ch].
Cleaned up 'sandbox_processes' function.
Print error message when a vserver is not on a node's whitelist.
Marc Fiuczynski [Thu, 10 May 2007 15:22:08 +0000 (15:22 +0000)]
generalized setting and getting of vserver limits
Marc Fiuczynski [Thu, 10 May 2007 15:20:50 +0000 (15:20 +0000)]
command line program to both get and set a vservers disklimits
Marc Fiuczynski [Thu, 10 May 2007 15:20:16 +0000 (15:20 +0000)]
bumbed release number and added 'disklimit' as another file to be deployed with this rpm
Mark Huang [Wed, 7 Feb 2007 04:21:11 +0000 (04:21 +0000)]
- on: sanity check exempt rates
Mark Huang [Wed, 7 Feb 2007 04:20:59 +0000 (04:20 +0000)]
- set_bwlimit: interpret only minrate = None to mean turn off bwlimits
Marc Fiuczynski [Wed, 31 Jan 2007 15:23:51 +0000 (15:23 +0000)]
backing out to version 208 of util-vserver
Marc Fiuczynski [Sat, 20 Jan 2007 01:59:17 +0000 (01:59 +0000)]
add in sample.conf to defaults_DATA; needed by vuseradd
Marc Fiuczynski [Sat, 20 Jan 2007 01:46:45 +0000 (01:46 +0000)]
set Name, Version, and URL properly
Marc Fiuczynski [Sat, 20 Jan 2007 01:40:24 +0000 (01:40 +0000)]
Fix up util-vserver-python support.
Marc Fiuczynski [Thu, 18 Jan 2007 16:34:29 +0000 (16:34 +0000)]
merge to 0.30.212
Marc Fiuczynski [Thu, 18 Jan 2007 16:31:58 +0000 (16:31 +0000)]
This commit was generated by cvs2svn to compensate for changes in r2562,
which included commits to RCS files with non-trunk default branches.
Mark Huang [Fri, 15 Dec 2006 20:37:03 +0000 (20:37 +0000)]
bump release
Faiyaz Ahmed [Wed, 13 Dec 2006 21:48:14 +0000 (21:48 +0000)]
* Passing maxrate = 0 to bwlimit.set() defaults to minrate. tc doesn't like anything
less than 10.
David E. Eisenstat [Fri, 1 Dec 2006 21:50:02 +0000 (21:50 +0000)]
Use -p flag for useradd instead of running sed on /etc/shadow.
Mark Huang [Mon, 27 Nov 2006 22:32:59 +0000 (22:32 +0000)]
- add defaults to init()
- init(): restore old settings as best we can
Mark Huang [Sat, 18 Nov 2006 01:34:49 +0000 (01:34 +0000)]
force symlink creation
Mark Huang [Mon, 13 Nov 2006 18:57:21 +0000 (18:57 +0000)]
- move vserver-reference to .vref/default
Mark Huang [Mon, 13 Nov 2006 18:49:31 +0000 (18:49 +0000)]
- add -t option for specifying reference type (e.g. "default" or
"planetflow")
- look for reference images in /vservers/.vref/
Mark Huang [Thu, 24 Aug 2006 20:13:53 +0000 (20:13 +0000)]
- bump release number for vserver.py bugfix
David E. Eisenstat [Thu, 20 Jul 2006 13:31:27 +0000 (13:31 +0000)]
Fixed bug in method __update_config_file where when updating multiple fields, the character count from the regular expression match might get out of sync with data.
Mark Huang [Sat, 1 Jul 2006 20:42:39 +0000 (20:42 +0000)]
- remove resman check
Mark Huang [Fri, 26 May 2006 22:20:14 +0000 (22:20 +0000)]
fix triggerpostun workaround
Mark Huang [Tue, 9 May 2006 22:36:24 +0000 (22:36 +0000)]
- bump release number
Steve Muir [Mon, 1 May 2006 21:58:11 +0000 (21:58 +0000)]
Bump release number
Steve Muir [Mon, 1 May 2006 21:53:02 +0000 (21:53 +0000)]
Fix set_bwlimit() to accept parameters for limit-exempt class
Mark Huang [Mon, 1 May 2006 14:16:34 +0000 (14:16 +0000)]
simple interface to bwlimit.py module
Mark Huang [Mon, 1 May 2006 00:03:26 +0000 (00:03 +0000)]
deprecate resman, install our own bwlimit tool
Mark Huang [Wed, 26 Apr 2006 18:34:30 +0000 (18:34 +0000)]
RPMs get upgraded by installing the new one, then uninstalling the
old one. Since we no longer own the byte-compiled modules, they may
be removed right after we create them in %post if we are upgraded
from a version that did own them at one point. This section should
be removed once all packages have been upgraded to at least this
version.
Mark Huang [Mon, 24 Apr 2006 20:04:13 +0000 (20:04 +0000)]
- move all function documentation inside their respective functions
- format_tc_rate: optimize formatting for whole gbit and mbit values
- get_slice: split into two functions, get_slice() and get_xid()
- support setting exempt minrate/maxrate
- support getting exempt minrate/maxrate and current byte counts
- add set() function, same as on() but just pushes to the default
netdevice
- remove deprecated setcap() and getcap() functions; rewrote pl_mom
bandwidth monitor to use this module, so we can now finally
kill resman
Mark Huang [Fri, 21 Apr 2006 01:27:06 +0000 (01:27 +0000)]
create util-vserver-python datadir with correct permissions
Mark Huang [Tue, 11 Apr 2006 19:17:21 +0000 (19:17 +0000)]
merge .spec changes
Mark Huang [Tue, 11 Apr 2006 19:15:13 +0000 (19:15 +0000)]
- byte compile and install at %post time
Mark Huang [Thu, 6 Apr 2006 02:50:25 +0000 (02:50 +0000)]
- bump release number
Mark Huang [Thu, 6 Apr 2006 02:49:26 +0000 (02:49 +0000)]
- apparently commenting out Requires: lines is not enough!
Mark Huang [Wed, 5 Apr 2006 22:13:19 +0000 (22:13 +0000)]
Remove apt dependency
Steve Muir [Wed, 15 Mar 2006 16:41:21 +0000 (16:41 +0000)]
Load the ipset-related modules in init()
Steve Muir [Tue, 14 Mar 2006 22:57:50 +0000 (22:57 +0000)]
remove some PL-specific details
Steve Muir [Tue, 14 Mar 2006 22:57:16 +0000 (22:57 +0000)]
Export value for infinite disk quota.
get_bwlimit() should return None if not limit set.
Steve Muir [Tue, 14 Mar 2006 15:16:06 +0000 (15:16 +0000)]
Read default VM id from config file
Steve Muir [Tue, 14 Mar 2006 15:02:54 +0000 (15:02 +0000)]
Set a more sensible default CPU share
Steve Muir [Tue, 14 Mar 2006 14:54:48 +0000 (14:54 +0000)]
Fix handling of CPU scheduling parameters
Steve Muir [Mon, 13 Mar 2006 23:27:17 +0000 (23:27 +0000)]
PLC API functionality moved to Node Manager
Steve Muir [Thu, 9 Mar 2006 22:37:22 +0000 (22:37 +0000)]
Remove any notions of rspecs from util-vserver, fix handling of resources
Steve Muir [Thu, 9 Mar 2006 22:35:30 +0000 (22:35 +0000)]
Remove any notions of rspecs from util-vserver
Mark Huang [Wed, 1 Mar 2006 22:37:24 +0000 (22:37 +0000)]
- fix description
Mark Huang [Wed, 1 Mar 2006 22:04:12 +0000 (22:04 +0000)]
- stub, only provides anonymous access to API. At some point, Node
Manager should provide some localhost interface for retrieving the
proper authentication parameters as well as the API server to use.
Mark Huang [Wed, 1 Mar 2006 22:03:38 +0000 (22:03 +0000)]
- also install plcapi.py stub
Mark Huang [Wed, 1 Mar 2006 22:02:52 +0000 (22:02 +0000)]
- set up IP sets for bandwidth exemption
- change output of get/show so that it can be easily used to save
current set of bwlimits
Mark Huang [Wed, 1 Mar 2006 18:54:38 +0000 (18:54 +0000)]
- don't let root drown out all other traffic; instead, just give it 5
shares (instead of an absolute higher priority)
- init: don't try to re-apply current state
- off: check to see that the buckets exist before deleting them
Mark Huang [Wed, 1 Mar 2006 16:28:51 +0000 (16:28 +0000)]
- rename "guarantee" to "bwmin" which is really what it represents: the
smallest that we can set the HTB "rate" parameter to
- Fix the borrowing model. You need a parent class to make borrowing
between child classes work. Now what happens makes sense: all slices
fairly share access to bandwidth in excess of guarantees (minrate) and
below the various caps (bwcap and bwmax).
Mark Huang [Mon, 27 Feb 2006 01:58:09 +0000 (01:58 +0000)]
- rewrite to support a fairly shared "unlimited" bandwidth class
Mark Huang [Wed, 22 Feb 2006 23:48:45 +0000 (23:48 +0000)]
bump release number for bwlimit.py rewrite
Mark Huang [Wed, 22 Feb 2006 23:46:51 +0000 (23:46 +0000)]
- clean up this script, merge relevant resman/scripts/bwlimit
functionality into here
- add tons of documentation, and fix a minor (haha) bug: tc reports
minor class numbers in hexadecimal, not decimal. Fix things so that it
works with VNET, which classifies packets from xid 500 into class
1:1f4, *not* 1:500.
- set the "default" minor class number to ffff to emphasize this point.
- VNET now classifies packets, no need for class filters
- don't override cburst, let tc decide what it should be, which sounds
reasonable. At least until we figure out if burst lengths should be
related to shares.
- make everything just a whole lot nicer to use
Steve Muir [Fri, 17 Feb 2006 18:50:56 +0000 (18:50 +0000)]
Add support for guaranteed CPU shares
Steve Muir [Wed, 18 Jan 2006 01:01:09 +0000 (01:01 +0000)]
Update disk usage info when get_disklimit called