glance-cache folder permission error

asked 2020-05-31 13:13:35 -0500

Taslim gravatar image

updated 2020-05-31 13:17:00 -0500

Hi everyone,

I am trying to configure glance-cache and I have set  **image_cache_dir: /var/lib/glance/image-cache**

glance api is running as pod in my controller node.When I am trying to re-deploy glance  service after configuring  image_cache_dir,glance api pod goes into error state

ERROR: [Errno 30] Read-only file system: '/var/lib/glance/image-cache'

Logs:

+ COMMAND=start
+ start
+ exec glance-api --config-file /etc/glance/glance-api.conf
2020-05-31 17:59:47.085 1 INFO glance.image_cache [-] Image cache loaded driver 'sqlite'.
2020-05-31 17:59:47.085 1 INFO glance.image_cache [-] Image cache loaded driver 'sqlite'.
ERROR: [Errno 30] Read-only file system: '/var/lib/glance/image-cache'

How can I fix this?

Thanks for your time.
edit retag flag offensive close merge delete

Comments

You could try changing permissions and/or ownership. User glance, group glance and write permissions.

Or perhaps you mounted the filesystem read-only.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-31 19:45:19 -0500 )edit