util-vserver-pl.git
13 years agomerge rev17211 (Need to print the exception string as part of the self.log, or else... trellis trellis
S.Çağlar Onur [Mon, 3 May 2010 19:47:00 +0000 (19:47 +0000)]
merge rev17211 (Need to print the exception string as part of the self.log, or else we get a wrong number of argument error.)

13 years agomerge bwlimit changes from util-vserver-pl
S.Çağlar Onur [Mon, 3 May 2010 19:36:32 +0000 (19:36 +0000)]
merge bwlimit changes from util-vserver-pl

14 years agobump taglevel down to 3, as tag 0.4-4 was not set
Thierry Parmentelat [Mon, 12 Apr 2010 11:58:28 +0000 (11:58 +0000)]
bump taglevel down to 3, as tag 0.4-4 was not set

14 years agomerge rev 15298 otherwise bwlimit throws an exception
S.Çağlar Onur [Tue, 2 Mar 2010 21:20:04 +0000 (21:20 +0000)]
merge rev 15298 otherwise bwlimit throws an exception

14 years agoWe need to store the slice id elsewhere, because now Daniel uses the vserver name...
Sapan Bhatia [Tue, 12 Jan 2010 20:28:38 +0000 (20:28 +0000)]
We need to store the slice id elsewhere, because now Daniel uses the vserver name to store the path to the
corresponding vserver.

14 years agoSudo missing-path problem reported by vivek.
Sapan Bhatia [Tue, 12 Jan 2010 18:47:15 +0000 (18:47 +0000)]
Sudo missing-path problem reported by vivek.

14 years agoSet HOME variable
Andy Bavier [Thu, 10 Dec 2009 19:42:27 +0000 (19:42 +0000)]
Set HOME variable

14 years agoReintroduce setname/getname functions that are used by PlanetFlow
Andy Bavier [Thu, 3 Dec 2009 16:03:40 +0000 (16:03 +0000)]
Reintroduce setname/getname functions that are used by PlanetFlow

14 years agoBug fix - argv needs to terminate with a NULL.
Sapan Bhatia [Wed, 2 Dec 2009 20:53:01 +0000 (20:53 +0000)]
Bug fix - argv needs to terminate with a NULL.

14 years agoReplaced vsh with a C implementation of Andy's replacement for util-vserver-pl. The...
Sapan Bhatia [Tue, 1 Dec 2009 23:24:48 +0000 (23:24 +0000)]
Replaced vsh with a C implementation of Andy's replacement for util-vserver-pl. The idea is to run the command 'vserver <slice> suexec
<sliceid> /bin/sh'

14 years agoReplacing vsh to use the new version.
Sapan Bhatia [Tue, 1 Dec 2009 23:14:59 +0000 (23:14 +0000)]
Replacing vsh to use the new version.

14 years agoexecve doesn't return.
Sapan Bhatia [Tue, 1 Dec 2009 19:39:12 +0000 (19:39 +0000)]
execve doesn't return.

14 years agoWhoopsie.
Sapan Bhatia [Tue, 1 Dec 2009 19:34:40 +0000 (19:34 +0000)]
Whoopsie.

14 years agoChanged vsh to use the suid wrapper.
Sapan Bhatia [Tue, 1 Dec 2009 19:34:27 +0000 (19:34 +0000)]
Changed vsh to use the suid wrapper.

14 years agoVserver suid wrapper. This enables vsh to run vserver with suid privileges safely...
Sapan Bhatia [Tue, 1 Dec 2009 18:21:57 +0000 (18:21 +0000)]
Vserver suid wrapper. This enables vsh to run vserver with suid privileges safely. As an additional advantage, we should probably be able
to drop suid on vsh.

14 years agoAdding suid wrapper for vserver.
Sapan Bhatia [Tue, 1 Dec 2009 18:13:36 +0000 (18:13 +0000)]
Adding suid wrapper for vserver.

14 years agoBack out of always creating network namespace when starting vserver
Andy Bavier [Mon, 30 Nov 2009 19:30:39 +0000 (19:30 +0000)]
Back out of always creating network namespace when starting vserver

14 years agoRemove obsolete functions
Andy Bavier [Mon, 26 Oct 2009 16:02:27 +0000 (16:02 +0000)]
Remove obsolete functions

14 years agoClean up. Start network namespace per slice by default.
Andy Bavier [Mon, 26 Oct 2009 16:01:03 +0000 (16:01 +0000)]
Clean up.  Start network namespace per slice by default.

14 years agoComment out problematic calls
Andy Bavier [Mon, 31 Aug 2009 20:19:22 +0000 (20:19 +0000)]
Comment out problematic calls

14 years agoHmm, something is broken
Andy Bavier [Mon, 31 Aug 2009 19:49:19 +0000 (19:49 +0000)]
Hmm, something is broken

14 years agoDon't need planetlab.c and netns.c any more
Andy Bavier [Fri, 28 Aug 2009 21:18:17 +0000 (21:18 +0000)]
Don't need planetlab.c and netns.c any more

14 years agoModify taglevel
Andy Bavier [Fri, 28 Aug 2009 15:34:14 +0000 (15:34 +0000)]
Modify taglevel

14 years agoTest checkin
Andy Bavier [Tue, 23 Jun 2009 15:12:44 +0000 (15:12 +0000)]
Test checkin

14 years agoUse cgroup CPU scheduler
Andy Bavier [Tue, 23 Jun 2009 14:54:09 +0000 (14:54 +0000)]
Use cgroup CPU scheduler

14 years agoUse cgroup CPU scheduler
Andy Bavier [Tue, 23 Jun 2009 14:51:59 +0000 (14:51 +0000)]
Use cgroup CPU scheduler

14 years agoEnable IPv4 forwarding by default in a slice
Andy Bavier [Fri, 22 May 2009 16:39:19 +0000 (16:39 +0000)]
Enable IPv4 forwarding by default in a slice

15 years agoNew vsh as a wrapper to util-vserver
Andy Bavier [Fri, 24 Apr 2009 18:57:26 +0000 (18:57 +0000)]
New vsh as a wrapper to util-vserver

15 years agoRewriting util-vserver-pl to wrap util-vserver, as proof-of-concept
Andy Bavier [Fri, 24 Apr 2009 18:09:07 +0000 (18:09 +0000)]
Rewriting util-vserver-pl to wrap util-vserver, as proof-of-concept

15 years agoUpdate to code actually running on Trellis v0.1
Andy Bavier [Wed, 22 Apr 2009 18:12:48 +0000 (18:12 +0000)]
Update to code actually running on Trellis v0.1

15 years agoTrellis branch to support network namespaces
Andy Bavier [Thu, 30 Oct 2008 15:35:58 +0000 (15:35 +0000)]
Trellis branch to support network namespaces

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}