[Openstack-operators] OpenStack mitaka using swift as backend for glance
Michael Stang
michael.stang at dhbw-mannheim.de
Fri Jul 15 11:07:22 UTC 2016
Hi everyone,
I tried to setup swift as backend for glance in our new mitaka installation. I
used this in the glance-api.conf
[glance_store]
stores = swift
default_store = swift
swift_store_create_container_on_put = True
swift_store_region = RegionOne
default_swift_reference = ref1
swift_store_config_file = /etc/glance/glance-swift-store.conf
and in the glance-swift-store.conf this
[ref1]
auth_version = 3
project_domain_id = default
user_domain_id = default
auth_address = http://controller:35357
user = services:swift
key = xxxxx
When I trie now to upload an image it gets the status "killed" and this is in
the glance-api.log
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils
[req-0ec16fa5-a605-47f3-99e9-9ab231116f04 de9463239010412d948df4020e9be277
669e037b13874b6c871
2b1fd10c219f0 - - -] Failed to upload image 6de45d08-b420-477b-a665-791faa232379
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils Traceback (most
recent call last):
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance/api/v1/upload_utils.py", line 110, in
upload_d
ata_to_store
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils
context=req.context)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/backend.py", line 344, in
store_add_to_b
ackend
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils
verifier=verifier)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/capabilities.py", line 226, in
op_checke
r
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils return
store_op_fun(store, *args, **kwargs)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line
532, in a
dd
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils
allow_reauth=need_chunks) as manager:
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/store.py", line
1170, in
get_manager_for_store
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils store,
store_location, context, allow_reauth)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/connection_manager.py",
l
ine 64, in __init__
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils self.storage_url
= self._get_storage_url()
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils File
"/usr/lib/python2.7/dist-packages/glance_store/_drivers/swift/connection_manager.py",
l
ine 160, in _get_storage_url
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils raise
exceptions.BackendException(msg)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils BackendException:
Cannot find swift service endpoint : The resource could not be found. (HTTP
404)
2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils
anyone an idea what i'm missing in the config file oder what might be the
problem?
Thanks and kind regards,
Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160715/96956325/attachment.html>
More information about the OpenStack-operators
mailing list