util-vserver-pl.git
15 years agosupport turning off all queueing
Faiyaz Ahmed [Thu, 29 Jan 2009 20:34:06 +0000 (20:34 +0000)]
support turning off all queueing

15 years agoadded in a 'setup' boolean argument to indicate that set_resources is being called...
Marc Fiuczynski [Wed, 5 Nov 2008 22:07:34 +0000 (22:07 +0000)]
added in a 'setup' boolean argument to indicate that set_resources is being called while setting up a vserver

15 years agobump tag level and added changelog
Marc Fiuczynski [Thu, 30 Oct 2008 07:27:41 +0000 (07:27 +0000)]
bump tag level and added changelog

15 years agoclean up to produce less warnings
Marc Fiuczynski [Thu, 30 Oct 2008 06:22:33 +0000 (06:22 +0000)]
clean up to produce less warnings

15 years agosupport reading of negative numbers for rlimit values
Marc Fiuczynski [Thu, 30 Oct 2008 06:13:37 +0000 (06:13 +0000)]
support reading of negative numbers for rlimit values

15 years agoadded support for MEMLOCK rlimit
Marc Fiuczynski [Wed, 29 Oct 2008 22:56:49 +0000 (22:56 +0000)]
added support for MEMLOCK rlimit

15 years agoTypos...
Sapan Bhatia [Tue, 14 Oct 2008 17:11:05 +0000 (17:11 +0000)]
Typos...

15 years agoif ((mask & space_mask.mask) != mask)
Sapan Bhatia [Tue, 14 Oct 2008 17:04:13 +0000 (17:04 +0000)]
if ((mask & space_mask.mask) != mask)

      return -EINVAL;
Looks like vc_set_space wants vc_space_mask to be present in the flags.

--
M    src/planetlab.c

15 years agoLook for the config file before the FS gets unshared.
Sapan Bhatia [Tue, 14 Oct 2008 16:42:17 +0000 (16:42 +0000)]
Look for the config file before the FS gets unshared.

15 years agobugfix for VINI
Sapan Bhatia [Fri, 10 Oct 2008 14:58:35 +0000 (14:58 +0000)]
bugfix for VINI

15 years agocontd...
Sapan Bhatia [Mon, 6 Oct 2008 23:19:20 +0000 (23:19 +0000)]
contd...

15 years agocontd...
Sapan Bhatia [Mon, 6 Oct 2008 23:16:12 +0000 (23:16 +0000)]
contd...

15 years agocontd...
Sapan Bhatia [Mon, 6 Oct 2008 23:13:51 +0000 (23:13 +0000)]
contd...

15 years agocontd...
Sapan Bhatia [Mon, 6 Oct 2008 23:12:44 +0000 (23:12 +0000)]
contd...

15 years agocontd...
Sapan Bhatia [Mon, 6 Oct 2008 22:57:52 +0000 (22:57 +0000)]
contd...

15 years agouse util-vserver's style of config, not sapan's funky style.
Sapan Bhatia [Mon, 6 Oct 2008 22:56:07 +0000 (22:56 +0000)]
use util-vserver's style of config, not sapan's funky style.

15 years agoheaders for sys_unshare
Sapan Bhatia [Mon, 6 Oct 2008 22:52:42 +0000 (22:52 +0000)]
headers for sys_unshare

15 years agoCall enter_namespace before ctx_migrate.
Sapan Bhatia [Mon, 6 Oct 2008 22:42:33 +0000 (22:42 +0000)]
Call enter_namespace before ctx_migrate.

15 years agoset_namespace has alraedy been called onthe default spaces.
Sapan Bhatia [Mon, 6 Oct 2008 22:26:43 +0000 (22:26 +0000)]
set_namespace has alraedy been called onthe default spaces.

15 years agocall vc_set_namespace after sys_unshare, to poke the new nsproxy into the relevant...
Sapan Bhatia [Mon, 6 Oct 2008 22:22:53 +0000 (22:22 +0000)]
call vc_set_namespace after sys_unshare, to poke the new nsproxy into the relevant context in the kernel.

15 years agoUnshare netns for VINI.
Sapan Bhatia [Mon, 6 Oct 2008 21:38:59 +0000 (21:38 +0000)]
Unshare netns for VINI.

15 years agoUnshare netns for VINI.
Sapan Bhatia [Mon, 6 Oct 2008 21:38:12 +0000 (21:38 +0000)]
Unshare netns for VINI.

15 years agooops
Thierry Parmentelat [Sun, 28 Sep 2008 09:36:46 +0000 (09:36 +0000)]
oops

15 years agofull build on centos
Thierry Parmentelat [Sun, 28 Sep 2008 09:13:26 +0000 (09:13 +0000)]
full build on centos

15 years agothis is needed as well
Thierry Parmentelat [Tue, 23 Sep 2008 20:58:10 +0000 (20:58 +0000)]
this is needed as well

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-14
Thierry Parmentelat [Tue, 23 Sep 2008 19:15:28 +0000 (19:15 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-14
configure/make check the version of libnl and can cope with either 1.1 or 1.0-pre6
as centos does not have any of these, do build vip6-autod on fedora only

15 years agolet's keep it simple - our tag tools do not know how to handle this
Thierry Parmentelat [Tue, 23 Sep 2008 19:09:24 +0000 (19:09 +0000)]
let's keep it simple - our tag tools do not know how to handle this

15 years agotmp hack for assessing centos - package vip6-autod only on fedora as centos has a...
Thierry Parmentelat [Fri, 19 Sep 2008 15:42:17 +0000 (15:42 +0000)]
tmp hack for assessing centos - package vip6-autod only on fedora as centos has a too old libnl

15 years agoSupport both libnl 1.0-pre6 and 1.1.
Daniel Hokka Zakrisson [Fri, 19 Sep 2008 07:58:09 +0000 (07:58 +0000)]
Support both libnl 1.0-pre6 and 1.1.
Disable vip6-autod if the configure script didn't detect a usable libnl.
Remove util-vserver-pl.spec.in, sync the version with configure.ac.

15 years agotemporary - do not package vip6-autod for libnl dep - PLEASE DO NOT TAG
Thierry Parmentelat [Thu, 18 Sep 2008 18:48:13 +0000 (18:48 +0000)]
temporary - do not package vip6-autod for libnl dep - PLEASE DO NOT TAG

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-13
Faiyaz Ahmed [Wed, 17 Sep 2008 17:55:32 +0000 (17:55 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-13
Remove current bw limit checks before issuing tc.

15 years agoRemove check for changes in max/min rates before running set().
Faiyaz Ahmed [Thu, 11 Sep 2008 19:18:34 +0000 (19:18 +0000)]
Remove check for changes in max/min rates before running set().

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-12
Daniel Hokka Zakrisson [Fri, 29 Aug 2008 03:17:12 +0000 (03:17 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-12
libnl 1.1 fixups.

15 years agoUse libnl 1.1 API.
Daniel Hokka Zakrisson [Fri, 29 Aug 2008 02:45:44 +0000 (02:45 +0000)]
Use libnl 1.1 API.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-11
Thierry Parmentelat [Thu, 28 Aug 2008 09:21:31 +0000 (09:21 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-11
reads /etc/vservers/<name>/personality and behaves accordingly
nicer formatting for byte rates

15 years ago/etc/vservers/<name>/personality
Thierry Parmentelat [Wed, 27 Aug 2008 14:30:13 +0000 (14:30 +0000)]
/etc/vservers/<name>/personality
this is a first draft; it is expected that vserver sartup now reads this file and
performs the appropriate personality setting
Goes with NodeManager-1.7-17

15 years agoMore convenient output of show.
Faiyaz Ahmed [Wed, 20 Aug 2008 20:50:26 +0000 (20:50 +0000)]
More convenient output of show.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-10
Daniel Hokka Zakrisson [Sat, 16 Aug 2008 23:15:04 +0000 (23:15 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-10
FUSE support.

15 years agoFUSE patch from Jeremy Stribling.
Daniel Hokka Zakrisson [Wed, 13 Aug 2008 15:38:57 +0000 (15:38 +0000)]
FUSE patch from Jeremy Stribling.

15 years agohard == rlim_max
Daniel Hokka Zakrisson [Tue, 12 Aug 2008 16:51:43 +0000 (16:51 +0000)]
hard == rlim_max

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-9
Faiyaz Ahmed [Fri, 1 Aug 2008 18:31:39 +0000 (18:31 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-9
Check running values before issuing set or on.  If same, disregard to save on forks.

15 years agoPush bwmin to 1KBps. Also check running values against arguments before calling tc.
Faiyaz Ahmed [Fri, 1 Aug 2008 16:04:15 +0000 (16:04 +0000)]
Push bwmin to 1KBps.  Also check running values against arguments before calling tc.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-8
Faiyaz Ahmed [Fri, 25 Jul 2008 16:29:42 +0000 (16:29 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-8
exempt_init shouldn't modify iptables rules.  Instead, only manipulate ipset.  Assume iptables rules are setup properly (now downloaded from nodeconfig/PlanetLabConf for I2 and defaulted to iptables/planetlab-config for all other nodes).

15 years agoRemove iptables rule modification. Assume rule exists (downloaded from conf_files...
Faiyaz Ahmed [Fri, 25 Jul 2008 16:06:43 +0000 (16:06 +0000)]
Remove iptables rule modification.  Assume rule exists (downloaded from conf_files), and check for IPs in I2 hash.  Add if absent.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-7
Faiyaz Ahmed [Tue, 22 Jul 2008 17:02:03 +0000 (17:02 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-7

Init exempt flows into "mangle" table.

15 years agoMANGLE and mangle are not the same.
Faiyaz Ahmed [Tue, 22 Jul 2008 16:59:36 +0000 (16:59 +0000)]
MANGLE and mangle are not the same.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-6
Daniel Hokka Zakrisson [Fri, 27 Jun 2008 16:40:56 +0000 (16:40 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-6
Optimized the case where it's already running.

15 years agoFix typo.
Daniel Hokka Zakrisson [Fri, 27 Jun 2008 16:35:59 +0000 (16:35 +0000)]
Fix typo.

15 years agoOptimization in case the context is already running.
Daniel Hokka Zakrisson [Fri, 27 Jun 2008 15:58:54 +0000 (15:58 +0000)]
Optimization in case the context is already running.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-5
Daniel Hokka Zakrisson [Thu, 26 Jun 2008 16:48:16 +0000 (16:48 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-5
Ignore ESRCH for setname.
Always create the home directory, regardless of configuration settings.

15 years agoIgnore ESRCH.
Daniel Hokka Zakrisson [Thu, 26 Jun 2008 16:40:00 +0000 (16:40 +0000)]
Ignore ESRCH.

15 years agoto create ~/ on non RH distros.
Faiyaz Ahmed [Fri, 20 Jun 2008 15:34:06 +0000 (15:34 +0000)]
to create ~/ on non RH distros.

15 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-4
Stephen Soltesz [Fri, 9 May 2008 21:30:39 +0000 (21:30 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-4

15 years agoCheck for file existance before blindly spawning them. Also, remove exit if spawn...
Faiyaz Ahmed [Thu, 8 May 2008 21:12:56 +0000 (21:12 +0000)]
Check for file existance before blindly spawning them.  Also, remove exit if spawn fails and try spawning subsequent scripts.

16 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-3
Stephen Soltesz [Wed, 23 Apr 2008 21:41:16 +0000 (21:41 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-3
Added support for vc_{set|get}_vhi_name() via util-vserver-pl.
Adding a tag to include in the 4.2rc2

16 years agoSet name as ints, not string.
Faiyaz Ahmed [Tue, 22 Apr 2008 18:19:17 +0000 (18:19 +0000)]
Set name as ints, not string.

16 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-2
Faiyaz Ahmed [Wed, 16 Apr 2008 20:38:19 +0000 (20:38 +0000)]
Tagging module util-vserver-pl - util-vserver-pl-0.3-2

* Can write vcVHI_CONTEXT
* CAP_NET_BIND_SERVICE is special, in all cases.
* Check if already mounted before mounting fs in vserver
* Optimized 0.0.0.0 case
* Removed vcached.  DEPRECATED

16 years agoAdded code from NodeManager.tools to close non standard file descriptors. Avoids...
Faiyaz Ahmed [Wed, 16 Apr 2008 18:48:46 +0000 (18:48 +0000)]
Added code from NodeManager.tools to close non standard file descriptors.  Avoids zombies and priv'ed fds from entering context.

16 years agoAdded wrapper functions to call set/getname
Faiyaz Ahmed [Mon, 14 Apr 2008 21:50:03 +0000 (21:50 +0000)]
Added wrapper functions to call set/getname

16 years agoUse an unused field. SYSNAME defaults to Linux which probably means this value may...
Faiyaz Ahmed [Mon, 14 Apr 2008 21:12:33 +0000 (21:12 +0000)]
Use an unused field. SYSNAME defaults to Linux which probably means this value may change over time.  Context is empty and seems safer.

16 years agosyntax error.
Faiyaz Ahmed [Mon, 14 Apr 2008 20:42:42 +0000 (20:42 +0000)]
syntax error.

16 years agoSet slice id as vcVHI_SYSNAME.
Faiyaz Ahmed [Mon, 14 Apr 2008 18:52:38 +0000 (18:52 +0000)]
Set slice id as vcVHI_SYSNAME.

16 years agocross-module change -- cleaning vcached, and vserver pre install script
Thierry Parmentelat [Thu, 10 Apr 2008 14:03:14 +0000 (14:03 +0000)]
cross-module change -- cleaning vcached, and vserver pre install script

16 years agoIf it's busy, assume it's already mounted.
Daniel Hokka Zakrisson [Thu, 20 Mar 2008 19:13:24 +0000 (19:13 +0000)]
If it's busy, assume it's already mounted.

16 years agoStop the guest after creating the user/group in it.
Daniel Hokka Zakrisson [Thu, 28 Feb 2008 18:30:09 +0000 (18:30 +0000)]
Stop the guest after creating the user/group in it.

16 years agoCAP_NET_BIND_SERVICE is special, in all cases.
Daniel Hokka Zakrisson [Tue, 26 Feb 2008 22:51:12 +0000 (22:51 +0000)]
CAP_NET_BIND_SERVICE is special, in all cases.

16 years agoEnable raw sockets using VNET, and allow connections to 127.0.0.1.
Daniel Hokka Zakrisson [Wed, 13 Feb 2008 13:17:36 +0000 (13:17 +0000)]
Enable raw sockets using VNET, and allow connections to 127.0.0.1.

16 years agokill all processes. fixed syntax error. Thanks Daniel.
Faiyaz Ahmed [Mon, 28 Jan 2008 20:43:53 +0000 (20:43 +0000)]
kill all processes.  fixed syntax error.  Thanks Daniel.

16 years agoOptimize the 0.0.0.0 case, and get it working on 2.3 kernels.
Daniel Hokka Zakrisson [Sat, 26 Jan 2008 02:04:34 +0000 (02:04 +0000)]
Optimize the 0.0.0.0 case, and get it working on 2.3 kernels.

16 years agoto avoid people logging in while deleting their slice.
Faiyaz Ahmed [Thu, 24 Jan 2008 19:32:59 +0000 (19:32 +0000)]
to avoid people logging in while deleting their slice.

16 years agoClean up code for setting rlimits
Andy Bavier [Mon, 21 Jan 2008 19:19:07 +0000 (19:19 +0000)]
Clean up code for setting rlimits

16 years agoUpdate CPU token buckets of running vserver
Andy Bavier [Thu, 17 Jan 2008 20:57:51 +0000 (20:57 +0000)]
Update CPU token buckets of running vserver

16 years agoAllow independent setting of CPU reservation and CPU share
Andy Bavier [Wed, 16 Jan 2008 22:07:46 +0000 (22:07 +0000)]
Allow independent setting of CPU reservation and CPU share

16 years agoDisable mount namespaces.
Daniel Hokka Zakrisson [Mon, 14 Jan 2008 17:46:01 +0000 (17:46 +0000)]
Disable mount namespaces.

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 agoGet rid of the context on vuserdel.
Daniel Hokka Zakrisson [Thu, 20 Dec 2007 21:45:00 +0000 (21:45 +0000)]
Get rid of the context on vuserdel.
Set svn:keywords.

16 years agomount /proc before chroot'ing into filesystem.
Faiyaz Ahmed [Fri, 14 Dec 2007 18:50:13 +0000 (18:50 +0000)]
mount /proc before chroot'ing into filesystem.

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 agoFix indentation and use userspace error values.
Daniel Hokka Zakrisson [Wed, 12 Dec 2007 10:18:04 +0000 (10:18 +0000)]
Fix indentation and use userspace error values.

16 years agovsh needs to be suid.
Daniel Hokka Zakrisson [Tue, 11 Dec 2007 20:05:05 +0000 (20:05 +0000)]
vsh needs to be suid.

16 years agosetrunlevel takes a filename and a runlevel.
Daniel Hokka Zakrisson [Tue, 11 Dec 2007 18:45:22 +0000 (18:45 +0000)]
setrunlevel takes a filename and a runlevel.

16 years ago__do_chroot is also called from chrootcall, which doesn't need to cache it.
Daniel Hokka Zakrisson [Tue, 11 Dec 2007 18:44:37 +0000 (18:44 +0000)]
__do_chroot is also called from chrootcall, which doesn't need to cache it.

16 years agolooks like an obvious typo
Thierry Parmentelat [Tue, 11 Dec 2007 12:20:30 +0000 (12:20 +0000)]
looks like an obvious typo

16 years agoNeed to set the tagging too so disk limits are enforceable.
Daniel Hokka Zakrisson [Wed, 5 Dec 2007 14:17:26 +0000 (14:17 +0000)]
Need to set the tagging too so disk limits are enforceable.

16 years agoProvide util-vserver-python instead.
Daniel Hokka Zakrisson [Fri, 30 Nov 2007 21:03:55 +0000 (21:03 +0000)]
Provide util-vserver-python instead.

16 years agoAdd missing file.
Daniel Hokka Zakrisson [Fri, 30 Nov 2007 19:22:49 +0000 (19:22 +0000)]
Add missing file.
Add generated spec-file so the build can work.

16 years agoSeparate the PlanetLab modifications from util-vserver
Daniel Hokka Zakrisson [Fri, 30 Nov 2007 17:54:32 +0000 (17:54 +0000)]
Separate the PlanetLab modifications from util-vserver