adt-virt-lxc fails on lxc-clone deprecation warning

Bug #1549995 reported by Barry Warsaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
High
Martin Pitt

Bug Description

On Xenial, I ran this to build the container:

$ sudo adt-build-lxc ubuntu xenial

but when I try to adt-run with that container, it gives me an error. Note that the presence or not of -U --apt-pocket and --sudo make no difference:

$ adt-run -U --apt-pocket=proposed build-area/python-virtualenv_14.0.5+ds-1.dsc --- lxc --sudo adt-xenial
adt-run [15:52:24]: version 3.19.2
adt-run [15:52:24]: host subdivisions; command line: /usr/bin/adt-run -U --apt-pocket=proposed build-area/python-virtualenv_14.0.5+ds-1.dsc --- lxc --sudo adt-xenial
<VirtSubproc>: failure: ['sudo', 'lxc-clone', '--new', 'adt-virt-lxc-mmluqo', '--orig', 'adt-xenial'] unexpectedly produced stderr output `lxc-clone is deprecated in favor of lxc-copy.

'
adt-run [15:52:26]: ERROR: testbed failure: cannot send to testbed: ['BrokenPipeError: [Errno 32] Broken pipe\n']

Revision history for this message
Barry Warsaw (barry) wrote :

Is it the deprecation that's the problem?

Revision history for this message
Martin Pitt (pitti) wrote :

Right, it's the stderr output that throws it off. I'll just ignore warnings from that command, but in the medium term I need to teach the runner to use the new lxc-copy if available, as lxc-start-ephemeral and lxc-clone will go away right after xenial release.

Changed in autopkgtest (Ubuntu):
importance: Undecided → High
status: New → Triaged
summary: - adt-run w/lxc appears to be broken
+ adt-virt-lxc fails on lxc-clone deprecation warning
Revision history for this message
Martin Pitt (pitti) wrote :

The failure is fixed by http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=7310b05, but this isn't the full story yet -- this should use lxc-copy when available.

Also, all the tests are still broken with current LXC for some other reasons, there are multiple subtle behaviour changes with 2.0.0~rc2 and rc3.

Changed in autopkgtest (Ubuntu):
assignee: nobody → Martin Pitt (pitti)
status: Triaged → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

> Also, all the tests are still broken with current LXC for some other reasons

This is now tracked in bug 1551960.

Revision history for this message
Martin Pitt (pitti) wrote :
Changed in autopkgtest (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package autopkgtest - 3.20.1

---------------
autopkgtest (3.20.1) unstable; urgency=medium

  * When testing click packages, don't regenerate all AppArmor profiles if
    /var/cache/apparmor/click-ap.rules already exists. That way the profiles
    can be pre-adjusted once in a testbed instead of once for each test run,
    which greatly speeds up iterations. (LP: #1553797)
  * Move SshRunner* tests from lxc to lxd.
  * NullRunner.test_tree_output_dir test: Only check for cpu_{model,flags} on
    x86 and ARM, as these need parsing adjustments on other architectures.
  * Disable lxd autopkgtest for now, this still needs some way to set a proxy.
  * lib/VirtSubproc.py, cmd_reboot(): Add workaround for dhclient hanging on
    reboot (see LP #1556175).
  * Fix regular expression for removing profile guarded dependencies on hosts
    that don't support build profiles.
  * adt-virt-lxc: Suppress lxc-copy's stdout in the "no btrfs" fallback case.
    (Closes: #818185)

 -- Martin Pitt <email address hidden> Mon, 14 Mar 2016 22:35:54 +0100

Changed in autopkgtest (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.