Ask Your Question
0

heat stack-list returns ERROR: 401 Unauthorized

asked 2014-06-19 06:14:39 -0500

Vinoth gravatar image

updated 2014-08-19 12:51:37 -0500

briancline gravatar image

I have two openstack setup one with icehouse which has no heat installed and latter with havana which has heat service running. I try to use my heat service as standalone service. So that I can deploy instance in my icehouse setup using heat template by using my existing heat service in havana.

I followed the instruction in https://wiki.openstack.org/wiki/Heat/...

Now I am getting the 401 ERROR while try executing the "heat stack-list" command.

ERROR I received:

**root@icehouse:/etc/heat# heat list
ERROR: 401 Unauthorized
This server could not verify that you are authorized to access the document you requested. Either you supplied the wrong credentials (e.g., bad password), or your browser does not understand how to supply the credentials required.
 Header X-Auth-Url "http://192.168.1.240:35357/v2.0" not an allowed endpoint**

Following is the environment i used:

**export HEAT_URL=http://192.168.1.221:8004/v1/19c208485cac4c72895b2c806f5a9a71
export OS_NO_CLIENT_AUTH=True
export OS_USERNAME=admin
export OS_PASSWORD=ADMIN_PASS
export OS_TENANT_NAME=admin
export OS_AUTH_URL=http://192.168.1.240:35357/v2.0**

Kindly help me to solve the issue. Thanks in advance.

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-06-19 16:23:35 -0500

smaffulli gravatar image

updated 2014-06-23 11:25:51 -0500

Those you followed are not necessarily instructions or real documentation; they are simply a blueprint, that is the generic description of a feature whose implementation may have not been started or completed.

In this case, the blueprint is marked as completed and its child blueprint is also marked as completed, for Havana. There is only a simple page as documentation for the Heast standalone feature, which is a bug.

I would make sure that your keystone URL http://192.168.1.240:35357/v2.0 is correct and you can get an auth token from it first. I'd also check the various logs in both of your clouds to see where things exactly fail (don't rely only on the error message by the client).

edit flag offensive delete link more

Comments

Thanks for your response, Look at the following link : http://docs.openstack.org/developer/h... which shows to get Heat to work with a remote OpenStack. Is it works ?

Vinoth gravatar imageVinoth ( 2014-06-20 00:40:34 -0500 )edit

Looks like your search capabilities are better than mine :) That's the documentation there is, yes. I've edited my answer to link that page from here.

smaffulli gravatar imagesmaffulli ( 2014-06-23 11:26:49 -0500 )edit
1

answered 2014-06-20 06:17:33 -0500

updated 2014-06-23 13:13:22 -0500

You need to set up the environment variables Run command source openrc admin admin or if a demo user then source openrc demo demo, It will set up the environment vars then you can run openstack related commands.

edit flag offensive delete link more
0

answered 2014-06-19 15:29:49 -0500

zaneb gravatar image

Do you have stacks already created in the Havana cloud? That would explain it - Heat can target only one cloud at a time.

edit flag offensive delete link more
-1

answered 2014-06-20 01:54:27 -0500

Vinoth gravatar image

Look at the following link : http://docs.openstack.org/developer/h.. . which shows how to get Heat to work with a remote OpenStack. Is it works ?

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: 2014-06-19 06:14:39 -0500

Seen: 1,592 times

Last updated: Jun 23 '14