[openstack-dev] [heat][python-heatclient] Does python-heatclient works with keystone sessions?

Sergey Kraynev skraynev at mirantis.com
Thu May 7 21:33:03 UTC 2015


Hi Jay.

AFAIK, it works, but we can have some minor issues. There several atches on
review to improve it:

https://review.openstack.org/#/q/status:open+project:openstack/python-heatclient+branch:master+topic:improve-sessionclient,n,z

Also as I remember we really had bug mentioned by you, but fix was merged.
Please look:
https://review.openstack.org/#/c/160431/1
https://bugs.launchpad.net/python-heatclient/+bug/1427310

Which version of client do you use? Try to use code from master, it should
works.
Also one note: the best place for such questions is
openstack at lists.openstack.org or http://ask.openstack.org/. And of course
channel #heat in IRC.

Regards,
Sergey.

On 7 May 2015 at 23:43, Jay Reslock <jreslock at gmail.com> wrote:

> Hi,
> This is my first mail to the group.  I hope I set the subject correctly
> and that this hasn't been asked already.  I searched archives and did not
> see this question asked or answered previously.
>
> I am working on a client thing that uses the python-keystoneclient and
> python-heatclient api bindings to set up an authenticated session and then
> use that session to talk to the heat service.  This doesn't work for heat
> but does work for other services such as nova and sahara.  Is this because
> sessions aren't supported in the heatclient api yet?
>
> sample code:
>
> https://gist.github.com/jreslock/a525abdcce53ca0492a7
>
> I'm using fabric to define tasks so I can call them via another tool.
> When I run the task I get:
>
> TypeError: Client() takes at least 1 argument (0 given)
>
> The documentation does not say anything about being able to pass session
> to the heatclient but the others seem to work.  I just want to know if this
> is intended/expected behavior or not.
>
> -Jason
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150508/27707dae/attachment.html>


More information about the OpenStack-dev mailing list