Openstack keystone token issue. Failed to discover available identity versions

2k Views Asked by At

Im attempting to setup keystone identity service on virtualized Ubuntu 20.4 via Windows Hyper-V on Windows 10.

I followed the instructions on: https://docs.openstack.org/keystone/pike/install/index-ubuntu.html very carefully & attempted this 4 times from scratch with a new VM.

However, all calls to OpenStack web service API either via curl, or command line result in some type of 404 Error.

Here my detailed steps (not including VM setup):

  1. Install & Setup MySQL for keystone:

enter image description here

enter image description here

  1. apt install keystone :

enter image description here

  1. configure keystone:

enter image description here

  1. fernet setup:

enter image description here

  1. Bootstrap keystone: enter image description here

  2. Apache2 setup:

In /etc/apache2/apache2.conf Set ServerName controller

  1. source confif file

enter image description here

  1. check port 5000.

enter image description here

  1. set local host name resolution: enter image description here

  2. Start apache. service apache2 restart

Here is the issue:

Attempt # 1 - Using curl to call keystone API (404):

Attempt # 2 - Using openstack command line tool, again (404):

enter image description here

Troubleshooting:

Keystone logs look good with no error: enter image description here

Furthermore, apache2 is running as I can see default server page:

enter image description here

So why cant keystone API be reached?

Appreciated

2

There are 2 best solutions below

0
On

export these variables and test again

export OS_AUTH_VERSION=3
export OS_ENDPOINT_TYPE=internalURL
export OS_INTERFACE=internalURL
export OS_AUTH_TYPE=password
export OS_TENANT_NAME=admin
export OS_NO_CACHE=1

check your wsgi and apache2 vhost config too, to make sure apache will redircet it correctly

0
On

would you please check if libapache2-mod-WSGI is installed as it is mentioned in the documentation enter image description here