[Bug 1273725] Re: simplify adt-virt-lxc startup checks
Launchpad Bug Tracker
1273725 at bugs.launchpad.net
Fri Jan 31 17:51:32 UTC 2014
This bug was fixed in the package autopkgtest - 2.7
---------------
autopkgtest (2.7) unstable; urgency=medium
* adt-virt-lxc: Drop all the file-based checks for container bootup, and
replace with "lxc-attach runlevel" to wait until the container booted to a
numeric runlevel. This greatly simplifies the logic and drops the
cloud-init requirement so that this runner is now suitable for Debian or
debootstrap-based Ubuntu containers. (LP: #1273725)
* adt-virt-lxc.1: Drop --gain-root in notes/example. It's unnecessary
(adt-run will install fakeroot if missing) and confusing (as it's not
related to LXC specifically and otherwise not really used/useful).
* adt-virt-lxc.1: Add example how to create a Debian container, and some
cleanup of obsolete commentary.
* adt-virt-lxc: Add -s/--sudo option to run lxc-* commands through sudo; use
this option if you run adt-run as normal user, but need to run the
container itself as root (if you use LXC system-level containers).
This drops the hardcoded sudo commands and thus the dependency on sudo,
which is more palatable for Debian. (LP: #1273977)
* adt-virt-lxc: Add -e shortcut for --ephemeral, as this is an option which
you pretty much always want.
* adt-virt-lxc.1: Move more important options to the top.
* adt-virt-lxc: Stop hardcoding the "ubuntu" suggested normal user; instead,
call "getent passwd" to detect the first user with uid >= 500. Don't
advertise suggested-normal-user if none exists.
* adt-run: Rearrange finalizing options and reading capabilities to happen
after testbed opening. That allows the testbed to determine its full
capablities in its open hook.
* adt-run: Call dpkg-source --before-build for --unbuilt-tree arguments, to
ensure that patches are applied for "3.0 (quilt)" source trees. This is
useful to test *-buildpackage source trees where patches don't get
applied. (LP: #1212208)
-- Martin Pitt <mpitt at debian.org> Fri, 31 Jan 2014 11:14:32 +0100
** Changed in: autopkgtest (Ubuntu)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to autopkgtest in Ubuntu.
https://bugs.launchpad.net/bugs/1273725
Title:
simplify adt-virt-lxc startup checks
Status in “autopkgtest” package in Ubuntu:
Fix Released
Bug description:
Instead of our mad /var/lib/lxc/ poking, run "lxc-attach runlevel" and
wait until it switches to 2 (or better, anything else than "unknown"
or "S"), and also add a timeout. That's more robust, and also should
get us rid of the cloud-init requirement, so that this starts working
for more generic containers.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1273725/+subscriptions
More information about the foundations-bugs
mailing list