<div dir="ltr">Hi Michael, <div><br></div><div>Adjusting some config options solved the problem. Thank you, I really appreciated it. </div><div><br></div><div>What roles do the users have? The ones you are trying to delete the images from glance? </div><div><br></div><div>Regards, </div><div><br></div><div>Lucas.-</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-20 3:01 GMT-03:00 Michael Stang <span dir="ltr"><<a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

    
<div><div>Hi Lucas,</div>
<div> </div>
<div>yes I used thisID from the command for both, also have the proxy at 8080 on the controller. Here is my final configuration I made maybe this helps you?</div>
<div> </div>
<div>In the glance-api.conf:</div>
<div> </div>
<div>
<pre>[glance_store]
stores = file,http,swift
default_store = swift
filesystem_store_datadir = /var/lib/glance/images/
swift_store_create_container_on_put = True
swift_store_container = glance
swift_store_large_object_size = 20480
swift_store_large_object_chunk_size = 200
swift_enable_snet = False
default_swift_reference = ref1
swift_store_config_file = /etc/glance/glance-swift-store.conf
</pre>
</div>
<div> </div>
<div>and in the glance-swift-store.conf:</div>
<div> </div>
<div>
<pre>[ref1]
user_domain_id = <DOMAIN_ID>
project_domain_id = <DOMAIN_ID>
auth_version = 3
auth_address = <a href="http://controller:5000/v3" target="_blank">http://controller:5000/v3</a>
user = service:glance
key = <GLANCE_PASS><br><br><br></pre>
</div>
<blockquote type="cite" style="margin-left:0px;padding-left:10px;border-left:solid 1px blue"></blockquote>
<p>Kind regards,</p>
<p>Michael</p>
<p> </p>
<p> </p>
<blockquote type="cite" style="margin-left:0px;padding-left:10px;border-left:solid 1px blue">Lucas Di Paola <<a href="mailto:ldipaola.despegar@gmail.com" target="_blank">ldipaola.despegar@gmail.com</a>> hat am 19. Juli 2016 um 22:49 geschrieben:
<div><div class="h5"><div dir="ltr">Hi Michael, 
<div> </div>
<div>I am having exactly the same issue, getting the error that you mentioned in your first email. I tried replacing <em>project_domain_id´s</em> and <em>user_domain´s</em> value using the <em><DOMAIN_ID></em>, but I had no luck, still getting the same error. </div>
<div>Did you add the ID obtained from running the following openstack command? "<em>openstack domain list</em>". In that case, for both parameters, did you use the same ID? </div>
<div> </div>
<div>
<div>+----------------------------------+---------+---------+----------------+</div>
<div>| ID                               | Name    | Enabled | Description    |</div>
<div>+----------------------------------+---------+---------+----------------+</div>
<div>| <strong><ID></strong> | default | True    | Default Domain |</div>
<div>+----------------------------------+---------+---------+----------------+</div>
</div>
<div> </div>
<div>Regarding your issue, do you have the Proxy Server listenting on the 8080 port on the controller node?</div>
<div> </div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2016-07-19 11:21 GMT-03:00 Michael Stang <span><<a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a>></span>:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span style="text-decoration:underline"></span>
<div>
<div>Hi Sam, Hi all,</div>
<div> </div>
<div>fixed the problem.  I had used</div>
<div> </div>
<div>project_domain_id = default</div>
<div><span style="font-size:9pt">user_domain_id = default</span></div>
<div> </div>
<div><span style="font-size:9pt">instead I had to use</span></div>
<div> </div>
<div>
<div>project_domain_id = <DOMIAN_ID></div>
<div><span>user_domain_id = <DOMIAN_ID></span></div>
<div> </div>
<div><span>to make it work. Now I can store images over glance in swift, the only problem I now have is that every user can upload images but only "glance" can delete the images, when I try this with another user in the project then in the glance-api.log I get</span></div>
<div> </div>
<div><span> ClientException: Object HEAD failed: <a href="http://controller:8080/v1/glance/" target="_blank">http://controller:8080/v1/glance/</a><Image_ID>  403 Forbidden</span></div>
<div> </div>
<div> </div>
<div><span>don't know if something is still wrong or ift this might be a bug?</span></div>
<div> </div>
<div> </div>
<div><span>Kind regards,</span></div>
<div><span>Michael</span></div>
<div> </div>
</div>
<div> </div>
<div> </div>
<div> </div>
<blockquote type="cite" style="margin-left:0px;padding-left:10px;border-left:solid 1px blue">Michael Stang <<a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a>> hat am 18. Juli 2016 um 08:44 geschrieben:
<div>
<div><br><br>
<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 = <a href="http://controller:8080/v1/" target="_blank">http://controller:8080/v1/</a></div>
<div> </div>
<div>I also tried</div>
<div> </div>
<div>swift_store_endpoint = <a href="http://controller:8080/v1/AUTH_%(tenant_id)s" target="_blank">http://controller:8080/v1/AUTH_%(tenant_id)s</a></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="margin-left:0px;padding-left:10px;border-left:solid 1px blue">Sam Morrison <<a href="mailto:sorrison@gmail.com" target="_blank">sorrison@gmail.com</a>> 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" target="_blank">michael.stang@dhbw-mannheim.de</a>> wrote:</div>
<br>
<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> </span><a href="http://controller:35357/" target="_blank">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" target="_blank">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" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br> </div>
</div>
</div>
</blockquote>
<div>
<div>
<div><br> </div>
<blockquote type="cite" style="margin-left:0px;padding-left:10px;border-left:solid 1px blue">_______________________________________________<br>OpenStack-operators mailing list<br><a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a></blockquote>
<div><br> </div>
</div>
</div>
Viele Grüße<br><br>Michael Stang<br>Laboringenieur, Dipl. Inf. (FH)<br><br>Duale Hochschule Baden-Württemberg Mannheim<br>Baden-Wuerttemberg Cooperative State University Mannheim<br>ZeMath Zentrum für mathematisch-naturwissenschaftliches Basiswissen<br>Fachbereich Informatik, Fakultät Technik<br>Coblitzallee 1-9<br>68163 Mannheim<br><br>Tel.: +49 (0)621 4105 - 1367<br><a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a><br><a href="http://www.dhbw-mannheim.de" target="_blank">http://www.dhbw-mannheim.de</a><br><br><br><br><img src="http://www.dhbw-mannheim.de/fileadmin/media/mail/signatur/dhbw_logo_mail.jpg" border="0"><br><br></div>
<br>_______________________________________________<br> OpenStack-operators mailing list<br> <a href="mailto:OpenStack-operators@lists.openstack.org" target="_blank">OpenStack-operators@lists.openstack.org</a><br> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br> </blockquote>
</div>
</div>
</div></div></blockquote><div><div class="h5">
<div><br> </div>
Viele Grüße<br><br>Michael Stang<br>Laboringenieur, Dipl. Inf. (FH)<br><br>Duale Hochschule Baden-Württemberg Mannheim<br>Baden-Wuerttemberg Cooperative State University Mannheim<br>ZeMath Zentrum für mathematisch-naturwissenschaftliches Basiswissen<br>Fachbereich Informatik, Fakultät Technik<br>Coblitzallee 1-9<br>68163 Mannheim<br><br>Tel.: +49 (0)621 4105 - 1367<br><a href="mailto:michael.stang@dhbw-mannheim.de" target="_blank">michael.stang@dhbw-mannheim.de</a><br><a href="http://www.dhbw-mannheim.de" target="_blank">http://www.dhbw-mannheim.de</a><br><br><br><br><img src="http://www.dhbw-mannheim.de/fileadmin/media/mail/signatur/dhbw_logo_mail.jpg" border="0"><br><br></div></div></div>
 </blockquote></div><br></div>