Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 968805

Summary: [Backport] Creating a Cinder volume from an image ID fails to copy the image to the volume
Product: Red Hat OpenStack Reporter: Kashyap Chamarthy <kchamart>
Component: openstack-cinderAssignee: Pete Zaitcev <zaitcev>
Status: CLOSED ERRATA QA Contact: Yogev Rabl <yrabl>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.0CC: abaron, dcadzow, eharney, jkt, mlopes, zaitcev
Target Milestone: betaKeywords: FeatureBackport, TestOnly
Target Release: 4.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-cinder-2013.1.2-3.el6ost Doc Type: Bug Fix
Doc Text:
Due to a bug in Block Storage copy-image-to-volume error handling, copy process failures resulted in LVM operations reporting as failed. The LVM operations were consequently re-attempted, even though this action was not required. This update corrects the Block Storage error handling for copy-image-to-volume, and users are now able to identify the source of any errors in the process.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:03:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kashyap Chamarthy 2013-05-30 02:47:57 UTC
When creating a cinder volume from an image ID, it fails to copy the image to the volume.

Upstream bug -- https://bugs.launchpad.net/bugs/1183283
   - Also contains test instructions.

stable/grizzly fix -- https://review.openstack.org/#/c/30967/

Comment 5 Yogev Rabl 2013-10-06 12:54:53 UTC
Actions:
1. Created an image. 
2. Created a new volume with the image ID.
3. The volume is available and is attached to an instance.

# glance image-list
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| ID                                   | Name   | Disk Format | Container Format | Size      | Status |
+--------------------------------------+--------+-------------+------------------+-----------+--------+
| 3c31183a-d552-4445-9ba5-3a2685c08fd0 | Fedora | iso         | bare             | 997195776 | active |
+--------------------------------------+--------+-------------+------------------+-----------+--------+

# cinder create --image-id 3c31183a-d552-4445-9ba5-3a2685c08fd0 --display-name russia 5
+---------------------+--------------------------------------+
|       Property      |                Value                 |
+---------------------+--------------------------------------+
|     attachments     |                  []                  |
|  availability_zone  |                 nova                 |
|       bootable      |                False                 |
|      created_at     |      2013-10-06T12:40:53.645309      |
| display_description |                 None                 |
|     display_name    |                russia                |
|          id         | f081b30d-dc62-4e6e-b1c2-fa5ced4dae84 |
|       image_id      | 3c31183a-d552-4445-9ba5-3a2685c08fd0 |
|       metadata      |                  {}                  |
|         size        |                  5                   |
|     snapshot_id     |                 None                 |
|     source_volid    |                 None                 |
|        status       |               creating               |
|     volume_type     |                 None                 |
+---------------------+--------------------------------------+

# cinder list
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
|                  ID                  |   Status  | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+
| f081b30d-dc62-4e6e-b1c2-fa5ced4dae84 | available |    russia    |  5   |     None    |   True   |             |
+--------------------------------------+-----------+--------------+------+-------------+----------+-------------+

Comment 7 Pete Zaitcev 2013-12-17 20:22:20 UTC
Eric's doc text looks perfect.

Comment 9 errata-xmlrpc 2013-12-20 00:03:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2013-1859.html