[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-23 Thread Robert Collins
@gary @serge - that dhcp vs dhcp3 thing is probably a case where the script needs to handle both: the dhcp client version changed between lucid and oneiric. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu.

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-23 Thread Gary Poster
** No longer affects: launchpad -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-23 Thread Gary Poster
@serge Thank you! @Robert IIUC we do both dhcp and dhcp3. My diff merely added a sudo. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral script does

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-19 Thread Gary Poster
With the fix from bug 914169, the only basic change we need in this script is as follows: 121,122c121,122 mkdir -p $LXC_DIR/rootfs/var/lib/dhcp3 mkdir -p $LXC_DIR/rootfs/var/lib/dhcp --- sudo mkdir -p $LXC_DIR/rootfs/var/lib/dhcp3 sudo mkdir -p $LXC_DIR/rootfs/var/lib/dhcp We're also

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-19 Thread Serge Hallyn
Thanks, Gary, I'll upload with that change. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral script does not support in-line programmatic commands to

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-19 Thread Launchpad Bug Tracker
** Branch linked: lp:ubuntu/lxc -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-19 Thread Launchpad Bug Tracker
This bug was fixed in the package lxc - 0.7.5-3ubuntu6 --- lxc (0.7.5-3ubuntu6) precise; urgency=low * debian/patches/0020-drop-cap-mac-admin.patch - to prevent containers from loading apparmor policy. * update 0016-nested-cgroups.patch: create cgroup dirs 0755 so that

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-11 Thread Gary Poster
Thank you Serge. The switch from aufs looks good. We're evaluating it now. We'll have feedback soon. -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to lxc in Ubuntu. https://bugs.launchpad.net/bugs/914169 Title: lxc-start-ephemeral

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-10 Thread Serge Hallyn
The original script created the ephemeral container, started it with lxc-start, then ssh'd to it. I wonder if it would suffice to create the ephemeral container, then run the specified command in it with lxc-execute, rather than using lxc- start. That would mean the upstart jobs would not start

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-10 Thread Gary Poster
Yes, the way the ssh was assembled was a bit rough--running sed over the dhcp leases to find the ip address of the container name. In the solution I proposed on this bug, we were going to initially do the same within the command string. At least the hack would not be in lxc itself. Later we

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-10 Thread Gary Poster
** Also affects: launchpad Importance: Undecided Status: New ** Changed in: launchpad Status: New = Triaged ** Changed in: launchpad Importance: Undecided = High ** Tags added: paralleltest -- You received this bug notification because you are a member of Ubuntu Server

[Bug 914169] Re: lxc-start-ephemeral script does not support in-line programmatic commands to ephemeral containers

2012-01-10 Thread Serge Hallyn
This version of lxc-start-ephemeral makes the following changes: 1. drops aufs (doesn't work on precise) 2. if COMMAND is specified, then, as in Robert's original version, the container executes the command and then is destroyed. If no COMMAND is specified, it waits until it is stopped (i.e.