util-vserver-pl.git
13 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 (09:31 +0100)]
Setting tag util-vserver-pl-0.4-22
pass device to bwlimit

13 years agoFixes for non-eth0 devices
Andy Bavier [Thu, 27 Jan 2011 17:02:39 +0000 (12:02 -0500)]
Fixes for non-eth0 devices

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

13 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 (18:11 +0100)]
Setting tag util-vserver-pl-0.4-21
force remove nonamespace

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

13 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 (15:14 -0400)]
Setting tag util-vserver-pl-0.4-20
Fix the segfault caused by existing TUN device

13 years agoCheck ifa->ifa_addr otherwise existing TUN device causes following segfault;
S.Çağlar Onur [Tue, 12 Oct 2010 19:09:08 +0000 (15:09 -0400)]
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)

13 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 (12:25 -0400)]
Setting tag util-vserver-pl-0.4-19
Fix syntax error

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

13 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 (16:40 -0400)]
Setting tag util-vserver-pl-0.4-18
migrate old style interface files to new style

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

13 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 (17:07 -0400)]
Setting tag util-vserver-pl-0.4-17
Some dead code removed from repository

13 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 (14:05 -0400)]
remove planetlab.* and netns.c as they are no longer used by util-vserver-pl

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

13 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 (11:09 -0400)]
Setting tag util-vserver-pl-0.4-16
* use system-wide umask
* enable set_ipaddresses_config function
* set more default values

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

13 years agoset default values correctly
S.Çağlar Onur [Fri, 16 Jul 2010 19:37:12 +0000 (15:37 -0400)]
set default values correctly

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

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

13 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 (13:16 -0400)]
use system-wide umask value otherwise all directories under /dev/cgroup and /vservers become world writable

13 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 (00:00 +0200)]
Setting tag util-vserver-pl-0.4-15
new constant VC_LIM_INFINITY

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

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

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

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

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

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

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

13 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 (14:52 +0000)]
simpler yet, no need to trigger rc at all now that we use vserver .. start

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

13 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 (20:23 +0000)]
This patch puts users in their home directories when they log into a slice.

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

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

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

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

13 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 (19:02 +0000)]
Branch 0.4 for module util-vserver-pl created (as new trunk) from tag util-vserver-pl-0.3-27

14 years agoSetting tag util-vserver-pl-0.3-27
Marc Fiuczynski [Wed, 24 Feb 2010 17:09:58 +0000 (17:09 +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.

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

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

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

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

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

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

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

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

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

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

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

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

14 years agoSetting tag util-vserver-pl-0.3-21
Thierry Parmentelat [Mon, 25 Jan 2010 14:48:24 +0000 (14:48 +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

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

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

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

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

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

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

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

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

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

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

14 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 (21:38 +0000)]
Optimize the 0.0.0.0 case, and get it working on 2.3 kernels.

14 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 (12:53 +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)

14 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 (08:46 +0000)]
in bwlimit.set() do not use the global 'dev' but get and pass it to bwlimit.on()

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

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

14 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 (21:30 +0000)]
Var is never cleaned IN the context.  Fixed.  THis still does not fix RH initscripts.

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

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

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