Bug 1040609 - ThinLVM fails to clone volumes
Summary: ThinLVM fails to clone volumes
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 4.0
Hardware: Unspecified
OS: Unspecified
urgent
high
Target Milestone: z2
: 4.0
Assignee: Eric Harney
QA Contact: Giulio Fidente
URL:
Whiteboard:
Depends On:
Blocks: 975606
TreeView+ depends on / blocked
 
Reported: 2013-12-11 17:02 UTC by Giulio Fidente
Modified: 2016-04-26 16:19 UTC (History)
5 users (show)

Fixed In Version: openstack-cinder-2013.2.1-8.el6ost
Doc Type: Bug Fix
Doc Text:
Prior to this update, Red Hat Enterprise Linux 6.5 thin LVM snapshots had to be activated manually. Consequently, the temporary snapshot required to clone an LVM volume to a new LVM volume would be inactive and result in a failed copy process. With this fix, the temporary snapshot is activated after creation during the ThinLVM volume clone process, and ThinLVM clone from volume operations now work as expected.
Clone Of:
Environment:
Last Closed: 2014-03-04 20:13:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1260786 0 None None None Never
OpenStack gerrit 62035 0 None None None Never
Red Hat Product Errata RHBA-2014:0213 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform 4 Bug Fix and Enhancement Advisory 2014-03-05 01:11:55 UTC

Description Giulio Fidente 2013-12-11 17:02:03 UTC
Description of problem:
Creation of volumes via --source-volid (clone) fails similarily to #1031766

2013-12-11 16:04:02.452 30390 ERROR cinder.volume.flows.create_volume [req-f00f1aa5-f9fc-49f1-8d8c-df97ea820774 a0ea14689ecd4137b4c5d4d4e8e51f61 c8f467e5fbb241c99a8b32d6938dd3ad] Volume 3a6b8d81-6a11-42d3-943b-ac1522d4d834: create failed
2013-12-11 16:04:02.452 30390 ERROR cinder.volume.flows.create_volume [req-f00f1aa5-f9fc-49f1-8d8c-df97ea820774 a0ea14689ecd4137b4c5d4d4e8e51f61 c8f467e5fbb241c99a8b32d6938dd3ad] Unexpected build error:
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume Traceback (most recent call last):
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/taskflow/patterns/linear_flow.py", line 172, in run_it
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     result = runner(context, *args, **kwargs)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/taskflow/utils.py", line 260, in __call__
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     self.result = self.task(*args, **kwargs)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1499, in __call__
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     **volume_spec)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/volume/flows/create_volume/__init__.py", line 1339, in _create_from_source_volume
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     model_update = self.driver.create_cloned_volume(volume_ref, srcvol_ref)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/lvm.py", line 321, in create_cloned_volume
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     execute=self._execute)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/volume/utils.py", line 196, in copy_volume
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     *extra_flags, run_as_root=True)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 143, in execute
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     return processutils.execute(*cmd, **kwargs)
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume   File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume     cmd=' '.join(cmd))
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume ProcessExecutionError: Unexpected error while running command.
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume Command: sudo cinder-rootwrap /etc/cinder/rootwrap.conf dd if=/dev/mapper/cinder--volumes-clone--snap--3a6b8d81--6a11--42d3--943b--ac1522d4d834 of=/dev/mapper/cinder--volumes-volume--3a6b8d81--6a11--42d3--943b--ac1522d4d834 count=1024 bs=1M
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume Exit code: 1
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume Stdout: ''
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume Stderr: "/bin/dd: opening `/dev/mapper/cinder--volumes-clone--snap--3a6b8d81--6a11--42d3--943b--ac1522d4d834': No such file or directory\n"
2013-12-11 16:04:02.452 30390 TRACE cinder.volume.flows.create_volume 


Version-Release number of selected component (if applicable):
openstack-cinder-2013.2-8.el6ost.noarch

Comment 1 Eric Harney 2013-12-11 17:06:18 UTC
Need to add a self.vg.activate_lv() call around here: http://git.openstack.org/cgit/openstack/cinder/tree/cinder/volume/drivers/lvm.py?id=1e14e6a#n306

Related to bug 1031766

Comment 3 Giulio Fidente 2014-02-20 10:56:07 UTC
verified using openstack-cinder-2013.2.2-1.el6ost.noarch

Comment 5 errata-xmlrpc 2014-03-04 20:13:37 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/RHBA-2014-0213.html


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