adt-buildvm-ubuntu-cloud -r yakkety produces image that does not work with adt-run

Bug #1582960 reported by Michael Hudson-Doyle
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autopkgtest (Ubuntu)
Fix Released
Undecided
Unassigned
Xenial
Triaged
Medium
Unassigned

Bug Description

mwhudson@aeglos:~$ adt-buildvm-ubuntu-cloud -r yakkety
Downloading https://cloud-images.ubuntu.com/yakkety/current/yakkety-server-cloudimg-amd64-disk1.img...
323.6/325.2 MB (100%)
Download successful.
Resizing image, adding 20G...
Image resized.
Building seed image...
Booting image to run cloud-init...
Moving image into final destination ./adt-yakkety-amd64-cloud.img
mwhudson@aeglos:~$ adt-run openafs --- qemu --debug adt-yakkety-amd64-cloud.img
adt-run [13:42:14]: version 3.20.4
adt-run [13:42:14]: host aeglos; command line: /usr/bin/adt-run openafs --- qemu --debug adt-yakkety-amd64-cloud.img
adt-virt-qemu: DBG: executing open
adt-virt-qemu: DBG: Creating temporary overlay image in /tmp/adt-virt-qemu.vi1o66t2/overlay.img
adt-virt-qemu: DBG: execute-timeout: qemu-img create -f qcow2 -b /home/mwhudson/adt-yakkety-amd64-cloud.img /tmp/adt-virt-qemu.vi1o66t2/overlay.img
adt-virt-qemu: DBG: Detected KVM capable Intel host CPU, enabling nested KVM
adt-virt-qemu: DBG: find_free_port: trying 10022
adt-virt-qemu: DBG: find_free_port: 10022 is free
adt-virt-qemu: DBG: Forwarding local port 10022 to VM ssh port 22
adt-virt-qemu: DBG: expect: " login: "
adt-virt-qemu: DBG: expect: found ""login prompt on ttyS0""
adt-virt-qemu: DBG: expect: "ok"
adt-virt-qemu: DBG: expect: found ""b'ok'""
adt-virt-qemu: DBG: setup_shell(): there already is a shell on ttyS1
adt-virt-qemu: DBG: expect: "#"
adt-virt-qemu: DBG: expect: found ""b'#'""
adt-virt-qemu: DBG: expect: "(qemu)"
adt-virt-qemu: DBG: expect: found ""b'(qemu)'""
adt-virt-qemu: DBG: expect: "(qemu)"
adt-virt-qemu: DBG: expect: found ""b'(qemu)'""
adt-virt-qemu: DBG: expect: "#"
adt-virt-qemu: DBG: expect: found ""b'#'""
adt-virt-qemu: DBG: expect: "#"
adt-virt-qemu: DBG: expect: found ""b'#'""
adt-virt-qemu: DBG: expect: "#"
adt-virt-qemu: DBG: expect: found ""b'#'""
adt-virt-qemu: DBG: Copying host timezone Pacific/Auckland to VM
adt-virt-qemu: DBG: expect: "#"
adt-virt-qemu: DBG: expect: found ""b'#'""
adt-virt-qemu: DBG: expect: "/python"
adt-virt-qemu: DBG: expect: found ""b'/python'""
adt-virt-qemu: DBG: expect: "# "
adt-virt-qemu: DBG: expect: found ""b'# '""
adt-virt-qemu: DBG: expect: "# "
adt-virt-qemu: DBG: expect: found ""b'# '""
adt-virt-qemu: DBG: execute-timeout: /tmp/adt-virt-qemu.vi1o66t2/runcmd true
qemu-system-x86_64: terminating on signal 15 from pid 4494
adt-virt-qemu: DBG: cleanup...
Unexpected error:
Traceback (most recent call last):
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 705, in mainloop
    command()
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 643, in command
    r = f(c, ce)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 258, in cmd_open
    caller.hook_open()
  File "/usr/bin/adt-virt-qemu", line 567, in hook_open
    make_auxverb(shareddir)
  File "/usr/bin/adt-virt-qemu", line 413, in make_auxverb
    status = VirtSubproc.execute_timeout(None, 5, VirtSubproc.auxverb + ['true'])[0]
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 144, in execute_timeout
    (out, err) = sp.communicate(instr)
  File "/usr/lib/python3.5/subprocess.py", line 1057, in communicate
    self.wait()
  File "/usr/lib/python3.5/subprocess.py", line 1648, in wait
    (pid, sts) = self._try_wait(0)
  File "/usr/lib/python3.5/subprocess.py", line 1598, in _try_wait
    (pid, sts) = os.waitpid(self.pid, wait_flags)
  File "/usr/share/autopkgtest/python/VirtSubproc.py", line 64, in alarm_handler
    raise Timeout()
VirtSubproc.Timeout
adt-run [13:42:29]: ERROR: testbed failure: testbed gave exit status 16 after quit

No idea what's going on, let me know if I can help!

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

I'm running Xenial, fwiw.

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

I suppose this is not specific to the yakkety image for you, i. e. a xenial image does work. The root cause is a regression in Python 3.5 (https://bugs.debian.org/822431) and I added a workaround in https://bugs.debian.org/821778 in autopkgtest 3.20.5.

Changed in autopkgtest (Ubuntu):
status: New → Fix Released
Changed in autopkgtest (Ubuntu Xenial):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Martin Pitt (pitti) wrote :

As an immediate workaround, you can install the 3.20.5 autopkgtest deb from yakkety. I'll backport 3.20.6 later today when it gets autosynced into yakkety.

Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote : Re: [Bug 1582960] Re: adt-buildvm-ubuntu-cloud -r yakkety produces image that does not work with adt-run

Thanks for the tip, installing the yakkety version works nicely.

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.