Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RDO tickets are now tracked in Jira https://issues.redhat.com/projects/RDO/issues/

Bug 1049457

Summary: A qcow2 image is converted to raw when a volume is created from.
Product: [Community] RDO Reporter: Eduardo Warszawski <ewarszaw>
Component: openstack-cinderAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact: Dafna Ron <dron>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: eharney, iheim, lars, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-10 19:09:07 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 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.