Sapan Bhatia [Tue, 21 Jan 2014 14:37:10 +0000 (09:37 -0500)]
Tabulation issues. Revert "Make lookup of child pid portable. The new lookup works on F18 and below."
This reverts commit
51380fc5bdc153460ea678b67ac96cd85847c8ea.
Sapan Bhatia [Tue, 21 Jan 2014 09:45:07 +0000 (04:45 -0500)]
Make lookup of child pid portable. The new lookup works on F18 and below.
Thierry Parmentelat [Mon, 20 Jan 2014 17:40:51 +0000 (18:40 +0100)]
a little cleanup won’t hurt
Thierry Parmentelat [Mon, 20 Jan 2014 09:58:57 +0000 (10:58 +0100)]
when locating namespaces in /proc/<pid>/ns
do not use the result of virsh domid to determine <pid> as this would point at the lxc driver
we need to use its - expected single - child process, that instead corresponds to the VM init/systemd instance
Thierry Parmentelat [Mon, 20 Jan 2014 07:37:07 +0000 (08:37 +0100)]
a safer way to sync code on a running node - no Makefile.vsh anyway
Thierry Parmentelat [Wed, 15 Jan 2014 13:33:08 +0000 (14:33 +0100)]
check return codes and print warnings when suspicius
Thierry Parmentelat [Wed, 15 Jan 2014 13:32:38 +0000 (14:32 +0100)]
remove code stolen from libvirt that is not needed any more
Thierry Parmentelat [Wed, 15 Jan 2014 10:35:58 +0000 (11:35 +0100)]
more meaningful retcods for ch[fs]context
Thierry Parmentelat [Wed, 15 Jan 2014 09:46:26 +0000 (10:46 +0100)]
just re-order
Thierry Parmentelat [Wed, 15 Jan 2014 09:39:18 +0000 (10:39 +0100)]
cosmetic
Thierry Parmentelat [Wed, 15 Jan 2014 09:34:41 +0000 (10:34 +0100)]
Sapan's changes to address cgroups location
Seems to work on fedora20 nodes
Thierry Parmentelat [Fri, 10 Jan 2014 13:25:29 +0000 (14:25 +0100)]
support for libvirt—1.1 naming scheme
Thierry Parmentelat [Fri, 10 Jan 2014 11:47:02 +0000 (12:47 +0100)]
redid indent=4 but more carefully this time
Thierry Parmentelat [Fri, 10 Jan 2014 10:34:29 +0000 (11:34 +0100)]
show more in debug mode
Thierry Parmentelat [Fri, 10 Jan 2014 10:28:22 +0000 (11:28 +0100)]
run virsh connected to lxc
Thierry Parmentelat [Fri, 10 Jan 2014 10:14:03 +0000 (11:14 +0100)]
discarded changes from branch that had the broken reindentation attempt
Thierry Parmentelat [Fri, 10 Jan 2014 10:05:02 +0000 (11:05 +0100)]
Simplify lxcsu by querying libvirt for pid
—
this is a manual re-injection of Sapan’s change
it was a big mistake to reindent automatically as this broke the logic entirely
Sapan Bhatia [Thu, 9 Jan 2014 18:00:43 +0000 (13:00 -0500)]
Simplify lxcsu by querying libvirt for pid
Thierry Parmentelat [Thu, 9 Jan 2014 16:01:10 +0000 (17:01 +0100)]
indent=4
Scott Baker [Tue, 3 Dec 2013 00:07:56 +0000 (16:07 -0800)]
fix perms
Scott Baker [Tue, 3 Dec 2013 00:07:42 +0000 (16:07 -0800)]
fix sysctl support causing scp to break due to printing text to ssh connection
Sapan Bhatia [Wed, 9 Oct 2013 02:43:10 +0000 (22:43 -0400)]
Fix for the "error disabling cgroup" error
Thierry Parmentelat [Fri, 20 Sep 2013 09:43:58 +0000 (11:43 +0200)]
Setting tag lxc-userspace-1.0-8
fix vsh permissions
Scott Baker [Thu, 5 Sep 2013 23:04:06 +0000 (16:04 -0700)]
set u+s on /usr/sbin/vsh
Thierry Parmentelat [Sat, 31 Aug 2013 09:29:26 +0000 (11:29 +0200)]
Setting tag lxc-userspace-1.0-7
perform vsys sysctl inside of container
remove unnecessary proc remounts
prevent setting LD_PRELOAD if the library doesn't exist in image
add --noslicehome option
check /etc/lxcsu_default for default arguments
fix permissions
support conventional invocation of make
Scott Baker [Fri, 30 Aug 2013 18:08:29 +0000 (11:08 -0700)]
add --noslicehome option, and check /etc/lxcsu_default for default arguments
Thierry Parmentelat [Mon, 26 Aug 2013 11:40:22 +0000 (13:40 +0200)]
Thomas's fix on Makefile + remove lines with tabs
Scott Baker [Fri, 16 Aug 2013 00:06:40 +0000 (17:06 -0700)]
fix permissions
Scott Baker [Fri, 16 Aug 2013 00:06:26 +0000 (17:06 -0700)]
remove unnecessary proc remounts, prevent setting LD_PRELOAD if the library doesn't exist in image
Sapan Bhatia [Mon, 12 Aug 2013 20:39:46 +0000 (16:39 -0400)]
Support conventional invocation of make
Sapan Bhatia [Mon, 12 Aug 2013 20:34:06 +0000 (16:34 -0400)]
asm/unistd.h is a more standard include than asm-generic/unistd.h
Scott Baker [Mon, 12 Aug 2013 19:46:20 +0000 (12:46 -0700)]
fix perms
Scott Baker [Mon, 12 Aug 2013 19:45:55 +0000 (12:45 -0700)]
fix lxcsu not handling nodemanager interfaces.py ('/sbin/service network restart') properly
smbaker [Mon, 5 Aug 2013 19:11:06 +0000 (12:11 -0700)]
fix perms
smbaker [Mon, 5 Aug 2013 19:10:42 +0000 (12:10 -0700)]
perform vsys sysctl inside of container
Thierry Parmentelat [Sat, 13 Jul 2013 22:15:26 +0000 (00:15 +0200)]
Setting tag lxc-userspace-1.0-6
merge back lxcsu and -internal into a single source file
capsh --uid instead of --user that was not yet supported in f12 (hopefully tmp)
Thierry Parmentelat [Mon, 8 Jul 2013 19:41:42 +0000 (21:41 +0200)]
messages still had lxcsu-internal
Thierry Parmentelat [Mon, 8 Jul 2013 19:19:33 +0000 (21:19 +0200)]
move back to a single source file (lxcsu) with a -i/--internal option, and an lxcsu-internal symlink
Thierry Parmentelat [Sat, 6 Jul 2013 13:16:47 +0000 (15:16 +0200)]
capsh --user is available from f14 only
use caps --uid instead for now
Thierry Parmentelat [Sat, 6 Jul 2013 13:12:08 +0000 (15:12 +0200)]
remove useless import
Thierry Parmentelat [Wed, 3 Jul 2013 05:56:27 +0000 (07:56 +0200)]
Setting tag lxc-userspace-1.0-5
entering in a slice now correctly ends up with right uid and pwd
make sync
Thierry Parmentelat [Tue, 2 Jul 2013 14:45:24 +0000 (16:45 +0200)]
explicitly chdir to slice's homedir since bash does not seem to be willing to do so even though it's started with --login...
Thierry Parmentelat [Tue, 2 Jul 2013 11:32:20 +0000 (13:32 +0200)]
lxcsu-internal to set LD_PRELOAD and HOME (resulting process wtill ends up in / though)
Thierry Parmentelat [Tue, 2 Jul 2013 11:31:09 +0000 (13:31 +0200)]
lxcsu-internal to call capsh with --user=<slicename>
Thierry Parmentelat [Tue, 2 Jul 2013 10:07:23 +0000 (12:07 +0200)]
make sync needs to set extra permissions as well
Thierry Parmentelat [Tue, 2 Jul 2013 10:00:16 +0000 (12:00 +0200)]
can use make sync to push a working version on a tesst node
Sapan Bhatia [Mon, 1 Jul 2013 22:03:44 +0000 (18:03 -0400)]
Setting tag lxc-userspace-1.0-4
Bug fixes:
- lxcsu <slice_name> works again
- pid namespace issue that would let slices see all processes
Sapan Bhatia [Mon, 1 Jul 2013 22:01:32 +0000 (18:01 -0400)]
Fixed pid ns bug
Sapan Bhatia [Mon, 1 Jul 2013 15:30:53 +0000 (11:30 -0400)]
Add commandline option to bash in order to support "lxcsu <slicename>"
Sapan Bhatia [Fri, 28 Jun 2013 16:58:36 +0000 (12:58 -0400)]
Setting tag lxc-userspace-1.0-3
Fixed bug that would let slices see all processes in root context.
Sapan Bhatia [Fri, 28 Jun 2013 16:53:35 +0000 (12:53 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/lxc-userspace
Sapan Bhatia [Fri, 28 Jun 2013 16:53:27 +0000 (12:53 -0400)]
lxcsu proc bug fix
Thierry Parmentelat [Wed, 26 Jun 2013 07:06:07 +0000 (09:06 +0200)]
Setting tag lxc-userspace-1.0-2
split into lxcsu{,-internal}
smbaker [Mon, 24 Jun 2013 20:29:44 +0000 (13:29 -0700)]
support for centos 5.5 image
Thierry Parmentelat [Sun, 23 Jun 2013 06:22:44 +0000 (08:22 +0200)]
rename options into ags as we use ArgumentParser and not OtionParser any more
Thierry Parmentelat [Sun, 23 Jun 2013 06:20:25 +0000 (08:20 +0200)]
OOPS - was packaging lxcsu as lxcsu-internal
Thierry Parmentelat [Fri, 21 Jun 2013 15:03:34 +0000 (17:03 +0200)]
probable fix
Thierry Parmentelat [Fri, 21 Jun 2013 15:03:00 +0000 (17:03 +0200)]
cleanup and add suggestions but commented
Thierry Parmentelat [Thu, 20 Jun 2013 09:19:40 +0000 (11:19 +0200)]
package lxcsu-internal
Sapan Bhatia [Tue, 18 Jun 2013 01:31:33 +0000 (21:31 -0400)]
Added support for sysctls
Sapan Bhatia [Tue, 18 Jun 2013 01:07:11 +0000 (21:07 -0400)]
Support lxcsu <slicename>
Sapan Bhatia [Tue, 18 Jun 2013 01:04:36 +0000 (21:04 -0400)]
Changed interface to lxcsu. Now invoked as lxcsu <slicename> command
Thierry Parmentelat [Wed, 5 Jun 2013 17:05:16 +0000 (19:05 +0200)]
Setting tag lxc-userspace-1.0-1
rename module and package from lxctools into lxc-userspace
Thierry Parmentelat [Tue, 4 Jun 2013 17:52:44 +0000 (19:52 +0200)]
rename into lxc-userspace and bump release to 1.0
this package does Obsoletes: lxctools
Sapan Bhatia [Mon, 3 Jun 2013 19:55:18 +0000 (15:55 -0400)]
Setting tag lxctools-0.9-8
- Upgraded code for compatibility with kernel 3.6.9
- Obsoleted modules for switching into mnt and pid namespaces
- Added command to mount /proc if not mounted
Sapan Bhatia [Mon, 3 Jun 2013 19:49:40 +0000 (15:49 -0400)]
Bug fixes
Sapan Bhatia [Mon, 3 Jun 2013 19:24:27 +0000 (15:24 -0400)]
Mount /proc inside slice.
Thierry Parmentelat [Thu, 30 May 2013 09:18:34 +0000 (11:18 +0200)]
iron out argument parser usage, add --debug option, and get this to work again in simple (no arch change) cases at least
Andy Bavier [Wed, 29 May 2013 17:17:44 +0000 (17:17 +0000)]
Setting tag lxctools-0.9-7
Use ArgumentParser, fix issue with sensing arch
Andy Bavier [Wed, 29 May 2013 17:13:45 +0000 (13:13 -0400)]
Added binutils dependency
Thierry Parmentelat [Wed, 29 May 2013 13:42:23 +0000 (15:42 +0200)]
use ArgumentParser instead of deprecated OptionParser
Thierry Parmentelat [Wed, 29 May 2013 13:40:25 +0000 (15:40 +0200)]
added a main function
Thierry Parmentelat [Wed, 29 May 2013 13:30:03 +0000 (15:30 +0200)]
define a default for 'arch' as I find it sometimes undefined
Thierry Parmentelat [Wed, 29 May 2013 10:53:12 +0000 (12:53 +0200)]
Setting tag lxctools-0.9-6
implements vm's arch
Sapan Bhatia [Fri, 24 May 2013 14:51:32 +0000 (10:51 -0400)]
Merge branch 'master' of ssh://git.planet-lab.org/git/lxctools
Sapan Bhatia [Thu, 23 May 2013 22:02:56 +0000 (18:02 -0400)]
Detect architecture of lxc container and make sure the spawned environment has the same architecture.
Thierry Parmentelat [Tue, 23 Apr 2013 09:38:46 +0000 (11:38 +0200)]
Setting tag lxctools-0.9-5
more flexible and more robust lxcsu
Thierry Parmentelat [Tue, 23 Apr 2013 09:36:26 +0000 (11:36 +0200)]
revert tag update so we can use module-tag
Sapan Bhatia [Thu, 14 Mar 2013 18:10:10 +0000 (14:10 -0400)]
Without this, scp, ssh with bash arguments etc. does not work
Sapan Bhatia [Tue, 12 Mar 2013 14:20:30 +0000 (10:20 -0400)]
Updated tag
Sapan Bhatia [Tue, 12 Mar 2013 14:20:04 +0000 (10:20 -0400)]
Added flexibility to lxcsu
Thierry Parmentelat [Thu, 7 Mar 2013 08:06:50 +0000 (09:06 +0100)]
Setting tag lxctools-0.9-4
nicer polish to lxcsu returning the right thing
Sapan Bhatia [Tue, 5 Mar 2013 14:19:12 +0000 (09:19 -0500)]
Tweaked return code handling to use the usual Python method
Thierry Parmentelat [Mon, 4 Mar 2013 10:23:54 +0000 (11:23 +0100)]
Setting tag lxctools-0.9-3
lxcsu to propagate its forked process's return code
Thierry Parmentelat [Mon, 4 Mar 2013 09:11:34 +0000 (10:11 +0100)]
attempt to return correct retcod to vsh
Thierry Parmentelat [Fri, 22 Feb 2013 18:20:22 +0000 (19:20 +0100)]
Setting tag lxctools-0.9-2
various fixes
Thierry Parmentelat [Thu, 21 Feb 2013 13:32:38 +0000 (14:32 +0100)]
revert to a more sensible numbering scheme
Thierry Parmentelat [Thu, 31 Jan 2013 08:30:11 +0000 (09:30 +0100)]
tweak for f18
Sapan Bhatia [Tue, 22 Jan 2013 16:03:11 +0000 (11:03 -0500)]
Fix bug in dropped capabilities
Sapan Bhatia [Tue, 22 Jan 2013 15:13:10 +0000 (10:13 -0500)]
Bump version
Sapan Bhatia [Tue, 22 Jan 2013 15:12:36 +0000 (10:12 -0500)]
Prevent slices from accessing cgroups fs
smbaker [Tue, 18 Dec 2012 06:39:46 +0000 (22:39 -0800)]
bump version number
smbaker [Tue, 18 Dec 2012 06:36:41 +0000 (22:36 -0800)]
add mlab patch to add tasks to cpuacct cgroup, put os.environ before os.execv
Sapan Bhatia [Fri, 7 Dec 2012 16:01:28 +0000 (11:01 -0500)]
Remove kernel dependency, since this package does not contain any kernel modules
Sapan Bhatia [Thu, 6 Dec 2012 18:45:45 +0000 (13:45 -0500)]
Set shell to /bin/sh. By default it is vsh
Sapan Bhatia [Wed, 5 Dec 2012 19:27:53 +0000 (14:27 -0500)]
Remove debug line
Sapan Bhatia [Wed, 5 Dec 2012 19:26:37 +0000 (14:26 -0500)]
Bump tag
Sapan Bhatia [Wed, 5 Dec 2012 18:57:29 +0000 (13:57 -0500)]
Fix uts namespace bug + source /etc/profile when invoking bash
Andy Bavier [Wed, 24 Oct 2012 20:12:29 +0000 (15:12 -0500)]
Bump version number
Andy Bavier [Wed, 24 Oct 2012 17:15:16 +0000 (12:15 -0500)]
Keep cap_net_admin for configuring networking inside a slice