Ask Your Question
0

[Glance] Error in store configuration. Adding images to store is disabled. [closed]

asked 2015-09-10 15:40:02 -0500

ruben gravatar image

hi!

When i try to add an image to Glance i constantly get this error:

<html>
 <head>
  <title>410 Gone</title>
 </head>
 <body>
  <h1>410 Gone</h1>
  Error in store configuration. Adding images to store is disabled.<br /><br />

 </body>
</html> (HTTP N/A)

After this error the Glance image list will stay empty and i don't know how to fix this issue. I am running CentOS and running Openstack Juno.

here is the storage part of the Glance_api.conf.

# List of which store classes and store class locations are
# currently known to glance at startup.
# Existing but disabled stores:
#      glance.store.rbd.Store,
#      glance.store.s3.Store,
#      glance.store.swift.Store,
#      glance.store.sheepdog.Store,
#      glance.store.cinder.Store,
#      glance.store.gridfs.Store,
#      glance.store.vmware_datastore.Store,
#stores=glance.store.filesystem.Store,glance.store.http.Store

# ============ Filesystem Store Options ========================

# Directory that the Filesystem backend store
# writes image data to
filesystem_store_datadir=/var/lib/glance/images/

# A list of directories where image data can be stored.
# This option may be specified multiple times for specifying multiple store
# directories. Either one of filesystem_store_datadirs or
# filesystem_store_datadir option is required. A priority number may be given
# after each directory entry, separated by a ":".
# When adding an image, the highest priority directory will be selected, unless
# there is not enough space available in cases where the image size is already
# known. If no priority is given, it is assumed to be zero and the directory
# will be considered for selection last. If multiple directories have the same
# priority, then the one with the most free space available is selected.
# If same store is specified multiple times then BadStoreConfiguration
# exception will be raised.
#filesystem_store_datadirs=/var/lib/glance/images/:1

# A path to a JSON file that contains metadata describing the storage
# system.  When show_multiple_locations is True the information in this
# file will be returned with any location that is contained in this
# store.
#filesystem_store_metadata_file=None

Here is the log that Glance spews out after the operation fails.

 2015-09-10 21:13:53.115 13776 ERROR glance_store._drivers.filesystem [-] Permission to write in /var/lib/glance/images/ denied
    2015-09-10 21:13:53.115 13776 TRACE glance_store._drivers.filesystem None
    2015-09-10 21:13:53.115 13776 TRACE glance_store._drivers.filesystem

it looks like a permission issue but i gave it all the permissions and even disabled selinux. I hope you guys can help me out.

Thanks!

With kind regards, Ruben

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by ruben
close date 2015-09-10 15:49:32.359395

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-09-10 15:52:48 -0500

updated 2015-09-10 15:53:02 -0500

Check owner for the directory,

sudo chown glance:glance /var/lib/glance/images/

Regards

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-09-10 15:40:02 -0500

Seen: 6,627 times

Last updated: Sep 10 '15