Bug 968805 - [Backport] Creating a Cinder volume from an image ID fails to copy the image to the volume
Summary: [Backport] Creating a Cinder volume from an image ID fails to copy the image...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 3.0
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: beta
: 4.0
Assignee: Pete Zaitcev
QA Contact: Yogev Rabl
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-30 02:47 UTC by Kashyap Chamarthy
Modified: 2019-02-17 04:16 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:03:50 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 30967 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

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


Note You need to log in before you can comment on or make changes to this bug.