Ask Your Question
1

python-heatclient does not work on windows

asked 2013-11-21 16:57:50 -0500

michayu gravatar image

updated 2013-11-21 17:04:52 -0500

Hi,

Let me preface this... I have an Openstack (Folsom) cluster running in the lab. Heat API server is setup on one of the compute nodes (cn5).

I have installed python-heatclient on my Windows machine in my office. But whenever I do "heat.exe -d stack-list", it fails with HTTPMultipleChoices (HTTP 300) Requested version of Heat API is notavailable.

The strange thing is... the debug statements print out the curl command which has the full URL including the version number in it:

curl -i -X GET -H 'X-Auth-User: admin' -H 'X-Auth-Token: <token>' -H 'X-Auth-Key: <key>' -H 'Accept: application/json' -H 'User-Agent: python-heatclient' -H 'Content-Type: application/json' http://<cn5_ip>:8004/v1/<admin_tenant_id>/stacks?limit=20</admin_tenant_id></cn5_ip></key></token>

So when I manually invoke the curl command, I get the contents from stack-list back.

Is this a bug with python-heatclient on Windows? Other components such as python-novaclient and python-glanceclient work fine on my Windows.

I also am able to successfully test python-heatclient on my Mac machine.

They are all running under the same network.

edit retag flag offensive close merge delete

Comments

Forgot to mention... I already sourced my admin credentials too.

michayu gravatar imagemichayu ( 2013-11-21 16:58:32 -0500 )edit

3 answers

Sort by ยป oldest newest most voted
1

answered 2013-11-25 04:24:19 -0500

chenhaiq gravatar image

This is a bug in python-heatclient. Created bug: https://bugs.launchpad.net/python-heatclient/+bug/1254657

edit flag offensive delete link more
0

answered 2013-11-24 19:13:05 -0500

fifieldt gravatar image

Perhaps also try filing a bug report in Heat at https://bugs.launchpad.net/heat/+filebug

edit flag offensive delete link more
0

answered 2013-11-25 11:16:34 -0500

alexpilotti gravatar image

We found and fixed this issue on other python-*client before. Unfortunately there's the bad habit to use os.path.normpath() to normalize URLs.

The solution consists in using "posixpath.normpath()" instead of "os.path.normpath()"

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-11-21 16:57:50 -0500

Seen: 152 times

Last updated: Nov 25 '13