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 1049775

Summary: Volume (Thin LVM) creation from image (qcow2) never ends
Product: [Community] RDO Reporter: Eduardo Warszawski <ewarszaw>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED CURRENTRELEASE QA Contact: Dafna Ron <dron>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: eharney, iheim, 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-09-02 13:12:12 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-08 07:58:49 UTC
Description of problem:
Creating a volume (Thin LVM) from an image (qcow2) never ends.


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


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


Actual results:
After more than 17hs the volume is still in "downloading" unfinished state.

Expected results:
The volume should be successfully created.

Additional info:
|-cinder-volume(10145)---cinder-volume(10153)---sudo(12889)---cinder-rootwrap(12890)---qemu-img(12894)---{qemu-img}(12895)

10145 Tue Jan  7 15:00:02 2014    18:49:15 /usr/bin/python /usr/bin/cinder-volume --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/volume.log
10153 Tue Jan  7 15:00:03 2014    18:49:14 /usr/bin/python /usr/bin/cinder-volume --config-file /usr/share/cinder/cinder-dist.conf --config-file /etc/cinder/cinder.conf --logfile /var/log/cinder/volume.log
12889 Tue Jan  7 16:33:46 2014    17:15:31 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 Tue Jan  7 16:33:47 2014    17:15:30 /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 Tue Jan  7 16:33:47 2014    17:15:30 /usr/bin/qemu-img convert -O raw /var/lib/cinder/conversion/tmp5wf91A /dev/mapper/cinder--volumes-volume--6d60b551--c3f4--415f--abb2--b9187231cd9f


# cinder list
+--------------------------------------+-------------+--------------+------+-------------+----------+-------------+
|                  ID                  |    Status   | Display Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-------------+--------------+------+-------------+----------+-------------+
| 391e67f2-2fd6-4b2d-91ba-7d096803825d |  available  |     None     | 100  |     None    |  false   |             |
| 6d60b551-c3f4-415f-abb2-b9187231cd9f | downloading |     None     |  7   |     None    |  false   |             |
| 8349ff01-a5d7-417c-b8a5-aa50ac38eaa1 |  available  |     None     |  1   |     None    |  false   |             |
| 99c44711-26d4-4b24-851d-fdf5238a9b14 |  available  |     None     |  10  |     None    |  false   |             |
+--------------------------------------+-------------+--------------+------+-------------+----------+-------------+


Nothing is wrote to /var/log/cinder/volume.log.

# lvs cinder-volumes
  LV                                          VG             Attr       LSize   Pool                Origin Data%  Move Log Cpy%Sync Convert
  cinder-volumes-pool                         cinder-volumes twi-a-tz-- 172.00m                            100.00                          
  volume-391e67f2-2fd6-4b2d-91ba-7d096803825d cinder-volumes Vwi-aotz-- 100.00g cinder-volumes-pool          0.00                          
  volume-6d60b551-c3f4-415f-abb2-b9187231cd9f cinder-volumes Vwi-aotz--   7.00g cinder-volumes-pool          2.40                          
  volume-8349ff01-a5d7-417c-b8a5-aa50ac38eaa1 cinder-volumes Vwi-aotz--   1.00g cinder-volumes-pool          0.00                          
  volume-99c44711-26d4-4b24-851d-fdf5238a9b14 cinder-volumes Vwi-aotz--  10.00g cinder-volumes-pool          0.00

Comment 1 Eric Harney 2014-01-13 21:37:44 UTC
Looks like the ThinLVM pool is the wrong size (172.00m).

What python-cinder package version was this?

Comment 2 Eduardo Warszawski 2014-01-22 12:00:50 UTC
openstack-cinder-2014.1-0.2.b1.el6.noarch
python-cinderclient-1.0.7-1.el6.noarch
python-cinder-2014.1-0.2.b1.el6.noarch

Comment 4 Eric Harney 2014-09-02 13:12:12 UTC
Fixed in 2014.1 release.