Bug 1034376

Summary: fail to extend a cloned volume on permissions problems (GlusterFS)
Product: Red Hat OpenStack Reporter: Dafna Ron <dron>
Component: openstack-cinderAssignee: Eric Harney <eharney>
Status: CLOSED ERRATA QA Contact: Haim <hateya>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.0CC: abaron, breeler, ddomingo, eharney, hateya, yeylon
Target Milestone: rc   
Target Release: 4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: storage
Fixed In Version: openstack-cinder-2013.2-4.el6ost Doc Type: Bug Fix
Doc Text:
When cloning volumes, the GlusterFS volume driver used by the Block Storage service did not set the correct permissions for volume files. This caused subsequent operations on these cloned volumes to fail. With this fix, the GlusterFS volume driver now sets the correct permissions when cloning a volume.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-20 00:38:56 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:
Attachments:
Description Flags
logs none

Description Dafna Ron 2013-11-25 17:16:50 UTC
Created attachment 828774 [details]
logs

Description of problem:

I tried to extend a cloned volume and failed on permissions issues.
working with glusterfs (so might be related to gluster)

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

openstack-cinder-2013.2-2.el6ost.noarch

How reproducible:

100%

Steps to Reproduce:
1. create a volume and clone a volume from it: 
cinder create <size> --display-name <name> 
cinder create <size> --source-volid <volume> --display-name <name>
2. extend the volume: 
cinder extend <volume> <size> 
3.

Actual results:

we fail to extend the volume with permissions error 

Expected results:

we should be able to extend the volume 

Additional info:

2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager Traceback (most recent call last):
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager   File "/usr/lib/python2.6/site-packages/cinder/volume/manager.py", line 875, in extend_volume
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager     self.driver.extend_volume(volume, new_size)
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager   File "/usr/lib/python2.6/site-packages/cinder/volume/drivers/glusterfs.py", line 927, in extend_volume
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager     image_utils.resize_image(volume_path, size_gb)
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager   File "/usr/lib/python2.6/site-packages/cinder/image/image_utils.py", line 204, in resize_image
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager     utils.execute(*cmd, run_as_root=False)
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager   File "/usr/lib/python2.6/site-packages/cinder/utils.py", line 142, in execute
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager     return processutils.execute(*cmd, **kwargs)
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager   File "/usr/lib/python2.6/site-packages/cinder/openstack/common/processutils.py", line 173, in execute
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager     cmd=' '.join(cmd))
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager ProcessExecutionError: Unexpected error while running command.
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager Command: qemu-img resize /var/lib/cinder/mnt/92ce777f40909398918e29a4128dfce0/volume-f49b4e6c-ae6d-41e4-8161-7dc8ffb2f4e1 6G
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager Exit code: 1
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager Stdout: ''
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager Stderr: "Could not open '/var/lib/cinder/mnt/92ce777f40909398918e29a4128dfce0/volume-f49b4e6c-ae6d-41e4-8161-7dc8ffb2f4e1': Permission denied\n"
2013-11-25 17:39:19.850 14458 TRACE cinder.volume.manager

Comment 1 Ayal Baron 2013-12-01 10:20:40 UTC
Eric, why is there a needinfo here?

Comment 2 Eric Harney 2013-12-02 15:19:10 UTC
Need qa_ack for this to go forward.

Comment 5 Dafna Ron 2013-12-12 12:34:36 UTC
verified on openstack-cinder-2013.2-8.el6ost.noarch

Comment 7 errata-xmlrpc 2013-12-20 00:38:56 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