[Bug 1460066] Re: Failure of adt-buildvm-ubuntu-cloud after qemu isn't installed causes re-download of image

Martin Pitt martin.pitt at ubuntu.com
Tue Jun 2 09:44:15 UTC 2015


http://anonscm.debian.org/cgit/autopkgtest/autopkgtest.git/commit/?id=ca46853a

** Changed in: autopkgtest (Ubuntu)
   Importance: Undecided => Low

** Changed in: autopkgtest (Ubuntu)
       Status: New => Fix Committed

-- 
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/1460066

Title:
  Failure of adt-buildvm-ubuntu-cloud after qemu isn't installed causes
  re-download of image

Status in autopkgtest package in Ubuntu:
  Fix Committed

Bug description:
  $ adt-buildvm-ubuntu-cloud -r wily
  WARNING: python-distro-info not installed, falling back to determining default release from currently installed release
  Downloading http://cloud-images.ubuntu.com/wily/current/wily-server-cloudimg-amd64-disk1.img...
  283.8/285.2 MB (100%)                 
  Download successful.
  Resizing image, adding 4G...
  Image resized.
  Building seed image...
  Booting image to run cloud-init...
  Traceback (most recent call last):
    File "/usr/bin/adt-buildvm-ubuntu-cloud", line 318, in <module>
      boot_image(image, seed, args.qemu_command, args.verbose)
    File "/usr/bin/adt-buildvm-ubuntu-cloud", line 278, in boot_image
      '-drive', 'file=%s,if=virtio,readonly' % seed])
    File "/usr/lib/python3.4/subprocess.py", line 859, in __init__
      restore_signals, start_new_session)
    File "/usr/lib/python3.4/subprocess.py", line 1457, in _execute_child
      raise child_exception_type(errno_num, err_msg)
  FileNotFoundError: [Errno 2] No such file or directory: 'qemu-system-x86_64'

  It's OK that qemu wasn't found - that part was my fault. But I didn't
  expect it to spend minutes downloading (slow connection) and *then*
  fail with this, yet not cache the image so retrying is painful.

  Can we do any of:

  1) Cache downloaded images before this failure
  2) Detect that qemu isn't available and fail before download, given that qemu isn't a Depends or Recommends.

  Version: 3.13

  Thanks

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/autopkgtest/+bug/1460066/+subscriptions



More information about the foundations-bugs mailing list