[Openstack] glance images folder permission denied

Su Zhang westlifezs at gmail.com
Tue May 26 21:49:35 UTC 2015


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?

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20150526/11b66b52/attachment.html>


More information about the Openstack mailing list