token is not getting generated from keystone

asked 2020-05-13 08:04:44 -0500

uday kiran reddy gravatar image

I have created admin-openrc file on my home directory.

export OS_PROJECT_DOMAIN_NAME=Default
export OS_USER_DOMAIN_NAME=Default
export OS_PROJECT_NAME=admin
export OS_USERNAME=admin export OS_PASSWORD=openstack export OS_AUTH_URL=http://controller:35357/v3
export OS_IDENTITY_API_VERSION=3
export OS_IMAGE_API_VERSION=2

But when I ran below command, I am getting error. Please suggest.

. admin-openrc

openstack token issue

Failed to discover available identity versions when contacting http://controller:35357/v3. Attempting to parse version from URL. Unable to establish connection to http://controller:35357/v3/auth/tokens: HTTPConnectionPool(host='controller', port=35357): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.httpconnection 0x7f2d4a874210="" at="" object="">: Failed to establish a new connection: [Errno 111] Connection refused',))</urllib3.connection.httpconnection>

edit retag flag offensive close merge delete

Comments

Connection refused means that no process is listening at port 35357. Are you sure the URL is correct?

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-13 08:57:35 -0500 )edit

Try replacing port 35357 with port 5000

Alex1806 gravatar imageAlex1806 ( 2020-05-13 20:50:14 -0500 )edit
1

The endpoint could be configured without port number, for example http://controller/identity/v3. However, if this cloud was set up using the installation guides, Alex1806 is probably right.

Bernd Bausch gravatar imageBernd Bausch ( 2020-05-13 21:32:55 -0500 )edit

thank you it is working with 5000.

uday kiran reddy gravatar imageuday kiran reddy ( 2020-05-13 21:46:06 -0500 )edit

There is one more issue. with, nova-status upgrade check I am getting error with placement service as failed due to credentials not working. But credentials are correct only. Can you suggest how to and what other locations I need to check.

uday kiran reddy gravatar imageuday kiran reddy ( 2020-05-13 21:49:49 -0500 )edit