Ask Your Question
0

heat-keystone-setup-domain returns authentication error (CentOS7)

asked 2015-05-15 11:36:57 -0500

Kris gravatar image

updated 2015-05-16 01:02:50 -0500

Setting up Kilo, following install guide as closely as possible. Now in Heat I get the below error setting up the domain.

I am a bit confused by the provided /usr/share/heat-dist.conf file. The CentOS instruction tells me to use this file. And I copied it over the original /etc/heat/heat.conf. (instructions for other distributions do not have the directive to copy over /etc/heat/heat.conf, doe anybody have the original /etc/heat/heat.conf for CentOS?)...

It has got some confusing directives. I do not trust it completely. (eg. in the DEFAULT stanza it has got: sql_connection = mysql://heat:heat@localhost/heat). Different than the other modules.

Does anybody have a clue what is wrong here? Kris

[root@oscon01 heat]# heat-keystone-setup-domain --stack-user-domain-name heat_user_domain --stack-domain-admin heat_domain_admin --stack-domain-admin-password hello12

Traceback (most recent call last):

  File "/usr/bin/heat-keystone-setup-domain", line 156, in <module>
    main()
  File "/usr/bin/heat-keystone-setup-domain", line 107, in main
    c.authenticate()
  File "/usr/lib/python2.7/site-packages/keystoneclient/utils.py", line 318, in inner
    return func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/httpclient.py", line 503, in authenticate
    resp = self.get_raw_token_from_identity_service(**kwargs)
  File "/usr/lib/python2.7/site-packages/keystoneclient/v3/client.py", line 287, in get_raw_token_from_identity_service
    _('Authorization failed: %s') % e)
keystoneclient.openstack.common.apiclient.exceptions.AuthorizationFailure


[root@oscon01 heat]#
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-17 12:26:29 -0500

Kris gravatar image

I have solved this one myself. You have to combine the Install and User Guide I guess:

[root@oscon01 ceilometer]# set | grep OS_
OS_AUTH_URL=http://oscon01:35357
OS_IMAGE_API_VERSION=2
OS_PASSWORD=wowsolved
OS_PROJECT_DOMAIN_ID=default
OS_PROJECT_NAME=admin
OS_TENANT_NAME=admin
OS_USERNAME=admin
OS_USER_DOMAIN_ID=default
OS_VOLUME_API_VERSION=2
[root@oscon01 ceilometer]# export OS_AUTH_URL=http://oscon01:5000/v3
[root@oscon01 ceilometer]# set | grep OS_
OS_AUTH_URL=http://oscon01:5000/v3
OS_IMAGE_API_VERSION=2
OS_PASSWORD=wowsolved
OS_PROJECT_DOMAIN_ID=default
OS_PROJECT_NAME=admin
OS_TENANT_NAME=admin
OS_USERNAME=admin
OS_USER_DOMAIN_ID=default
OS_VOLUME_API_VERSION=2
_=OS_AUTH_URL
[root@oscon01 ceilometer]# heat-keystone-setup-domain --stack-user-domain-name heat_user_domain --stack-domain-admin heat_domain_admin --stack-domain-admin-password wowsolved

Please update your heat.conf with the following in [DEFAULT]

stack_user_domain_id=5951726e718b40b08195c80bd9650068
stack_domain_admin=heat_domain_admin
stack_domain_admin_password=wowsolved
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: 2015-05-15 11:36:57 -0500

Seen: 1,649 times

Last updated: May 17 '15