Error: Could not find versioned identity endpoints when attempting to authenticate

2.2k views Asked by At

I am trying to set-up a new stack with the below commands in python 3.9.15 and Ubuntu 20.04.4 LTS. I created a stack user and cloned devstack using 'git clone https://opendev.org/openstack/devstack' and checkout yoga series and granted all permisssion to user with help of chmod 755. Creating the local.conf file using below configuration.

   vi local.conf

   [[local|localrc]]

   GIT_BASE=${GIT_BASE:-https://git.openstack.org}

   ADMIN_PASSWORD=xxxx
   DATABASE_PASSWORD=xxxxx
   RABBIT_PASSWORD=xxxxx
   SERVICE_PASSWORD=xxxx
   HOST_IP=10.197.38.22x
   #all the parameters below are optional
   USE_SCREEN=TRUE

   VERBOSE=True
   LOG_COLOR=True

   NOVA_REPO=$GIT_BASE/openstack/nova.git
   NOVA_BRANCH=stable/yoga

   NEUTRON_REPO=$GIT_BASE/openstack/neutron.git
   NEUTRON_BRANCH=stable/yoga

   HORIZON_REPO=$GIT_BASE/openstack/horizon.git
   HORIZON_BRANCH=stable/yoga

   GLANCE_REPO=$GIT_BASE/openstack/glance.git
   GLANCE_BRANCH=stable/yoga

   ./stack.sh

while running last command './stack.sh' I am getting error :

  Failed to discover available identity versions when contacting           http://10.197.38.224/identity. Attempting to parse version from URL.
  Could not find versioned identity endpoints when attempting to authenticate. Please check      that your auth_url is correct. Internal Server Error (HTTP 500)
  ++functions-common:oscwrap:2491 return 1
  +lib/keystone:create_keystone_accounts:310 admin_project=
  +lib/keystone:create_keystone_accounts:1 exit_trap
  +./stack.sh:exit_trap:521 local r=1
  ++./stack.sh:exit_trap:522 jobs -p
  +./stack.sh:exit_trap:522 jobs=80759
  +./stack.sh:exit_trap:525 [[ -n 80759 ]]
  +./stack.sh:exit_trap:525 [[ -n '' ]]
  +./stack.sh:exit_trap:531 '[' -f /tmp/tmp.d7oMMx7MH3 ']'
  +./stack.sh:exit_trap:532 rm /tmp/tmp.d7oMMx7MH3
  +./stack.sh:exit_trap:536 kill_spinner
  +./stack.sh:kill_spinner:431 '[' '!' -z '' ']'
  +./stack.sh:exit_trap:538 [[ 1 -ne 0 ]]
  +./stack.sh:exit_trap:539 echo 'Error on exit'
  Error on exit
  +./stack.sh:exit_trap:541 type -p generate-subunit
  +./stack.sh:exit_trap:542 generate-subunit 1668766307 716 fail
  +./stack.sh:exit_trap:544 [[ -z /opt/stack/logs ]]
  +./stack.sh:exit_trap:547 /usr/bin/python3.9 /opt/stack/devstack/tools/worlddump.py -d     /opt/stack/logs
 World dumping... see /opt/stack/logs/worlddump-2022-11-18-102343.txt for details
 +./stack.sh:exit_trap:556 exit 1

Any help would be appreciated

I am trying to deploy devstack machine using python version 3.9.15 and ubuntu 20.04.4

Proxy information:

export HTTP_PROXY="IP_ADDRESS:80"
    
export HTTPS_PROXY="IP_ADDRESS:80"
export http_proxy="IP_ADDRESS:80"
    
export https_proxy="IP_ADDRESS:80"
    
export NO_PROXY="127.0.0.1,IP_ADDRESS"
export no_proxy="127.0.0.1,IP_ADDRESS"
1

There are 1 answers

4
eblock On

According to your output it tries to reach your identity endpoint through a proxy. You have to set the correct proxy variables, for example this is my /etc/environment file:

export HTTP_PROXY="192.X.X.X:<PORT>"
export HTTPS_PROXY="192.X.X.X:<PORT>"
export http_proxy="192.X.X.X:<PORT>"
export https_proxy="192.X.X.X:<PORT>"
export NO_PROXY="127.0.0.1,<IP_ADDRESS>"
export no_proxy="127.0.0.1,<IP_ADDRESS>"

After logging out and back in the new environment variables are applied, you can check with echo $http_proxy. After having the correct proxy settings my deployment worked without an issue.