util-vserver.git
16 years agoThis commit was manufactured by cvs2svn to create branch planetlab-4_0-rc3 planetlab-4_0-rc3
Planet-Lab Support [Tue, 17 Jul 2007 19:25:33 +0000 (19:25 +0000)]
This commit was manufactured by cvs2svn to create branch
'planetlab-4_0-rc3'.

16 years agoIncludes Sapan's initscript fix.
Faiyaz Ahmed [Tue, 17 Jul 2007 18:44:58 +0000 (18:44 +0000)]
Includes Sapan's initscript fix.

17 years agoThis commit was manufactured by cvs2svn to create branch
Planet-Lab Support [Wed, 7 Feb 2007 04:25:40 +0000 (04:25 +0000)]
This commit was manufactured by cvs2svn to create branch
'planetlab-4_0-rc3'.

17 years agomerge changes from head
Mark Huang [Wed, 7 Feb 2007 04:25:37 +0000 (04:25 +0000)]
merge changes from head

17 years agoThis commit was manufactured by cvs2svn to create branch
Planet-Lab Support [Wed, 31 Jan 2007 15:23:52 +0000 (15:23 +0000)]
This commit was manufactured by cvs2svn to create branch
'planetlab-4_0-branch'.

17 years agobacking out to version 208 of util-vserver
Marc Fiuczynski [Wed, 31 Jan 2007 15:23:51 +0000 (15:23 +0000)]
backing out to version 208 of util-vserver

17 years agoadd in sample.conf to defaults_DATA; needed by vuseradd
Marc Fiuczynski [Sat, 20 Jan 2007 01:59:17 +0000 (01:59 +0000)]
add in sample.conf to defaults_DATA; needed by vuseradd

17 years agoset Name, Version, and URL properly
Marc Fiuczynski [Sat, 20 Jan 2007 01:46:45 +0000 (01:46 +0000)]
set Name, Version, and URL properly

17 years agoFix up util-vserver-python support.
Marc Fiuczynski [Sat, 20 Jan 2007 01:40:24 +0000 (01:40 +0000)]
Fix up util-vserver-python support.

17 years agomerge to 0.30.212
Marc Fiuczynski [Thu, 18 Jan 2007 16:34:29 +0000 (16:34 +0000)]
merge to 0.30.212

17 years agoThis commit was generated by cvs2svn to compensate for changes in r2562,
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.

17 years agobump release
Mark Huang [Fri, 15 Dec 2006 20:37:03 +0000 (20:37 +0000)]
bump release

17 years ago* Passing maxrate = 0 to bwlimit.set() defaults to minrate. tc doesn't like anything
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.

17 years agoUse -p flag for useradd instead of running sed on /etc/shadow.
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.

17 years ago- add defaults to init()
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

17 years agoforce symlink creation
Mark Huang [Sat, 18 Nov 2006 01:34:49 +0000 (01:34 +0000)]
force symlink creation

17 years ago- move vserver-reference to .vref/default
Mark Huang [Mon, 13 Nov 2006 18:57:21 +0000 (18:57 +0000)]
- move vserver-reference to .vref/default

17 years ago- add -t option for specifying reference type (e.g. "default" or
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/

17 years ago- bump release number for vserver.py bugfix
Mark Huang [Thu, 24 Aug 2006 20:13:53 +0000 (20:13 +0000)]
- bump release number for vserver.py bugfix

17 years agoFixed bug in method __update_config_file where when updating multiple fields, the...
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.

17 years ago- remove resman check
Mark Huang [Sat, 1 Jul 2006 20:42:39 +0000 (20:42 +0000)]
- remove resman check

17 years agofix triggerpostun workaround
Mark Huang [Fri, 26 May 2006 22:20:14 +0000 (22:20 +0000)]
fix triggerpostun workaround

17 years ago- bump release number
Mark Huang [Tue, 9 May 2006 22:36:24 +0000 (22:36 +0000)]
- bump release number

17 years agoBump release number
Steve Muir [Mon, 1 May 2006 21:58:11 +0000 (21:58 +0000)]
Bump release number

17 years agoFix set_bwlimit() to accept parameters for limit-exempt class
Steve Muir [Mon, 1 May 2006 21:53:02 +0000 (21:53 +0000)]
Fix set_bwlimit() to accept parameters for limit-exempt class

17 years agosimple interface to bwlimit.py module
Mark Huang [Mon, 1 May 2006 14:16:34 +0000 (14:16 +0000)]
simple interface to bwlimit.py module

17 years agodeprecate resman, install our own bwlimit tool
Mark Huang [Mon, 1 May 2006 00:03:26 +0000 (00:03 +0000)]
deprecate resman, install our own bwlimit tool

18 years agoRPMs get upgraded by installing the new one, then uninstalling the
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.

18 years ago- move all function documentation inside their respective functions
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

18 years agocreate util-vserver-python datadir with correct permissions
Mark Huang [Fri, 21 Apr 2006 01:27:06 +0000 (01:27 +0000)]
create util-vserver-python datadir with correct permissions

18 years agomerge .spec changes
Mark Huang [Tue, 11 Apr 2006 19:17:21 +0000 (19:17 +0000)]
merge .spec changes

18 years ago- byte compile and install at %post time
Mark Huang [Tue, 11 Apr 2006 19:15:13 +0000 (19:15 +0000)]
- byte compile and install at %post time

18 years ago- bump release number
Mark Huang [Thu, 6 Apr 2006 02:50:25 +0000 (02:50 +0000)]
- bump release number

18 years ago- apparently commenting out Requires: lines is not enough!
Mark Huang [Thu, 6 Apr 2006 02:49:26 +0000 (02:49 +0000)]
- apparently commenting out Requires: lines is not enough!

18 years agoRemove apt dependency
Mark Huang [Wed, 5 Apr 2006 22:13:19 +0000 (22:13 +0000)]
Remove apt dependency

18 years agoLoad the ipset-related modules in init()
Steve Muir [Wed, 15 Mar 2006 16:41:21 +0000 (16:41 +0000)]
Load the ipset-related modules in init()

18 years agoremove some PL-specific details
Steve Muir [Tue, 14 Mar 2006 22:57:50 +0000 (22:57 +0000)]
remove some PL-specific details

18 years agoExport value for infinite disk quota.
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.

18 years agoRead default VM id from config file
Steve Muir [Tue, 14 Mar 2006 15:16:06 +0000 (15:16 +0000)]
Read default VM id from config file

18 years agoSet a more sensible default CPU share
Steve Muir [Tue, 14 Mar 2006 15:02:54 +0000 (15:02 +0000)]
Set a more sensible default CPU share

18 years agoFix handling of CPU scheduling parameters
Steve Muir [Tue, 14 Mar 2006 14:54:48 +0000 (14:54 +0000)]
Fix handling of CPU scheduling parameters

18 years agoPLC API functionality moved to Node Manager
Steve Muir [Mon, 13 Mar 2006 23:27:17 +0000 (23:27 +0000)]
PLC API functionality moved to Node Manager

18 years agoRemove any notions of rspecs from util-vserver, fix handling of resources
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

18 years agoRemove any notions of rspecs from util-vserver
Steve Muir [Thu, 9 Mar 2006 22:35:30 +0000 (22:35 +0000)]
Remove any notions of rspecs from util-vserver

18 years ago- fix description
Mark Huang [Wed, 1 Mar 2006 22:37:24 +0000 (22:37 +0000)]
- fix description

18 years ago- stub, only provides anonymous access to API. At some point, Node
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.

18 years ago- also install plcapi.py stub
Mark Huang [Wed, 1 Mar 2006 22:03:38 +0000 (22:03 +0000)]
- also install plcapi.py stub

18 years ago- set up IP sets for bandwidth exemption
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

18 years ago- don't let root drown out all other traffic; instead, just give it 5
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

18 years ago- rename "guarantee" to "bwmin" which is really what it represents: the
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).

18 years ago- rewrite to support a fairly shared "unlimited" bandwidth class
Mark Huang [Mon, 27 Feb 2006 01:58:09 +0000 (01:58 +0000)]
- rewrite to support a fairly shared "unlimited" bandwidth class

18 years agobump release number for bwlimit.py rewrite
Mark Huang [Wed, 22 Feb 2006 23:48:45 +0000 (23:48 +0000)]
bump release number for bwlimit.py rewrite

18 years ago- clean up this script, merge relevant resman/scripts/bwlimit
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

18 years agoAdd support for guaranteed CPU shares
Steve Muir [Fri, 17 Feb 2006 18:50:56 +0000 (18:50 +0000)]
Add support for guaranteed CPU shares

18 years agoUpdate disk usage info when get_disklimit called
Steve Muir [Wed, 18 Jan 2006 01:01:09 +0000 (01:01 +0000)]
Update disk usage info when get_disklimit called

18 years agoBump release number for new release that fixes bug in vserverimpl that was
Steve Muir [Fri, 13 Jan 2006 19:19:49 +0000 (19:19 +0000)]
Bump release number for new release that fixes bug in vserverimpl that was
killing pl_conf

18 years agoAdd more things to .cvsignore
Steve Muir [Fri, 13 Jan 2006 19:06:02 +0000 (19:06 +0000)]
Add more things to .cvsignore

18 years agoDon't barf when adjusting CPU share if there are no processes in context
Steve Muir [Mon, 9 Jan 2006 21:44:32 +0000 (21:44 +0000)]
Don't barf when adjusting CPU share if there are no processes in context

18 years agosupport pldistro "variants"
Mark Huang [Thu, 15 Dec 2005 16:50:39 +0000 (16:50 +0000)]
support pldistro "variants"

18 years agoUse CPULIMIT of 0 to indicate a suspended slice
Steve Muir [Sat, 3 Dec 2005 00:23:08 +0000 (00:23 +0000)]
Use CPULIMIT of 0 to indicate a suspended slice

18 years agoFix error handling for get_rspec
Steve Muir [Fri, 2 Dec 2005 19:18:57 +0000 (19:18 +0000)]
Fix error handling for get_rspec

18 years agoUpdated spec files
Steve Muir [Fri, 2 Dec 2005 15:07:45 +0000 (15:07 +0000)]
Updated spec files

18 years agoMore stuff to ignore
Steve Muir [Fri, 2 Dec 2005 14:55:26 +0000 (14:55 +0000)]
More stuff to ignore

18 years agoAdd method to stop a vserver
Steve Muir [Thu, 1 Dec 2005 18:59:41 +0000 (18:59 +0000)]
Add method to stop a vserver

18 years agoAdd killall() function, tidy up.
Steve Muir [Thu, 1 Dec 2005 18:36:18 +0000 (18:36 +0000)]
Add killall() function, tidy up.

18 years agoGoddamn util-vserver doesn't have .cvsignore files
Steve Muir [Thu, 10 Nov 2005 23:38:22 +0000 (23:38 +0000)]
Goddamn util-vserver doesn't have .cvsignore files

18 years agoAdd support for removing resource (disk, network) limits
Steve Muir [Wed, 9 Nov 2005 22:04:25 +0000 (22:04 +0000)]
Add support for removing resource (disk, network) limits

18 years agoMakes sense to check that this actually compiles
Steve Muir [Wed, 9 Nov 2005 21:23:50 +0000 (21:23 +0000)]
Makes sense to check that this actually compiles

18 years agoRemove unnecessary constant definition
Steve Muir [Wed, 9 Nov 2005 21:17:45 +0000 (21:17 +0000)]
Remove unnecessary constant definition

18 years agoAdd function to remove disk limit
Steve Muir [Wed, 9 Nov 2005 21:13:29 +0000 (21:13 +0000)]
Add function to remove disk limit

18 years agoRevert python module path to correct value
Steve Muir [Tue, 8 Nov 2005 13:43:04 +0000 (13:43 +0000)]
Revert python module path to correct value

18 years agoRemove unused code to handle vserver flags
Steve Muir [Tue, 8 Nov 2005 01:03:40 +0000 (01:03 +0000)]
Remove unused code to handle vserver flags

18 years agoAssume eth0 as default device when initialising
Steve Muir [Tue, 8 Nov 2005 00:42:38 +0000 (00:42 +0000)]
Assume eth0 as default device when initialising

18 years agoTidy up handling of network parameters, don't rely upon config files
Steve Muir [Tue, 8 Nov 2005 00:26:01 +0000 (00:26 +0000)]
Tidy up handling of network parameters, don't rely upon config files
to initialise VServer helper objects

18 years agoTidy up handling of network parameters
Steve Muir [Tue, 8 Nov 2005 00:23:45 +0000 (00:23 +0000)]
Tidy up handling of network parameters

18 years agoDon't need to use resman anymore
Steve Muir [Tue, 8 Nov 2005 00:22:59 +0000 (00:22 +0000)]
Don't need to use resman anymore

18 years agoNeed to close the cwd file descriptor
Steve Muir [Mon, 7 Nov 2005 20:11:50 +0000 (20:11 +0000)]
Need to close the cwd file descriptor

18 years agoImplement the setsched function
Steve Muir [Wed, 2 Nov 2005 23:06:01 +0000 (23:06 +0000)]
Implement the setsched function

18 years agoFix Python modules to handle scheduling parameters correctly
Steve Muir [Wed, 2 Nov 2005 23:05:51 +0000 (23:05 +0000)]
Fix Python modules to handle scheduling parameters correctly

18 years agoImplement and use vserverimpl.setsched
Steve Muir [Wed, 2 Nov 2005 23:03:45 +0000 (23:03 +0000)]
Implement and use vserverimpl.setsched

18 years agoDon't need our own version of setup.py anymore
Steve Muir [Tue, 1 Nov 2005 22:04:53 +0000 (22:04 +0000)]
Don't need our own version of setup.py anymore

18 years agoFix Makefile to correctly locate util-python
Steve Muir [Tue, 1 Nov 2005 22:02:04 +0000 (22:02 +0000)]
Fix Makefile to correctly locate util-python

18 years agoUse new pybuild scheme that works with libtool
Steve Muir [Tue, 1 Nov 2005 21:54:00 +0000 (21:54 +0000)]
Use new pybuild scheme that works with libtool

18 years agoRemove unreachable code and confusing comment
Steve Muir [Tue, 1 Nov 2005 21:53:40 +0000 (21:53 +0000)]
Remove unreachable code and confusing comment

18 years agoFix handling of over-quota condition
Steve Muir [Fri, 28 Oct 2005 21:43:17 +0000 (21:43 +0000)]
Fix handling of over-quota condition

18 years agoAdded SCHED_SHARE flag
Andy Bavier [Tue, 25 Oct 2005 15:29:26 +0000 (15:29 +0000)]
Added SCHED_SHARE flag

18 years agoRead resource values from a resources dictionary
Steve Muir [Wed, 12 Oct 2005 17:35:34 +0000 (17:35 +0000)]
Read resource values from a resources dictionary

18 years agoPass resources dict to lower-level chcontext function in order to get
Steve Muir [Wed, 12 Oct 2005 17:35:06 +0000 (17:35 +0000)]
Pass resources dict to lower-level chcontext function in order to get
correct resource limits e.g., CPU share

18 years agoAllow caller to indicate that disk usage values have already been set
Steve Muir [Fri, 7 Oct 2005 21:34:40 +0000 (21:34 +0000)]
Allow caller to indicate that disk usage values have already been set

18 years agoUse library function to enter a vserver context
Steve Muir [Fri, 7 Oct 2005 20:53:48 +0000 (20:53 +0000)]
Use library function to enter a vserver context

18 years agoBump release number to reflect changes in vsh and vserverimpl
Steve Muir [Fri, 7 Oct 2005 20:53:33 +0000 (20:53 +0000)]
Bump release number to reflect changes in vsh and vserverimpl

18 years agoConvert values to strings before writing to config file
Steve Muir [Fri, 7 Oct 2005 20:13:05 +0000 (20:13 +0000)]
Convert values to strings before writing to config file

18 years agoOops, don't limit slices to 4 processes
Steve Muir [Fri, 7 Oct 2005 19:55:34 +0000 (19:55 +0000)]
Oops, don't limit slices to 4 processes

18 years agoFiles generated by automake
Steve Muir [Fri, 7 Oct 2005 19:07:53 +0000 (19:07 +0000)]
Files generated by automake

18 years agoUse symbolic constant for no limit
Steve Muir [Fri, 7 Oct 2005 19:02:06 +0000 (19:02 +0000)]
Use symbolic constant for no limit

18 years agoCreated common function to enter vserver context and set resource limits
Steve Muir [Fri, 7 Oct 2005 18:50:58 +0000 (18:50 +0000)]
Created common function to enter vserver context and set resource limits

18 years agoUse common function to enter vserver context and set resource limits
Steve Muir [Fri, 7 Oct 2005 18:50:43 +0000 (18:50 +0000)]
Use common function to enter vserver context and set resource limits

18 years agoShould chdir after chroot
Steve Muir [Fri, 7 Oct 2005 18:39:24 +0000 (18:39 +0000)]
Should chdir after chroot

18 years agoConvert DISKLIMIT value to an integer
Steve Muir [Thu, 6 Oct 2005 13:30:06 +0000 (13:30 +0000)]
Convert DISKLIMIT value to an integer

18 years agoDon't barf if we can't unlink a non-existent file
Steve Muir [Wed, 5 Oct 2005 22:15:51 +0000 (22:15 +0000)]
Don't barf if we can't unlink a non-existent file