ERROR glance.store.filesystem [-] Unable to create datadir: /var/lib/glance/images/

Solution Verified - Updated -

Issue

  • I am unable to create Glance images in the OpenStack STAGE environment. Glance backend is configured as follows:
cat /etc/glance/glance-api.conf:
...
filesystem_store_datadir=/var/lib/glance/images/
...
  • When there is a local file system mounted under "/var/lib/glance/images/" directory, then there are no problems with creating Glance images. However, when there is a remote NFS share mounted under "/var/lib/glance/images/" directory, then all created Glance images end in the "Killed" status and there is the following messaged displayed in the "/var/log/glance/registry.log" file:
2015-08-10 06:38:21.174 116916 ERROR glance.store.filesystem [-] Unable to create datadir: /var/lib/glance/images/
2015-08-10 06:38:21.175 116916 WARNING glance.store.base [-] Failed to configure store correctly: Store filesystem could not be configured correctly. Reason: Unable to create datadir: /var/lib/glance/images/ Disabling add method.
2015-08-10 06:38:21.245 116916 ERROR glance.api.v1.upload_utils [-] Failed to upload image 124dc546-dc04-483c-ab9a-d55d279e409d
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.7/site-packages/glance/api/v1/upload__utils.py", line 105, in upload_data_to_store
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils     store)
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.7/site-packages/glance/store/__init__.py", line 383, in store_add_to_backend
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.7/site-packages/glance/store/base.py", line 123, in add_disabled
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils     raise exception.StoreAddDisabled
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils StoreAddDisabled: Configuration for store failed. Adding images to this store is disabled.
2015-08-10 06:38:21.245 116916 TRACE glance.api.v1.upload_utils

Environment

  • Red Hat Open Stack

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content