Glance service cannot communicate with keystone

asked 2019-01-04 07:43:21 -0500

Erdem gravatar image

updated 2019-01-07 00:10:59 -0500

Hello Everyone, I'm trying to install Openstack Rocky.
I got an error when I try to run openstack commands , for example:

openstack image list
Service Unavailable (HTTP 503)

When I dig the logs I see a Critical error:

2019-01-04 16:36:26.198 7523 CRITICAL keystonemiddleware.auth_token [-] Unable to validate token: Unable to establish connection to http://CONTROLLER:5000/v3/auth/tokens: HTTPConnectionPool(host='CONTROLLER', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2c1ba6dc90>: Failed to establish a new connection: [Errno -5] No address associated with hostname',)): ConnectFailure: Unable to establish connection to http://CONTROLLER:5000/v3/auth/tokens: HTTPConnectionPool(host='CONTROLLER', port=5000): Max retries exceeded with url: /v3/auth/tokens (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f2c1ba6dc90>: Failed to establish a new connection: [Errno -5] No address associated with hostname',))

When I curl I get this output.

curl http://CONTROLLER:5000/v3
{"version": {"status": "stable", "updated": "2018-10-15T00:00:00Z", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.identity-v3+json"}], "id": "v3.11", "links": [{"href": "http://CONTROLLER:5000/v3/", "rel": "self"}]}}

Hostname resolution seems to be fine. What can be the issue?

Regards.

edit retag flag offensive close merge delete