Bug 1034376 - fail to extend a cloned volume on permissions problems (GlusterFS)
Summary: fail to extend a cloned volume on permissions problems (GlusterFS)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-cinder
Version: 4.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 4.0
Assignee: Eric Harney
QA Contact: Haim
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-25 17:16 UTC by Dafna Ron
Modified: 2016-04-26 22:03 UTC (History)
6 users (show)

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.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:38:56 UTC
Target Upstream Version:


Attachments (Terms of Use)
logs (2.33 KB, application/x-gzip)
2013-11-25 17:16 UTC, Dafna Ron
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1254768 0 None None None Never
OpenStack gerrit 58393 0 None None None Never
Red Hat Bugzilla 1034376 0 unspecified CLOSED fail to extend a cloned volume on permissions problems (GlusterFS) 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Internal Links: 1034376 1045428

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


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