Ask Your Question
0

Getting error "Invalid OpenStack Identity credentials" while trying to create a user

asked 2014-10-09 06:26:09 -0500

Kaustuv gravatar image

updated 2014-10-09 11:31:11 -0500

mpetason gravatar image

I am following the steps to install Heat service on Openstack Icehouse from this documentation - http://docs.openstack.org/icehouse/in...

And I am getting error in the Step 6 of the documentation.

I have also checked the following - Setting Admin Token -

[root@fedora20 ~]# ADMIN_TOKEN=$(openssl rand -hex 10)
[root@fedora20 ~]# echo $ADMIN_TOKEN
50efae6f0228a04d1e31
[root@fedora20 ~]# openstack-config --set /etc/keystone/keystone.conf DEFAULT \
>    admin_token $ADMIN_TOKEN

In /etc/keystone/keystone.conf file -

admin_token=50efae6f0228a04d1e31

Checking Keystone service -

[root@fedora20 ~]# service openstack-keystone status
Redirecting to /bin/systemctl status  openstack-keystone.service
openstack-keystone.service - OpenStack Identity Service (code-named Keystone)
   Loaded: loaded (/usr/lib/systemd/system/openstack-keystone.service; enabled)
   Active: active (running) since Thu 2014-10-09 15:05:12 IST; 1h 40min ago
 Main PID: 1135 (keystone-all)
   CGroup: /system.slice/openstack-keystone.service
           +-1135 /usr/bin/python /usr/bin/keystone-all

Then:

Oct 09 14:59:26 fedora20.rebacakol.com systemd[1]: Starting OpenStack Identity Service (code-named Keystone)...
Oct 09 15:05:12 fedora20.rebacakol.com systemd[1]: Started OpenStack Identity Service (code-named Keystone).

Setting Environment variables -

[root@fedora20 ~]# export OS_SERVICE_TOKEN=ADMIN_TOKEN
[root@fedora20 ~]# export OS_SERVICE_ENDPOINT=http://192.168.50.207:35357/v2.0

Trying to create a user -

[root@fedora20 ~]# keystone user-create --name=heat --pass=heat123 --email=kaustuv@rebaca.com
Invalid OpenStack Identity credentials.
edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
1

answered 2014-10-10 05:09:01 -0500

Kaustuv gravatar image

After setting the above mentioned Env variables, getting below errors - [root@fedora20 ~]# keystone token-get WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). 'NoneType' object has no attribute 'has_service_catalog'

edit flag offensive delete link more
0

answered 2014-10-09 08:54:34 -0500

updated 2014-10-09 08:57:19 -0500

You have credential problem when you want to issue command to the keystone using console. Try the following envirtonment variables:

export OS_USERNAME=your_os_user
export OS_PASSWORD=your_os_pass
export OS_TENANT_NAME=admin

Verify your openrc.sh file configuration:

keystone token-get

Then execute the following command to test connectivity to Keystone:

keystone user-list

This link may be useful.

edit flag offensive delete link more

Comments

[root@fedora20 ~]# keystone user-list WARNING: Bypassing authentication using a token & endpoint (authentication credentials are being ignored). Invalid OpenStack Identity credentials.

Kaustuv gravatar imageKaustuv ( 2014-10-10 05:09:15 -0500 )edit
0

answered 2014-10-09 11:07:54 -0500

It should have been export OS_SERVICE_TOKEN=$ADMIN_TOKEN

You are missing $

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-10-09 06:26:09 -0500

Seen: 9,419 times

Last updated: Oct 09 '14