Bug 995766

Summary: ThinLVM: Clone from snapshot fails, incorrect args passed to _create_volume()
Product: Red Hat OpenStack Reporter: Eric Harney <eharney>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Giulio Fidente <gfidente>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.0CC: eharney, hateya, mlopes, sradvan, yeylon
Target Milestone: Upstream M3   
Target Release: 4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-cinder-2013.2-0.9.b3.el6ost Doc Type: Bug Fix
Doc Text:
Cause: Bug in Cinder (Thin) LVM volume driver Consequence: Clone from snapshot operation fails Fix: Patch Cinder (Thin) LVM volume driver to call method with correct arguments Result: Clone from snapshot now works for ThinLVM volumes
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:18:54 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:
Bug Depends On:    
Bug Blocks: 975606, 975916    

Description Eric Harney 2013-08-10 22:59:34 UTC
$ cinder create --snapshot-id 0679dfdf-f95c-4af7-931e-b1ac1eb2c66d 1

results in

TRACE cinder.volume.flows.create_volume Traceback (most recent call last):
TRACE cinder.volume.flows.create_volume File "/opt/stack/cinder/cinder/taskflow/patterns/linear_flow.py", line 172, in run_it
TRACE cinder.volume.flows.create_volume result = runner(context, *args, **kwargs)
TRACE cinder.volume.flows.create_volume File "/opt/stack/cinder/cinder/taskflow/utils.py", line 260, in __call__
TRACE cinder.volume.flows.create_volume self.result = self.task(*args, **kwargs)
TRACE cinder.volume.flows.create_volume File "/opt/stack/cinder/cinder/volume/flows/create_volume.py", line 1383, in __call__
TRACE cinder.volume.flows.create_volume **volume_spec)
TRACE cinder.volume.flows.create_volume File "/opt/stack/cinder/cinder/volume/flows/create_volume.py", line 1159, in _create_from_snapshot
TRACE cinder.volume.flows.create_volume snapshot_ref)
TRACE cinder.volume.flows.create_volume File "/opt/stack/cinder/cinder/volume/drivers/lvm.py", line 140, in create_volume_from_snapshot
TRACE cinder.volume.flows.create_volume self._create_volume(volume['name'], self._sizestr(volume['size']))
TRACE cinder.volume.flows.create_volume TypeError: _create_volume() takes exactly 2 arguments (3 given)
TRACE cinder.volume.flows.create_volume

Comment 6 Giulio Fidente 2013-12-03 16:18:33 UTC
the incorrect args issue was verified using:
openstack-cinder-2013.2-3.el6ost.noarch

Comment 9 errata-xmlrpc 2013-12-20 00:18:54 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