← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1300364] [NEW] glance image-create failed but image item created in database

 

Public bug reported:

In my grizzly environment, I used glance image-create with --location
option to create  an image from img file stored on the internet, but
because my glance server didn't have internet access, glance image-
create hung there without returning success or failure, so I ctl+c to
exit the command, but when glance image-list, the image I just created
was there with zero size and the status was active. but, of course, it
is unusable.

# glance image-create --name cirros --is-public true --container-format
bare --disk-format qcow2 --location http://download.cirros-
cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img

^C... terminating glance client
# glance image-list
+--------------------------------------+--------+-------------+------------------+------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size | Status |
+--------------------------------------+--------+-------------+------------------+------+--------+
| a4447d2f-c036-43e1-a9c4-3dacbd22bd04 | cirros | qcow2       | bare             |      | active |
+--------------------------------------+--------+-------------+------------------+------+--------+

** Affects: glance
     Importance: Undecided
         Status: New

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

Title:
  glance image-create failed but image item created in database

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

Bug description:
  In my grizzly environment, I used glance image-create with --location
  option to create  an image from img file stored on the internet, but
  because my glance server didn't have internet access, glance image-
  create hung there without returning success or failure, so I ctl+c to
  exit the command, but when glance image-list, the image I just created
  was there with zero size and the status was active. but, of course, it
  is unusable.

  # glance image-create --name cirros --is-public true --container-
  format bare --disk-format qcow2 --location http://download.cirros-
  cloud.net/0.3.1/cirros-0.3.1-x86_64-disk.img

  ^C... terminating glance client
  # glance image-list
  +--------------------------------------+--------+-------------+------------------+------+--------+
  | ID                                   | Name   | Disk Format | Container Format | Size | Status |
  +--------------------------------------+--------+-------------+------------------+------+--------+
  | a4447d2f-c036-43e1-a9c4-3dacbd22bd04 | cirros | qcow2       | bare             |      | active |
  +--------------------------------------+--------+-------------+------------------+------+--------+

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


Follow ups

References