Wrong permissions for /var/lib/glance/images/ when backend is NFS

Bug #1443994 reported by Alexandre Maumené
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
puppet-openstack-cloud
Fix Released
High
Dimitri Savineau

Bug Description

Hi,

I'm using a NFS backend for cinder and I'm not able to upload images because the permissions are wrong:

cd /var/lib/glance/images/

sudo -u glance touch toto
touch: cannot touch ‘toto’: Permission denied

ls -lah
total 8.0K
drwxr-xr-x. 2 nobody nobody 4.0K Apr 14 14:30 .
drwxr-xr-x. 4 glance nobody 4.0K Apr 13 03:00

Should be glance:glance for /var/lib/glance/images/ instead of nobody:nobody.

Regards,

Changed in puppet-openstack-cloud:
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to puppet-openstack-cloud (master)

Fix proposed to branch: master
Review: https://review.openstack.org/173477

Changed in puppet-openstack-cloud:
assignee: nobody → Dimitri Savineau (dsavineau)
status: New → In Progress
Revision history for this message
Emilien Macchi (emilienm) wrote :

FYI, it also affect nova when using NFS.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to puppet-openstack-cloud (master)

Reviewed: https://review.openstack.org/173477
Committed: https://git.openstack.org/cgit/stackforge/puppet-openstack-cloud/commit/?id=3ab3b139fd85f5f13d9481c6f0d450ef771c49f7
Submitter: Jenkins
Branch: master

commit 3ab3b139fd85f5f13d9481c6f0d450ef771c49f7
Author: Dimitri Savineau <email address hidden>
Date: Tue Apr 14 15:25:49 2015 -0400

    nfs: Ensure nova/glance permissions on nfs mount

    Ensure filesystem_store_datadir is a directory with nova or glance permissions
    before creating the nfs mount.

    Change-Id: I06a0d95af3829cd803b0af0ebc52fd17b18ff2b3
    Closes-Bug: #1443994

Changed in puppet-openstack-cloud:
status: In Progress → Fix Committed
Changed in puppet-openstack-cloud:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.