Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cinder as glance default_store

/etc/glance/glance-api.conf allows you to set cinder as a default_store:

default_store = cinder
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

However when trying to upload an image with glance I now get the following error:

Request returned failure status.
500 Internal Server Error
Failed to upload image c25696d8-1379-4a71-80ff-ccb8666eee83
    (HTTP 500)

Changing the default_store back to files makes this work again.

/var/log/glance/api.log shows:

2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     store)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 142, in add
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     raise NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils

Any idea what exactly is wrong? As far as I can see everything else in my config is correct and I'd like my Swift images to be backed by the same storage Cinder uses and using the cinder default_store seems ideal.

cinder as glance default_store

/etc/glance/glance-api.conf allows you to set cinder as a default_store:

default_store = cinder
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

However when trying to upload an image with glance I now get the following error:

Request returned failure status.
500 Internal Server Error
Failed to upload image c25696d8-1379-4a71-80ff-ccb8666eee83
    (HTTP 500)

Changing the default_store back to files makes this work again.

/var/log/glance/api.log shows:

2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     store)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 142, in add
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     raise NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils

Any idea what exactly is wrong? As far as I can see everything else in my config is correct and I'd like my Swift images to be backed by the same storage Cinder uses and using the cinder default_store seems ideal.

How to use cinder as glance default_store

/etc/glance/glance-api.conf allows you to set cinder as a default_store:

default_store = cinder
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

However when trying to upload an image with glance I now get the following error:

Request returned failure status.
500 Internal Server Error
Failed to upload image c25696d8-1379-4a71-80ff-ccb8666eee83
    (HTTP 500)

Changing the default_store back to files makes this work again.

/var/log/glance/api.log shows:

2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     store)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 142, in add
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     raise NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils

Any idea what exactly is wrong? As far as I can see everything else in my config is correct and I'd like my Swift images to be backed by the same storage Cinder uses and using the cinder default_store seems ideal.

How to use cinder as glance default_store

/etc/glance/glance-api.conf allows you to set cinder as a default_store:

default_store = cinder
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

However when trying to upload an image with glance I now get the following error:

Request returned failure status.
500 Internal Server Error
Failed to upload image c25696d8-1379-4a71-80ff-ccb8666eee83
    (HTTP 500)

Changing the default_store back to files makes this work again.

/var/log/glance/api.log shows:

2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     store)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 142, in add
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     raise NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils

Any idea what exactly is wrong? As far as I can see everything else in my config is correct and I'd like my Swift images to be backed by the same storage Cinder uses and using the cinder default_store seems ideal.

Cinder directives from /etc/glance/glance-api.conf:

# grep -i cinder /etc/glance/glance-api.conf 
default_store = cinder
               glance.store.cinder.Store,
# ============ Cinder Store Options ===============================
# Info to match when looking for cinder in the service catalog
x#cinder_catalog_info = volume:cinder:internalurl
# Override service catalog lookup with template for cinder endpoint
cinder_endpoint_template = http://192.168.2.16:8776/v1/%(tenant_id)s
# Location of ca certicates file to use for cinder client requests
#cinder_ca_certificates_file = <None>
# Number of cinderclient retries on failed http calls (integer value)
cinder_http_retries = 3
# Allow to perform insecure SSL requests to cinder (boolean value)
cinder_api_insecure = True

How to use cinder as glance default_store

/etc/glance/glance-api.conf allows you to set cinder as a default_store:

default_store = cinder
known_stores = glance.store.filesystem.Store,
               glance.store.http.Store,
               glance.store.rbd.Store,
               glance.store.s3.Store,
               glance.store.swift.Store,
               glance.store.sheepdog.Store,
               glance.store.cinder.Store,

However when trying to upload an image with glance I now get the following error:

Request returned failure status.
500 Internal Server Error
Failed to upload image c25696d8-1379-4a71-80ff-ccb8666eee83
    (HTTP 500)

Changing the default_store back to files makes this work again.

/var/log/glance/api.log shows:

2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils Traceback (most recent call last):
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/api/v1/upload_utils.py", line 101, in upload_data_to_store
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     store)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/__init__.py", line 333, in store_add_to_backend
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     (location, size, checksum, metadata) = store.add(image_id, data, size)
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils   File "/usr/lib/python2.6/site-packages/glance/store/base.py", line 142, in add
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils     raise NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils NotImplementedError
2013-11-20 12:18:05.235 11918 TRACE glance.api.v1.upload_utils

Any idea what exactly is wrong? As far as I can see everything else in my config is correct and I'd like my Swift images to be backed by the same storage Cinder uses and using the cinder default_store seems ideal.

Cinder directives from /etc/glance/glance-api.conf:

# grep -i cinder /etc/glance/glance-api.conf 
default_store = cinder
               glance.store.cinder.Store,
# ============ Cinder Store Options ===============================
# Info to match when looking for cinder in the service catalog
x#cinder_catalog_info cinder_catalog_info = volume:cinder:internalurl
# Override service catalog lookup with template for cinder endpoint
cinder_endpoint_template = http://192.168.2.16:8776/v1/%(tenant_id)s
# Location of ca certicates file to use for cinder client requests
#cinder_ca_certificates_file = <None>
# Number of cinderclient retries on failed http calls (integer value)
cinder_http_retries = 3
# Allow to perform insecure SSL requests to cinder (boolean value)
cinder_api_insecure = True