[Openstack-operators] OpenStack mitaka using swift as backend for glance

Sam Morrison sorrison at gmail.com
Sun Jul 17 23:41:41 UTC 2016


Hi Michael,

This would indicate that glance can’t find the swift endpoint in the keystone catalog.

You can either add it to the catalog or specify the swift url in the config.

Cheers,
Sam


> On 15 Jul 2016, at 9:07 PM, Michael Stang <michael.stang at dhbw-mannheim.de> wrote:
> 
> 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 <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
> 
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org <mailto:OpenStack-operators at lists.openstack.org>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators <http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160718/4b41194d/attachment.html>


More information about the OpenStack-operators mailing list