← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1482436] Re: Support for compressed/archive file is broken with image-create

 

You can upload a compressed image to glance but it is not possible to boot an instance from zipped image because it is not supported by Nova.
Glance support zip compression when transmitting an image from Glance to Nova but it is decompressed/compressed by wsgi application (not Glance) and that wsgi app have no idea about source image encoding.
So I am marking this as Invalid.

** Changed in: glance
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1482436

Title:
  Support for compressed/archive file is broken with image-create

Status in Glance:
  Invalid

Bug description:
  Discovered via Horizon bug:
  https://bugs.launchpad.net/horizon/+bug/1479966

  Creating image from archive file appears to be broken, evident by
  instance launched from it fails to boot (error: "No bootable device").

  Steps to reproduce:

  1. Have a tar.gz version of a qcow image available locally and/or
  remotely accessible via HTTP.

  2.1 Create an image using copy-from:
  ----------------------------
  $ glance image-create --name="test-remote-compressed" --is-public=true --disk-format=qcow2 --container-format=bare --is-public=True --copy-from http://example.com/cirros-0.3.0-i386-disk.img.tar.gz
  ----------------------------

  2.2 Create an image from a local file:
  ----------------------------
  $ glance image-create --name="test-remote-compressed2" --is-public=true --disk-format=qcow2 --container-format=bare --is-public=True < cirros-0.3.0-i386-disk.img.tar.gz
  ----------------------------

  3. Launch instances from created images.

  Expected:

  1. Instances launched and boot successfully.

  Actual:

  1. Console outputs the following:
  ----------------------------
  Booting from Hard Disk...
  Boot failed: not a bootable disk

  No bootable device.
  ----------------------------

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1482436/+subscriptions


References