<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div><br></div><div><br></div><hr id="zwchr"><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Jay Reslock" <jreslock@gmail.com><br><b>To: </b>"OpenStack Development Mailing List (not for usage questions)" <openstack-dev@lists.openstack.org><br><b>Sent: </b>Saturday, May 9, 2015 6:42:48 AM<br><b>Subject: </b>Re: [openstack-dev] [heat][python-heatclient] Does python-heatclient works with keystone sessions?<br><div><br></div><div dir="ltr">Interesting....it is definitely a service endpoint mismatch.<br><div><br></div><div>UI:</div><div><br></div><div><span style="color:rgb(51,51,51);font-size:13px;line-height:18.5714092254639px;background-color:rgb(249,249,249)"><a href="http://10.25.17.63:8004/v1/dac1095f448d476e9990046331415cf6" target="_blank">http://10.25.17.63:8004/v1/dac1095f448d476e9990046331415cf6</a></span><br></div><div><br></div><div>keystoneclient.services.list():</div><div><br></div><div><p class="p2"><span class="s1"><a href="http://10.25.17.63:35357/v3/services/e0a18f2f4b574c75ba56823964a7d7eb" target="_blank">http://10.25.17.63:35357/v3/services/e0a18f2f4b574c75ba56823964a7d7eb</a></span><br data-mce-bogus="1"></p><p class="p2">What can I do to make these match up correctly?</p></div></div></blockquote><div>They're network URLs - i can't see anything there. Try using: `openstack catalog list`.<br></div><div><br></div><div>Otherwise i'd turn on python's debug logging, something like: <br></div><div><br></div><div>import logging <br></div><div><br></div><div>logging.basicConfig(level=logging.DEBUG) <br></div><div><br></div><div>which will give you a bunch of output - though the service catalog will be hidden because it's part of the token exchange. <br></div><blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><div class="gmail_quote">On Fri, May 8, 2015 at 4:22 PM Jay Reslock <<a href="mailto:jreslock@gmail.com" target="_blank">jreslock@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Jamie,<br><div><br></div><div>How do I see the service catalog that I am getting back? </div></div><br><div class="gmail_quote">On Fri, May 8, 2015 at 3:25 AM Jamie Lennox <<a href="mailto:jamielennox@redhat.com" target="_blank">jamielennox@redhat.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br>
----- Original Message -----<br>
> From: "Jay Reslock" <<a href="mailto:jreslock@gmail.com" target="_blank">jreslock@gmail.com</a>><br>
> To: "OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
> Sent: Friday, May 8, 2015 7:42:50 AM<br>
> Subject: Re: [openstack-dev] [heat][python-heatclient] Does python-heatclient works with keystone sessions?<br>
><br>
> Thanks very much to both of you for your help!<br>
><br>
> I was able to get to another error now about EndpointNotFound. I will<br>
> troubleshoot more and review the bugs mentioned by Sergey.<br>
><br>
> -Jason<br><br>
It's nice to see people using sessions for this sort of script. Just as a pointer EndpointNotFound generally means that it couldn't find a url for the service you wanted in the service catalog. Have a look at the catalog you're getting and make sure the heat entry matches what it should, you may have to change the service_type or interface to match.<br><br>
> On Thu, May 7, 2015 at 5:34 PM Sergey Kraynev < <a href="mailto:skraynev@mirantis.com" target="_blank">skraynev@mirantis.com</a> ><br>
> wrote:<br>
><br>
><br>
><br>
> Hi Jay.<br>
><br>
> AFAIK, it works, but we can have some minor issues. There several atches on<br>
> review to improve it:<br>
><br>
> <a href="https://review.openstack.org/#/q/status:open+project:openstack/python-heatclient+branch:master+topic:improve-sessionclient,n,z" target="_blank">https://review.openstack.org/#/q/status:open+project:openstack/python-heatclient+branch:master+topic:improve-sessionclient,n,z</a><br>
><br>
> Also as I remember we really had bug mentioned by you, but fix was merged.<br>
> Please look:<br>
> <a href="https://review.openstack.org/#/c/160431/1" target="_blank">https://review.openstack.org/#/c/160431/1</a><br>
> <a href="https://bugs.launchpad.net/python-heatclient/+bug/1427310" target="_blank">https://bugs.launchpad.net/python-heatclient/+bug/1427310</a><br>
><br>
> Which version of client do you use? Try to use code from master, it should<br>
> works.<br>
> Also one note: the best place for such questions is<br>
> <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a> or <a href="http://ask.openstack.org/" target="_blank">http://ask.openstack.org/</a> . And of course<br>
> channel #heat in IRC.<br>
><br>
> Regards,<br>
> Sergey.<br>
><br>
> On 7 May 2015 at 23:43, Jay Reslock < <a href="mailto:jreslock@gmail.com" target="_blank">jreslock@gmail.com</a> > wrote:<br>
><br>
><br>
><br>
> Hi,<br>
> This is my first mail to the group. I hope I set the subject correctly and<br>
> that this hasn't been asked already. I searched archives and did not see<br>
> this question asked or answered previously.<br>
><br>
> I am working on a client thing that uses the python-keystoneclient and<br>
> python-heatclient api bindings to set up an authenticated session and then<br>
> use that session to talk to the heat service. This doesn't work for heat but<br>
> does work for other services such as nova and sahara. Is this because<br>
> sessions aren't supported in the heatclient api yet?<br>
><br>
> sample code:<br>
><br>
> <a href="https://gist.github.com/jreslock/a525abdcce53ca0492a7" target="_blank">https://gist.github.com/jreslock/a525abdcce53ca0492a7</a><br>
><br>
> I'm using fabric to define tasks so I can call them via another tool. When I<br>
> run the task I get:<br>
><br>
> TypeError: Client() takes at least 1 argument (0 given)<br>
><br>
> The documentation does not say anything about being able to pass session to<br>
> the heatclient but the others seem to work. I just want to know if this is<br>
> intended/expected behavior or not.<br>
><br>
> -Jason<br>
><br>
><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br>
> __________________________________________________________________________<br>
> OpenStack Development Mailing List (not for usage questions)<br>
> Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
><br><br>
__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></blockquote></div></blockquote></div><br>__________________________________________________________________________<br>OpenStack Development Mailing List (not for usage questions)<br>Unsubscribe: OpenStack-dev-request@lists.openstack.org?subject:unsubscribe<br>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev<br></blockquote><div><br></div></div></body></html>