Ask Your Question

Impossible to configure glance images in one NFS mount share - SOLVED [closed]

asked 2015-09-03 09:17:08 -0500

Gonzo gravatar image

updated 2015-09-08 06:11:57 -0500


I am trying to configure /var/lib/glance/images/ in one NFS share. I have configured /etc/glance/glance-api.conf with filesystem_store_datadir = /var/lib/glance/images/ and I have mounted the NFS share in the glance server in /var/lib/glance/images/ with ALL permissions and I always get one:

2015-09-03 11:20:33.899 3787 INFO glance_store._drivers.filesystem [-] Directory to write image files does not exist (/var/lib/glance/images/). Creating.
2015-09-03 11:20:33.901 3787 ERROR glance_store._drivers.filesystem [-] Unable to create datadir: /var/lib/glance/images/
2015-09-03 11:20:33.904 3787 WARNING glance_store.driver [-] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Unable to create datadir: /var/lib/glance/images/ Disabling add method.

Please believe me when I say that I have set all permissions to everybody:

# ll /var/lib/glance/
 total 0
 drwxrwxrwx. 2 glance glance 49 sep  3 15:25 images

# ll /var/lib/ | grep glance
drwxrwxrwx. 3 glance   glance     39 sep  3 09:59 glance

In fact I have configured glance system user to login with him and if I become glance user with "su glance -" I can write there without problems. If /var/lib/glance/images/ resides in the local filesystem it works, but if I change /var/lib/glance/images/ no matter to nfs or cifs (I have tried with cifs too), I always get the error that it is unable to find and create /var/lib/glance/images/ when it really exist and it is there with permissions to write to everybody.

Somebody have suffered this before? I really can not find why is happening this.

I have ensured that /var/lib/glance/images/ NFS is mounted on boot before starting glance modifying the glance related systemd units:


...with one "RequiresMountsFor=/var/lib/glance/images" but it does not work.

Any help will be really appreciated...

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Gonzo
close date 2016-02-10 03:37:13.719851

1 answer

Sort by ยป oldest newest most voted

answered 2015-09-08 06:10:06 -0500

Gonzo gravatar image

Well I think I have resolved it seting selinux to permisive. Now I can mount glance in one nfs share

edit flag offensive delete link more


Please, mark the question as solved clicking in the check bottom on the answer.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2015-09-08 06:18:02 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-09-03 09:17:08 -0500

Seen: 1,025 times

Last updated: Sep 08 '15