<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">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>