Ask Your Question
1

glance can't change filesystem_store_datadir

asked 2014-08-25 13:56:10 -0500

gherasima gravatar image

Hi all

When I try to change the "filesystem_store_datadir" in the glance-api.conf file I receive : " 2014-08-25 16:23:48.107 30791 INFO oslo.messaging._drivers.impl_rabbit [41d73e7e-1dca-4133-b770-df1eeb1733e6 e31dcb363a834f3d802f99f5761186bc c1e4c67457f348cca12a98f516868e83 - - -] Connected to AMQP server on 192.168.0.69:5672 2014-08-25 16:23:48.137 30791 ERROR glance.store.filesystem [41d73e7e-1dca-4133-b770-df1eeb1733e6 e31dcb363a834f3d802f99f5761186bc c1e4c67457f348cca12a98f516868e83 - - -] Permission to write in /sata/glance/images2/ denied 2014-08-25 16:23:48.137 30791 TRACE glance.store.filesystem Traceback (most recent call last): 2014-08-25 16:23:48.137 30791 TRACE glance.store.filesystem File "/usr/lib/python2.7/site-packages/routes/middleware.py", line 52, in __call__ 2014-08-25 16:23:48.137 30791 TRACE glance.store.filesystem qs = environ['QUERY_STRING'] 2014-08-25 16:23:48.137 30791 TRACE glance.store.filesystem KeyError: 'QUERY_STRING' 2014-08-25 16:23:48.137 30791 TRACE glance.store.filesystem 2014-08-25 16:23:48.137 30791 WARNING glance.store.base [41d73e7e-1dca-4133-b770-df1eeb1733e6 e31dcb363a834f3d802f99f5761186bc c1e4c67457f348cca12a98f516868e83 - - -] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Permission to write in /sata/glance/images2/ denied Disabling add method. " It's only working if I move the folder "images" to the new location and not by creating a new folder. The permissions of the folder are "glance:glance 755"

Thanks in advance

Adrian

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-04-08 00:47:14 -0500

pekon gravatar image

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

LINUX> chown -R glance:glance USER_PATH

And then restart the glance services

LINUX> service glance-api restart

LINUX> service glance-registry restart

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-08-25 13:56:10 -0500

Seen: 262 times

Last updated: Aug 25 '14