<!DOCTYPE html>
<html><head>
    <meta charset="UTF-8">
<style type="text/css">.mceResizeHandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}.mceResizeHandle:hover {background: #000}img[data-mce-selected] {outline: 1px solid black}img.mceClonedResizable, table.mceClonedResizable {position: absolute;outline: 1px dashed black;opacity: .5;z-index: 10000}
</style></head><body style=""><div>Hi Sam,</div>
<div> </div>
<div>thank you for your answer.</div>
<div> </div>
<div>I had a look, the swift store endpoint ist listet 3 times  in the keystone, publicurl admin and internal endpoint. To try, I also set it in the glance-api.conf:</div>
<div> </div>
<div>swift_store_endpoint = http://controller:8080/v1/</div>
<div> </div>
<div>I also tried</div>
<div> </div>
<div>swift_store_endpoint = http://controller:8080/v1/AUTH_%(tenant_id)s</div>
<div> </div>
<div>but both gave me the same result as bevor. Is this the right endpoint url for swift? In which config file and with what option do I have to enter it in the glance configuration?</div>
<div> </div>
<div> </div>
<div>Thank you and kind regards,</div>
<div>Michael</div>
<div> </div>
<div> </div>
<blockquote type="cite" style="position: relative; margin-left: 0px; padding-left: 10px; border-left: solid 1px blue;">Sam Morrison <sorrison@gmail.com> hat am 18. Juli 2016 um 01:41 geschrieben:<br><br>Hi Michael,
<div> </div>
<div>This would indicate that glance can’t find the swift endpoint in the keystone catalog.</div>
<div> </div>
<div>You can either add it to the catalog or specify the swift url in the config.</div>
<div> </div>
<div>Cheers,</div>
<div>Sam</div>
<div> </div>
<div><br>
<div>
<div>
<blockquote type="cite">
<div>On 15 Jul 2016, at 9:07 PM, Michael Stang <<a href="mailto:michael.stang@dhbw-mannheim.de">michael.stang@dhbw-mannheim.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Hi everyone,</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> </div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">I tried to setup swift as backend for glance in our new mitaka installation. I used this in the glance-api.conf</div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> </div>
<div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<p>[glance_store]<br>stores = swift<br>default_store = swift<br>swift_store_create_container_on_put = True<br>swift_store_region = RegionOne<br><span style="font-size: 9pt;">default_swift_reference = ref1<br></span>swift_store_config_file = /etc/glance/glance-swift-store.conf</p>
<div> </div>
<p>and in the glance-swift-store.conf this</p>
<p>[ref1]<br>auth_version = 3<br>project_domain_id = default<br>user_domain_id = default<br>auth_address =<span class="Apple-converted-space"> </span><a href="http://controller:35357/">http://controller:35357</a><br>user = services:swift<br>key = xxxxx</p>
<p>When I trie now to upload an image it gets the status "killed" and this is in the glance-api.log</p>
<p>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils [req-0ec16fa5-a605-47f3-99e9-9ab231116f04 de9463239010412d948df4020e9be277 669e037b13874b6c871<br>2b1fd10c219f0 - - -] Failed to upload image 6de45d08-b420-477b-a665-791faa232379<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils Traceback (most recent call last):<br>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<br>ata_to_store<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils context=req.context)<br>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<br>ackend<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils verifier=verifier)<br>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<br>r<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils return store_op_fun(store, *args, **kwargs)<br>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<br>dd<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils allow_reauth=need_chunks) as manager:<br>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<br>get_manager_for_store<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils store, store_location, context, allow_reauth)<br>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<br>ine 64, in __init__<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils self.storage_url = self._get_storage_url()<br>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<br>ine 160, in _get_storage_url<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils raise exceptions.BackendException(msg)<br>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<br>404)<br>2016-07-15 12:21:44.379 14230 ERROR glance.api.v1.upload_utils</p>
<div> </div>
<p>anyone an idea what i'm missing in the config file oder what might be the problem?</p>
<p><span style="font-size: 9pt;">Thanks and kind regards,<br>Michael</span></p>
</div>
<span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; float: none; display: inline;">_______________________________________________</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; float: none; display: inline;">OpenStack-operators mailing list</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-weight: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br> </div></body></html>