RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/
Bug 1049457 - A qcow2 image is converted to raw when a volume is created from.
Summary: A qcow2 image is converted to raw when a volume is created from.
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: RDO
Classification: Community
Component: openstack-cinder
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: RHOS Maint
QA Contact: Dafna Ron
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-07 15:19 UTC by Eduardo Warszawski
Modified: 2016-04-27 00:13 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-02-10 19:09:07 UTC
Embargoed:


Attachments (Terms of Use)

Description Eduardo Warszawski 2014-01-07 15:19:19 UTC
Description of problem:
A qcow2 image is dumped as a raw volume when the voume is created.
The required size is increased and the time consumed by the downloading is very long.

Version-Release number of selected component (if applicable):


How reproducible:
cinder create --image-id 3d597ebb-ce76-4323-a71d-f45a3b08ca22 7

Steps to Reproduce:
1. Create a qcow2 image
2. Create a volume from it
3.

Actual results:
qemu-img convert is issued:

12889 ?        S      0:00 sudo cinder-rootwrap /etc/cinder/rootwrap.conf qemu-img convert -O raw /var/lib/cinder/conversion/tmp5wf91A /dev/mapper/cinder--volumes-volume--6d60b551--c3f4--415f--abb2--b9187231cd9f
12890 ?        S      0:00 /usr/bin/python /usr/bin/cinder-rootwrap /etc/cinder/rootwrap.conf qemu-img convert -O raw /var/lib/cinder/conversion/tmp5wf91A /dev/mapper/cinder--volumes-volume--6d60b551--c3f4--415f--abb2--b9187231cd9f
12894 ?        Sl     0:02 /usr/bin/qemu-img convert -O raw /var/lib/cinder/conversion/tmp5wf91A /dev/mapper/cinder--volumes-volume--6d60b551--c3f4--415f--abb2--b9187231cd9f

Expected results:
The image should be dumped as qcow2 on the volume?




# glance image-list
+--------------------------------------+---------+-------------+------------------+-----------+--------+
| ID                                   | Name    | Disk Format | Container Format | Size      | Status |
+--------------------------------------+---------+-------------+------------------+-----------+--------+
| 3d597ebb-ce76-4323-a71d-f45a3b08ca22 | rhel_65 | qcow2       | bare             | 307962880 | active |
+--------------------------------------+---------+-------------+------------------+-----------+--------+

Additional info:
+------------------+--------------------------------------+
| Property         | Value                                |
+------------------+--------------------------------------+
| checksum         | 89bc2c9690cb7bd46a9bbaffacf1f84f     |
| container_format | bare                                 |
| created_at       | 2014-01-07T14:17:52                  |
| deleted          | False                                |
| deleted_at       | None                                 |
| disk_format      | qcow2                                |
| id               | 3d597ebb-ce76-4323-a71d-f45a3b08ca22 |
| is_public        | False                                |
| min_disk         | 0                                    |
| min_ram          | 0                                    |
| name             | rhel_65                              |
| owner            | e8fe83985de4444c8240693aebb824c0     |
| protected        | False                                |
| size             | 307962880                            |
| status           | active                               |
| updated_at       | 2014-01-07T14:17:57                  |
+------------------+--------------------------------------+

Comment 1 Lars Kellogg-Stedman 2014-02-10 19:09:07 UTC
Feature requests should be filed with the upstream project (https://bugs.launchpad.net/cinder).

I suspect part of the reasoning here is that qcow2 images are in general Linux-specific, and there's no guarantee that a client is running Linux.  Raw images, on the other hand, are widely supported.


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