← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1146830] Re: Glance image-create stuck in saving state using rbd as a backend and --copy-from option

 

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

** Changed in: glance
    Milestone: None => havana-1

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

Title:
  Glance image-create stuck in saving state using rbd as a backend and
  --copy-from option

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

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 <openstack-packaging@xxxxxxxxxxxxxxxx>
  Architecture: all
  Version: 2012.2.4+git201303040601~quantal-0ubuntu1
  ...

  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) <gcs@xxxxxxxxx>
  Architecture: amd64
  Version: 0.57-1quantal
  ...

  ==========================================================================
  ==========================================================================
  Used command:

  root@ineri:~# glance -v image-create --copy-from http://mattdm.fedorapeople.org/cloud-images/Fedora18-Cloud-i386-20130115.qcow2 --name="Bug-test Fedora" --is-public true --container-format bare --disk-format qcow2
  +------------------+--------------------------------------+
  | Property         | Value                                |
  +------------------+--------------------------------------+
  | checksum         | None                                 |
  | container_format | bare                                 |
  | created_at       | 2013-03-05T12:50:08                  |
  | deleted          | False                                |
  | deleted_at       | None                                 |
  | disk_format      | qcow2                                |
  | id               | 9c219573-2aae-480d-a4f7-acaf469b241d |
  | is_public        | True                                 |
  | min_disk         | 0                                    |
  | min_ram          | 0                                    |
  | name             | Bug-test Fedora                      |
  | owner            | 973725e345204044a6078ef764f42d9d     |
  | 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-2aae-480d-a4f7-acaf469b241d
  +----------+--------------------------------------+
  | Property | Value                                |
  +----------+--------------------------------------+
  | created  | 2013-03-05T12:50:08Z                 |
  | id       | 9c219573-2aae-480d-a4f7-acaf469b241d |
  | minDisk  | 0                                    |
  | minRam   | 0                                    |
  | name     | Bug-test Fedora                      |
  | progress | 50                                   |
  | status   | SAVING                               |
  | updated  | 2013-03-05T12:50:08Z                 |
  +----------+--------------------------------------+
  ==========================================================================
  ==========================================================================
  Relevant excerpts from the glance log (api.log):

  2013-03-05 13:50:08 INFO glance.api.v1.images [bfc96989-0e40-44fb-8cc9-b01fbbf8a417 c3eb8511a68846978b121d6afa8356e7 973725e345204044a6078ef764f42d9d] Triggering asynchronous copy from external source
  ==========================================================================
  ==========================================================================
  Result after some more minutes:

  root@ineri:~# date
  Tue Mar  5 13:57:56 CET 2013
  root@ineri:~# nova image-show 9c219573-2aae-480d-a4f7-acaf469b241d
  +----------+--------------------------------------+
  | Property | Value                                |
  +----------+--------------------------------------+
  | created  | 2013-03-05T12:50:08Z                 |
  | id       | 9c219573-2aae-480d-a4f7-acaf469b241d |
  | minDisk  | 0                                    |
  | minRam   | 0                                    |
  | name     | Bug-test Fedora                      |
  | progress | 50                                   |
  | status   | SAVING                               |
  | updated  | 2013-03-05T12:50:08Z                 |
  +----------+--------------------------------------+
  ==========================================================================
  ==========================================================================
  The image is there (and it has the right size):

  root@ineri:~# rbd -p images list --long | grep 9c219573-2aae-480d-a4f7-acaf469b241d
  9c219573-2aae-480d-a4f7-acaf469b241d        215M          2   
  ==========================================================================

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