Ask Your Question
0

openstack dashboard authentication: invalid cridentiels

asked 2016-03-28 11:05:11 -0600

Badis BA gravatar image

updated 2016-03-28 11:50:36 -0600

Hi everyone,

After i followed every step in the openstack liberty install guide now i'm in the step of verifying the operation of dashboard installation. when i enter my credentials in the dashboard (domain, user, password) every time i got the message of "invalid credentials" and i'm so sure that all my credentials are correct ! so is it a problem in keystone configuration ?? Also when i check the keystone database i found it empty!! and every time i lunch #keystone user-list i got :

/usr/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning:            The keystone CLI is deprecated in favor of python-openstackclient. For a Python            library, continue using python-keystoneclient.
 'python-keystoneclient.', DeprecationWarning)
Expecting an auth URL via either --os-auth-url or env [OS_AUTH_URL]

so is there any one who could help me ! and thanks in advance.

edit retag flag offensive close merge delete

Comments

You need to source credential file, depending of the installation methon may be called adminrc.sh, keystonerc or something similar to that. Probably database is empty, you need to sync tables with:

su -s /bin/sh -c "keystone-manage db_sync" keystone

Regards

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-03-28 11:52:58 -0600 )edit

Hi eduardo, when i run #source admin-openrc.sh , for the first time the error message has changed to "an error occurred authenticating. please try again later" but after i run the other cmd :su -s /bin/sh -c "keystone-manage db_sync" keystone , the first message "invalid cridentiels" has returned

Badis BA gravatar imageBadis BA ( 2016-03-29 03:13:23 -0600 )edit

i just dont know why in other tutorials i find the openstack dashboard with only the user name and the password and in my case i got the domain as credential ??

Badis BA gravatar imageBadis BA ( 2016-03-29 03:32:16 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-29 02:56:18 -0600

Gnan gravatar image

updated 2016-03-29 04:37:33 -0600

Bipin gravatar image

Hello,

  1. Create a keystonerc_admin file with below content:

    export OS_USERNAME=admin
    export OS_PASSWORD=changeme
    export OS_AUTH_URL=http://10.0.0.1:5000/v2.0 - Replace it with the correct IP address
    export PS1='[\u@\h\W(keystone_admin)]\$ '
    export OS_TENANT_NAME=admin
    export OS_REGION_NAME=RegionOne

Note: There might be formatting issue with the above text. Copy it to a notepad and then create the file.

  1. Then type source keystonerc_admin # run keystone user-list

  2. keystone user-password-update --pass newpassword admin

edit flag offensive delete link more

Comments

when i execute keystone user-list i got this message :

/usr/lib/python2.7/dist-packages/keystoneclient/shell.py:64: DeprecationWarning: The keystone CLI is deprecated in favor of python-openstackclient. For a Python library, continue using python-keystoneclient.

Badis BA gravatar imageBadis BA ( 2016-03-29 03:49:33 -0600 )edit

'python-keystoneclient.', DeprecationWarning) Expecting an auth URL via either --os-auth-url or env [OS_AUTH_URL]

Badis BA gravatar imageBadis BA ( 2016-03-29 03:50:18 -0600 )edit

Then the auth url was not exported. export OS_AUTH_URL=http://10.0.0.1:5000/v2.0

Did you add the above line to keystone rc file?

Gnan gravatar imageGnan ( 2016-03-29 04:16:01 -0600 )edit

Can you please paste your keystonerc_admin file as per @RHK mentioned ?

Bipin gravatar imageBipin ( 2016-03-29 04:17:28 -0600 )edit

export OS_USERNAME=admin export OS_PASSWORD=* export OS_AUTH_URL=http://172.11.19.116/v2.0 export PS1='[\u@\h\W(keystone_admin)]\$ ' export OS_TENANT_NAME=admin export OS_REGION_NAME=RegionOne

Badis BA gravatar imageBadis BA ( 2016-03-29 04:22:23 -0600 )edit

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: 2016-03-28 11:05:11 -0600

Seen: 2,917 times

Last updated: Mar 29 '16