Bug 1382545 - When configuring NFS backend in glance , /var/lib/glance/images/ is created as root
Summary: When configuring NFS backend in glance , /var/lib/glance/images/ is created ...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 8.0 (Liberty)
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Jiri Stransky
QA Contact: Arik Chernetsky
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-07 03:45 UTC by David Hill
Modified: 2017-04-25 09:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-07 04:12:09 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description David Hill 2016-10-07 03:45:17 UTC
Description of problem:
When configuring NFS backend in glance , /var/lib/glance/images/ is created as root.  This situation prevents glance (running as glance) from writing images to the NFS backend.

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


How reproducible:
Always

Steps to Reproduce:
1. Deploy an overcloud with NFS backend pointing to the undercloud (192.0.2.1) using storage-environment.yaml (https://github.com/david-hill/rhosp8/blob/8.0-nfs/storage-environment.yaml)
2. Try to upload an image to the overcloud once the deployment is completed.
3.

Actual results:
Fails

Expected results:
Succeeds

Additional info:
Perhaps we can specify a user in the parameters but it should be automatically configured for any users hitting this issue.

Comment 1 David Hill 2016-10-07 04:12:09 UTC
You can solve this by changing the permissions of your exports folders (ie /exports/glance) on your NFS server and then remounting the NFS shares on your client and it'll solve this issue.

Comment 2 Sid Ahmed Sadouni 2017-04-25 09:16:15 UTC
It was already the case in OSP7 (https://access.redhat.com/solutions/2380631), the documentaton says to change the ownership of the folder /varlib/glance/images, nothing changed in OSP10 ?
Can't we have the permission set correclty with the deployment ?


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