Glance image-create stuck in saving state using rbd as a backend and --copy-from option
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
High
|
Chris Fattarsi | ||
Grizzly |
Fix Released
|
High
|
Francois Deppierraz |
Bug Description
We are running OpenStack on top of Ceph. Currently we are experiencing a problem when using the --copy-from option with the glance cli and thus when using Horizon to fetch and save images. If we do so the Image does get saved onto the appropriate pool in Ceph but stays in saving state as far as it concerns OpenStack.
=======
Used Version of Glance:
root@ineri:~# dpkg -s glance
Package: glance
Status: install ok installed
Priority: extra
Section: python
Installed-Size: 44
Maintainer: Ubuntu OpenStack <email address hidden>
Architecture: all
Version: 2012.2.
...
Used Version of Ceph:
root@ineri:~# dpkg -s ceph
Package: ceph
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 25103
Maintainer: Laszlo Boszormenyi (GCS) <email address hidden>
Architecture: amd64
Version: 0.57-1quantal
...
=======
=======
Used command:
root@ineri:~# glance -v image-create --copy-from http://
+------
| Property | Value |
+------
| checksum | None |
| container_format | bare |
| created_at | 2013-03-05T12:50:08 |
| deleted | False |
| deleted_at | None |
| disk_format | qcow2 |
| id | 9c219573-
| is_public | True |
| min_disk | 0 |
| min_ram | 0 |
| name | Bug-test Fedora |
| owner | 973725e34520404
| protected | False |
| size | 225640448 |
| status | queued |
| updated_at | 2013-03-05T12:50:08 |
+------
=======
This results in a Image that is stuck in saving state:
=======
Result after approx. 1 Minute:
root@ineri:~# nova image-show 9c219573-
+------
| Property | Value |
+------
| created | 2013-03-
| id | 9c219573-
| minDisk | 0 |
| minRam | 0 |
| name | Bug-test Fedora |
| progress | 50 |
| status | SAVING |
| updated | 2013-03-
+------
=======
=======
Relevant excerpts from the glance log (api.log):
2013-03-05 13:50:08 INFO glance.
=======
=======
Result after some more minutes:
root@ineri:~# date
Tue Mar 5 13:57:56 CET 2013
root@ineri:~# nova image-show 9c219573-
+------
| Property | Value |
+------
| created | 2013-03-
| id | 9c219573-
| minDisk | 0 |
| minRam | 0 |
| name | Bug-test Fedora |
| progress | 50 |
| status | SAVING |
| updated | 2013-03-
+------
=======
=======
The image is there (and it has the right size):
root@ineri:~# rbd -p images list --long | grep 9c219573-
9c219573-
=======
description: | updated |
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in glance: | |
milestone: | none → havana-1 |
status: | Fix Committed → Fix Released |
tags: | added: grizzly-backport-potential |
Changed in glance: | |
milestone: | havana-1 → 2013.2 |
tags: | removed: grizzly-backport-potential in-stable-grizzly |
This bug is a follow up on Comment 15 onwards of bug https:/ /bugs.launchpad .net/glance/ +bug/1112670