Bug 1382545

Summary: When configuring NFS backend in glance , /var/lib/glance/images/ is created as root
Product: Red Hat OpenStack Reporter: David Hill <dhill>
Component: openstack-tripleo-heat-templatesAssignee: Jiri Stransky <jstransk>
Status: CLOSED NOTABUG QA Contact: Arik Chernetsky <achernet>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.0 (Liberty)CC: dhill, mburns, rhel-osp-director-maint, sisadoun
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-07 04:12:09 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:

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 ?