glance image-create creates image of size zero instead of failing
Bug #1226089 reported by
Chris Friesen
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Undecided
|
Unassigned |
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:/
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.
Changed in glance: | |
assignee: | nobody → anju Tiwari (anjutiwari5) |
Changed in glance: | |
assignee: | anju Tiwari (anjutiwari5) → nobody |
Changed in glance: | |
assignee: | nobody → lizheming (lizheming-li) |
Changed in glance: | |
assignee: | lizheming (lizheming-li) → nobody |
tags: | added: propose-close |
To post a comment you must log in.
Hi Chris, are you sure the image is in "active" state? Since based on current implement, it should be in "queued" state. And I can't recreate it in my dev env.
Besides, I would say it's a dup of https:/ /bugs.launchpad .net/python- glanceclient/ +bug/1184965