6 years agoSetting tag util-vserver-pl-0.4-29 master util-vserver-pl-0.4-29
Stephen Soltesz [Sat, 9 Mar 2013 22:27:48 +0000]
Setting tag util-vserver-pl-0.4-29

6 years agotrim capability prefix to allow setting single bit
Stephen Soltesz [Sat, 9 Mar 2013 22:16:27 +0000]
trim capability prefix to allow setting single bit

M-Lab has added a new ccapability to enable/disable web100 statistics
collection per vserver. vserverimpl.text2ccaps() recognizes strings such as
"raw_icmp", "vxc_raw_icmp", and "^28" to set a specific bit in the CCaps bit
field, but it does not recognize "vxc_^28".  All bcap and ccap names defined
by util-vserver are recognized with or without the cap_ and vxc_ prefixes.
So, this patch will allow an administrator to enable arbitrary bit fields in
the CCaps or BCaps of a vserver without harming compatibility with existing
capabilities.  The admin would add, for example vxc_^28 or cap_^28, to the
'capabililties' slice tag and the prefixes would be stripped before being
passed to text2*caps() as simply "^28".

6 years agoSetting tag util-vserver-pl-0.4-28 util-vserver-pl-0.4-28
Andy Bavier [Tue, 28 Aug 2012 20:05:09 +0000]
Setting tag util-vserver-pl-0.4-28
Bugfix for IPv6, ported from 0.3 branch

6 years agoPort fix for IPv6 segfault from 0.3 branch
Andy Bavier [Tue, 28 Aug 2012 20:00:30 +0000]
Port fix for IPv6 segfault from 0.3 branch

6 years agoSetting tag util-vserver-pl-0.4-27 util-vserver-pl-0.4-27
Thierry Parmentelat [Thu, 19 Jul 2012 21:35:33 +0000]
Setting tag util-vserver-pl-0.4-27
bwlimit now ships with plnode-utils

7 years agofix remaining import of bwlimit
Thierry Parmentelat [Wed, 18 Jul 2012 20:57:41 +0000]
fix remaining import of bwlimit

7 years agoremoved svn keywords
Thierry Parmentelat [Wed, 18 Jul 2012 12:31:30 +0000]
removed svn keywords

7 years agoremove bwlimit from this module, now in plnode-utils
Thierry Parmentelat [Wed, 18 Jul 2012 12:29:54 +0000]
remove bwlimit from this module, now in plnode-utils

8 years agoSetting tag util-vserver-pl-0.4-26 util-vserver-pl-0.4-26
Thierry Parmentelat [Tue, 7 Jun 2011 08:48:04 +0000]
Setting tag util-vserver-pl-0.4-26
added support for loopback isolation

8 years agoAdd isolated_loopback support in vservers at creation-time.
Stephen Soltesz [Thu, 12 May 2011 21:46:38 +0000]
Add isolated_loopback support in vservers at creation-time.
   if the slice is not created with this option, it will not be reset @
   runtime.

8 years agoSetting tag util-vserver-pl-0.4-25 util-vserver-pl-0.4-25
S.Çağlar Onur [Wed, 23 Mar 2011 14:46:50 +0000]
Setting tag util-vserver-pl-0.4-25
vuserdel doesn't handle new vserver features that we are using like mount namespaces and/or cgroups, so it silently fails most of the time. Remove old code and start to use vserver provided tools

8 years agovuserdel doesn't handle new vserver features that we are using like mount namespaces...
S.Çağlar Onur [Wed, 23 Mar 2011 14:41:53 +0000]
vuserdel doesn't handle new vserver features that we are using like mount namespaces and/or cgroups, so it silently fails most of the time. Remove old code and start to use vserver provided tools

8 years agoSetting tag util-vserver-pl-0.4-24 util-vserver-pl-0.4-24
S.Çağlar Onur [Thu, 10 Mar 2011 20:21:55 +0000]
Setting tag util-vserver-pl-0.4-24
* associate SSH processes with the appropriate cgroup
*  migrate only when neccessary

8 years agomigrate only when neccessary
S.Çağlar Onur [Thu, 10 Mar 2011 20:19:46 +0000]
migrate only when neccessary

8 years agoassociate SSH processes with the appropriate cgroup
smbaker [Wed, 9 Mar 2011 00:34:23 +0000]
associate SSH processes with the appropriate cgroup

8 years agoSetting tag util-vserver-pl-0.4-23 util-vserver-pl-0.4-23
S.Çağlar Onur [Wed, 2 Mar 2011 21:14:02 +0000]
Setting tag util-vserver-pl-0.4-23
remove hardcoded nproc.hard limit as it shouldn't be hardcoded

8 years agoremove hardcoded nproc.hard limit as it should be setted via GUI, also remove depreca...
S.Çağlar Onur [Wed, 2 Mar 2011 21:07:49 +0000]
remove hardcoded nproc.hard limit as it should be setted via GUI, also remove deprecated flags file

8 years agoSetting tag util-vserver-pl-0.4-22 util-vserver-pl-0.4-22
Thierry Parmentelat [Wed, 2 Feb 2011 08:31:46 +0000]
Setting tag util-vserver-pl-0.4-22
pass device to bwlimit

8 years agoFixes for non-eth0 devices
Andy Bavier [Thu, 27 Jan 2011 17:02:39 +0000]
Fixes for non-eth0 devices

Fix bw limits on nodes that don't use eth0 as the default network device.

8 years agoSetting tag util-vserver-pl-0.4-21 util-vserver-pl-0.4-21
Thierry Parmentelat [Wed, 1 Dec 2010 17:11:33 +0000]
Setting tag util-vserver-pl-0.4-21
force remove nonamespace

8 years agosilence 'No such file or directory' warnings
S.Çağlar Onur [Wed, 13 Oct 2010 15:20:10 +0000]
silence 'No such file or directory' warnings

8 years agoSetting tag util-vserver-pl-0.4-20 util-vserver-pl-0.4-20
S.Çağlar Onur [Tue, 12 Oct 2010 19:14:59 +0000]
Setting tag util-vserver-pl-0.4-20
Fix the segfault caused by existing TUN device

8 years agoCheck ifa->ifa_addr otherwise existing TUN device causes following segfault;
S.Çağlar Onur [Tue, 12 Oct 2010 19:09:08 +0000]
Check ifa->ifa_addr otherwise existing TUN device causes following segfault;

>>> import vserver
>>> q = vserver.VServer("princeton_caglar")
>>> q.set_ipaddresses_config("0.0.0.0")

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1220499776 (LWP 831)]
0xb72a8556 in get_mask (addr=0xbfa7761c) at python/vserverimpl.c:404
404         if (ifa->ifa_addr->sa_family == family &&

tun1095-0 Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

8 years agoSetting tag util-vserver-pl-0.4-19 util-vserver-pl-0.4-19
S.Çağlar Onur [Fri, 13 Aug 2010 16:25:51 +0000]
Setting tag util-vserver-pl-0.4-19
Fix syntax error

8 years agofix syntax error and add some comments
S.Çağlar Onur [Fri, 13 Aug 2010 16:21:26 +0000]
fix syntax error and add some comments

8 years agoSetting tag util-vserver-pl-0.4-18 util-vserver-pl-0.4-18
S.Çağlar Onur [Mon, 9 Aug 2010 20:40:06 +0000]
Setting tag util-vserver-pl-0.4-18
migrate old style interface files to new style

8 years agomigrate old style interface files to new style
S.Çağlar Onur [Mon, 9 Aug 2010 19:55:51 +0000]
migrate old style interface files to new style

8 years agoSetting tag util-vserver-pl-0.4-17 util-vserver-pl-0.4-17
S.Çağlar Onur [Wed, 28 Jul 2010 21:07:31 +0000]
Setting tag util-vserver-pl-0.4-17
Some dead code removed from repository

8 years agoremove planetlab.* and netns.c as they are no longer used by util-vserver-pl
S.Çağlar Onur [Wed, 28 Jul 2010 18:05:04 +0000]
remove planetlab.* and netns.c as they are no longer used by util-vserver-pl

8 years agoremove non-used function
S.Çağlar Onur [Wed, 21 Jul 2010 03:19:27 +0000]
remove non-used function

9 years agoSetting tag util-vserver-pl-0.4-16 util-vserver-pl-0.4-16
S.Çağlar Onur [Mon, 19 Jul 2010 15:09:55 +0000]
Setting tag util-vserver-pl-0.4-16
* use system-wide umask
* enable set_ipaddresses_config function
* set more default values

9 years agocosmetic change
S.Çağlar Onur [Sun, 18 Jul 2010 22:29:24 +0000]
cosmetic change

9 years agoset default values correctly
S.Çağlar Onur [Fri, 16 Jul 2010 19:37:12 +0000]
set default values correctly

9 years agocreate emtpy nodev files to silent 'No device specified for' warnings
S.Çağlar Onur [Wed, 14 Jul 2010 21:33:17 +0000]
create emtpy nodev files to silent 'No device specified for' warnings

9 years agoenable set_ipaddresses_config and adapt to new scheme
S.Çağlar Onur [Wed, 14 Jul 2010 21:05:30 +0000]
enable set_ipaddresses_config and adapt to new scheme

9 years agouse system-wide umask value otherwise all directories under /dev/cgroup and /vservers...
S.Çağlar Onur [Wed, 14 Jul 2010 17:16:24 +0000]
use system-wide umask value otherwise all directories under /dev/cgroup and /vservers become world writable

9 years agoSetting tag util-vserver-pl-0.4-15 util-vserver-pl-0.4-15
Thierry Parmentelat [Mon, 12 Jul 2010 22:00:23 +0000]
Setting tag util-vserver-pl-0.4-15
new constant VC_LIM_INFINITY

9 years agoand use in module
S.Çağlar Onur [Thu, 8 Jul 2010 19:22:34 +0000]
and use in module

9 years agoexport VC_LIM_INFINITY
S.Çağlar Onur [Thu, 8 Jul 2010 19:15:30 +0000]
export VC_LIM_INFINITY

9 years agoSetting tag util-vserver-pl-0.4-14
S.Çağlar Onur [Tue, 6 Jul 2010 19:38:12 +0000]
Setting tag util-vserver-pl-0.4-14
fix setting cpu_share for slices

9 years agofix setting cpu_share for slices
S.Çağlar Onur [Tue, 6 Jul 2010 19:37:04 +0000]
fix setting cpu_share for slices

9 years agoSetting tag util-vserver-pl-0.4-13
S.Çağlar Onur [Thu, 24 Jun 2010 20:35:04 +0000]
Setting tag util-vserver-pl-0.4-13
start to use mount namespaces

9 years agostart to use mount namespaces
S.Çağlar Onur [Thu, 24 Jun 2010 20:33:29 +0000]
start to use mount namespaces

9 years agoSetting tag util-vserver-pl-0.4-12
Thierry Parmentelat [Tue, 22 Jun 2010 14:01:41 +0000]
Setting tag util-vserver-pl-0.4-12
initscripts are ignored - handled by nodemanager and triggered by rc

9 years agosimpler yet, no need to trigger rc at all now that we use vserver .. start
Thierry Parmentelat [Mon, 21 Jun 2010 14:52:27 +0000]
simpler yet, no need to trigger rc at all now that we use vserver .. start

9 years agodoes not need to trigger the initscript, nodemanager now handles that
Thierry Parmentelat [Mon, 21 Jun 2010 13:58:56 +0000]
does not need to trigger the initscript, nodemanager now handles that

9 years agoredirect the output of the initscripts (rc & rc.vinit) + try to detach
Thierry Parmentelat [Fri, 18 Jun 2010 15:48:45 +0000]
redirect the output of the initscripts (rc & rc.vinit) + try to detach

9 years agoSetting tag util-vserver-pl-0.4-11
Barış Metin [Thu, 17 Jun 2010 14:45:01 +0000]
Setting tag util-vserver-pl-0.4-11
sliver name as the last argument to initscript

9 years agoadd vserver name as the last command argument
Barış Metin [Thu, 17 Jun 2010 14:39:38 +0000]
add vserver name as the last command argument

9 years agoSetting tag util-vserver-pl-0.4-10
S.Çağlar Onur [Tue, 1 Jun 2010 20:25:43 +0000]
Setting tag util-vserver-pl-0.4-10
remove tmpfs mounted /tmp

9 years agomake python quiet on f12, import of sets is not needed anyway
Thierry Parmentelat [Tue, 1 Jun 2010 07:42:57 +0000]
make python quiet on f12, import of sets is not needed anyway

9 years agoremove 16M /tmp
S.Çağlar Onur [Fri, 28 May 2010 20:22:00 +0000]
remove 16M /tmp

9 years agoSetting tag util-vserver-pl-0.4-9
S.Çağlar Onur [Fri, 14 May 2010 18:26:25 +0000]
Setting tag util-vserver-pl-0.4-9
change flags without restarting the vservers

9 years agochange flags without restarting the vservers
S.Çağlar Onur [Fri, 14 May 2010 18:24:27 +0000]
change flags without restarting the vservers

9 years agoSetting tag util-vserver-pl-0.4-8
S.Çağlar Onur [Thu, 13 May 2010 21:46:11 +0000]
Setting tag util-vserver-pl-0.4-8
Migrate old style vservers to new style

9 years agoMigrate old style vservers to new style
S.Çağlar Onur [Thu, 13 May 2010 21:44:45 +0000]
Migrate old style vservers to new style

9 years agoSetting tag util-vserver-pl-0.4-7
Barış Metin [Thu, 13 May 2010 21:03:41 +0000]
Setting tag util-vserver-pl-0.4-7
chroot_call fix

9 years agofix kwargs
Barış Metin [Thu, 13 May 2010 20:59:32 +0000]
fix kwargs

9 years agoSetting tag util-vserver-pl-0.4-6
Barış Metin [Wed, 12 May 2010 17:06:09 +0000]
Setting tag util-vserver-pl-0.4-6
fix initscript issues

9 years agorun INITSCRIPTS in vservers
Barış Metin [Wed, 12 May 2010 16:59:35 +0000]
run INITSCRIPTS in vservers

9 years agoSetting tag util-vserver-pl-0.4-5
S.Çağlar Onur [Mon, 10 May 2010 20:27:51 +0000]
Setting tag util-vserver-pl-0.4-5

9 years agoremove debug code
S.Çağlar Onur [Mon, 10 May 2010 20:25:53 +0000]
remove debug code

9 years agoThis patch puts users in their home directories when they log into a slice.
Sapan Bhatia [Mon, 10 May 2010 20:23:45 +0000]
This patch puts users in their home directories when they log into a slice.

9 years agoSetting tag util-vserver-pl-0.4-4
Barış Metin [Mon, 10 May 2010 19:28:56 +0000]
Setting tag util-vserver-pl-0.4-4
merged trellis branch to trunk

9 years agofix tag and let module-tag bump it
Barış Metin [Mon, 10 May 2010 19:27:10 +0000]
fix tag and let module-tag bump it

9 years agomerge trellis branch to trunk.
Barış Metin [Mon, 10 May 2010 19:24:34 +0000]
merge trellis branch to trunk.
2.6.22 kernels shall use 0.3 branch and 2.6.27 needs 0.4 (trunk).

9 years agomanually changing tag in trunk, trellis branch is already 0.4-3
Barış Metin [Mon, 10 May 2010 19:12:12 +0000]
manually changing tag in trunk, trellis branch is already 0.4-3

9 years agoBranch 0.4 for module util-vserver-pl created (as new trunk) from tag util-vserver...
Barış Metin [Mon, 10 May 2010 19:02:57 +0000]
Branch 0.4 for module util-vserver-pl created (as new trunk) from tag util-vserver-pl-0.3-27

9 years agoSetting tag util-vserver-pl-0.3-27
Marc Fiuczynski [Wed, 24 Feb 2010 17:09:58 +0000]
Setting tag util-vserver-pl-0.3-27
Need to print the exception string as part of the self.log, or else we
get a wrong number of argument error.

9 years agoinclude the exception string in the self.log
Marc Fiuczynski [Wed, 24 Feb 2010 16:53:39 +0000]
include the exception string in the self.log

9 years agoSetting tag util-vserver-pl-0.3-26
Daniel Hokka Zakrisson [Wed, 24 Feb 2010 16:30:25 +0000]
Setting tag util-vserver-pl-0.3-26
This is outputted for some reason.

9 years agoSigh.
Daniel Hokka Zakrisson [Wed, 24 Feb 2010 16:28:00 +0000]
Sigh.

9 years agoSetting tag util-vserver-pl-0.3-25
Daniel Hokka Zakrisson [Wed, 24 Feb 2010 04:07:29 +0000]
Setting tag util-vserver-pl-0.3-25
Don't set bwlimits if they're disabled.
Don't cleanup /var of running slivers.

9 years agoDon't clean stuff up if it's already running.
Daniel Hokka Zakrisson [Wed, 24 Feb 2010 03:20:33 +0000]
Don't clean stuff up if it's already running.

9 years agoIf no limits are currently set, do nothing.
Daniel Hokka Zakrisson [Tue, 23 Feb 2010 22:36:14 +0000]
If no limits are currently set, do nothing.

9 years agoSetting tag util-vserver-pl-0.3-24
Marc Fiuczynski [Tue, 23 Feb 2010 05:30:19 +0000]
Setting tag util-vserver-pl-0.3-24
- openfd -> nofile

9 years agoopenfd -> nofile
Marc Fiuczynski [Tue, 23 Feb 2010 04:57:22 +0000]
openfd -> nofile

9 years agoSetting tag util-vserver-pl-0.3-23
Barış Metin [Tue, 16 Feb 2010 15:59:09 +0000]
Setting tag util-vserver-pl-0.3-23
call bwlimit init in postinstall.

9 years agocall bwlimit.init() in postinstall to update classes...
Barış Metin [Tue, 16 Feb 2010 15:54:45 +0000]
call bwlimit.init() in postinstall to update classes...

9 years agoSetting tag util-vserver-pl-0.3-22
S.Çağlar Onur [Fri, 29 Jan 2010 18:18:12 +0000]
Setting tag util-vserver-pl-0.3-22
move the HTB tree one level down for DRL

9 years agomove the tree one level down for DRL
S.Çağlar Onur [Thu, 28 Jan 2010 22:31:38 +0000]
move the tree one level down for DRL

9 years agoSetting tag util-vserver-pl-0.3-21
Thierry Parmentelat [Mon, 25 Jan 2010 14:48:24 +0000]
Setting tag util-vserver-pl-0.3-21
logging policy only; use /var/log/nm instead of boot.log, and give more details with (un)setdlimit

9 years agofix comment
Thierry Parmentelat [Fri, 22 Jan 2010 11:33:27 +0000]
fix comment

9 years agoin slices: use /var/log/nm instead of /var/log/boot.log
Thierry Parmentelat [Fri, 22 Jan 2010 11:29:57 +0000]
in slices: use /var/log/nm instead of /var/log/boot.log

9 years ago(no commit message)
Thierry Parmentelat [Thu, 21 Jan 2010 17:16:55 +0000]

9 years agolog more stuff
Thierry Parmentelat [Thu, 21 Jan 2010 15:14:02 +0000]
log more stuff

9 years agoSetting tag util-vserver-pl-0.3-20
Daniel Hokka Zakrisson [Thu, 19 Nov 2009 03:28:49 +0000]
Setting tag util-vserver-pl-0.3-20
Log the error as well.

9 years agoLog error as well.
Daniel Hokka Zakrisson [Thu, 12 Nov 2009 21:18:31 +0000]
Log error as well.

9 years agoSetting tag util-vserver-pl-0.3-19
Daniel Hokka Zakrisson [Wed, 28 Oct 2009 01:44:34 +0000]
Setting tag util-vserver-pl-0.3-19
Set ulimits for NM too.

9 years agoFix typo.
Daniel Hokka Zakrisson [Wed, 28 Oct 2009 01:33:54 +0000]
Fix typo.

9 years agoinfinity is greater than anything.
Daniel Hokka Zakrisson [Mon, 26 Oct 2009 05:40:02 +0000]
infinity is greater than anything.

9 years agoOnly handle the values that translate.
Daniel Hokka Zakrisson [Sat, 24 Oct 2009 21:59:43 +0000]
Only handle the values that translate.

9 years agoOptimize the 0.0.0.0 case, and get it working on 2.3 kernels.
Daniel Hokka Zakrisson [Sat, 24 Oct 2009 21:38:07 +0000]
Optimize the 0.0.0.0 case, and get it working on 2.3 kernels.

9 years agobwlimit.set() now accepts the device and don't assume that it's eth0
Barış Metin [Tue, 20 Oct 2009 12:53:58 +0000]
bwlimit.set() now accepts the device and don't assume that it's eth0

Setting tag util-vserver-pl-0.3-18

--This line, and those below, will be ignored--
Please write a changelog for this new tag in the section above
DIFF=========
Index: python/bwlimit.py
===================================================================
--- python/bwlimit.py (.../tags/util-vserver-pl-0.3-17) (révision 15382)
+++ python/bwlimit.py (.../trunk) (révision 15382)
@@ -573,8 +573,8 @@
        (dev, exempt_minor | xid, exempt_minor | xid))

-def set(xid, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None):
-    on(xid = xid, share = share,
+def set(xid, share = None, minrate = None, maxrate = None, minexemptrate = None, maxexemptrate = None, dev = dev ):
+    on(xid = xid, dev = dev, share = share,
        minrate = minrate, maxrate = maxrate,
        minexemptrate = minexemptrate, maxexemptrate = maxexemptrate)

9 years agoin bwlimit.set() do not use the global 'dev' but get and pass it to bwlimit.on()
Barış Metin [Wed, 14 Oct 2009 08:46:32 +0000]
in bwlimit.set() do not use the global 'dev' but get and pass it to bwlimit.on()

9 years agoSetting tag util-vserver-pl-0.3-17
Faiyaz Ahmed [Tue, 4 Aug 2009 16:16:03 +0000]
Setting tag util-vserver-pl-0.3-17
Fix runlevel clean up after reboot.
Fix runlevel setup to reflect proper runlevel.

9 years agosetting runlevels was set to the wrong path. FIXED
Faiyaz Ahmed [Tue, 4 Aug 2009 16:12:33 +0000]
setting runlevels was set to the wrong path.  FIXED

9 years agoVar is never cleaned IN the context. Fixed. THis still does not fix RH initscripts.
Faiyaz Ahmed [Tue, 28 Jul 2009 21:30:17 +0000]
Var is never cleaned IN the context.  Fixed.  THis still does not fix RH initscripts.

10 years agoTagging module util-vserver-pl - util-vserver-pl-0.3-16
Faiyaz Ahmed [Thu, 29 Jan 2009 20:50:34 +0000]
Tagging module util-vserver-pl - util-vserver-pl-0.3-16
supports disabling htbs.

10 years agodirty...dirty..dirty hack to get rid of r2q.
Faiyaz Ahmed [Thu, 29 Jan 2009 20:45:52 +0000]
dirty...dirty..dirty hack to get rid of r2q.