Ask Your Question

glance images folder permission denied

asked 2015-05-26 16:28:25 -0600

Scott Zhang gravatar image

updated 2015-05-27 07:28:47 -0600

Hello there,

I encountered a weird error while upgrading glance to kilo. Whenever I start up glance service, it encountered an error (in the log file) saying the follow: "

2015-05-26 20:43:40.261 4744 ERROR glance_store._drivers.filesystem [-] Permission to write in /var/lib/glance/images/ denied
2015-05-26 20:43:40.261 4744 TRACE glance_store._drivers.filesystem None
2015-05-26 20:43:40.261 4744 TRACE glance_store._drivers.filesystem 
2015-05-26 20:43:40.262 4744 WARNING glance_store.driver [-] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Permission to write in /var/lib/glance/images/ denied Disabling add method.

However, I do not know why this is happening because it seems like "glance-api" is run by "glance" and "/var/lib/glance/images/" is also owned by "glance". It appears to me that "glance" should have sufficient privilege of accessing (writing) to the target folder because :

drwxrwxr-x 2 glance glance 4096 May  5 22:36 images

glance    4754  4744  0 20:43 ?        00:00:00 /usr/bin/python2 /usr/bin/glance-api

I tried to use chmod to change images' access privilege but I failed by using either "root" or "glance".

Could anyone please give me some suggestions regarding how to get this issue resolved?


edit retag flag offensive close merge delete


If the images directory is mounted, check mount attributes (rw).

Also, would like to point to the selinux. Check by selinuxenabled and verify the exit code It exits with status 0 if SELinux is enabled and 1 if it is not enabled.

fgorbat gravatar imagefgorbat ( 2015-05-27 13:40:31 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2019-04-08 00:51:59 -0600

pekon gravatar image

filesystem_store_datadir = USER_PATH will only work with paths which have both user:group as 'glance' chown -R glance:glance USER_PATH

And then restart the glance services

service glance-api restart
service glance-registry restart
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-05-26 16:28:25 -0600

Seen: 1,615 times

Last updated: Apr 08 '19