← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1226089] Re: glance image-create creates image of size zero instead of failing

 

Agree that this was fixed by fix for
https://bugs.launchpad.net/glance/+bug/1257273 , which has been
released.

** Changed in: glance
       Status: New => Fix Released

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

Title:
  glance image-create creates image of size zero instead of failing

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  I accidently tried creating a new image using

  glance image-create --name cirros --is-public true --container-format
  bare --disk-format qcow2 --location
  https://launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

  with an HTTP URL from a virtual machine with no external network
  connectivity.  To my surprise, the command appeared to pass and the
  status showed as "active".  However, the image size was zero and of
  course the image was non-bootable.

  This is unexpected.  If glance can't download the specified URL then
  the command should fail noisily to minimize confusion.  Certainly the
  status shouldn't ever be "active" for a zero-size image.

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