Error: Could not find versioned identity endpoints when attempting to authenticate. Please check that your auth_url is correct. Internal Server Error (HTTP 500) while deploying devstack with command ./stack.sh

Bug #1997017 reported by Stuti Arya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
Won't Fix
Undecided
Unassigned

Bug Description

I am trying to set-up a new stack with the below commands in python 3.9.15 and Ubuntu 20.04.4 LTS

sudo su - stack
git clone https://opendev.org/openstack/devstack
cd devstack
git checkout stable/yoga
cd /opt/
chmod 755 stack
cd stack
chmod 755 devstack
cd devstack
vi local.conf

[[local|localrc]]

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

ADMIN_PASSWORD=xxxx
DATABASE_PASSWORD=xxxx
RABBIT_PASSWORD=xxxx
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

Stuti Arya (sarya09)
description: updated
Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

Why do you want to use python3.9 on Ubuntu 20.04? The default python version there is 3.8, we only support that. I also don't see what you did in order to switch to using python3.9, you usually would need to specify that in your local.conf file. But I really suggest to use python3.8 instead.

Changed in devstack:
status: New → Incomplete
Revision history for this message
Stuti Arya (sarya09) wrote :

I want to use python3.9 as there was a requirement from the client and in order to upgrade I used below commands:

sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.9
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.9 2
python3 --version
sudo apt remove --purge python3-apt
sudo apt autoclean
sudo apt install python3-apt
sudo apt install python3.9-distutils
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python3.9 get-pip.py

these commands helped me upgrade python to python3.9 and installed pip for the python3.9 version.

How exactly do I need to specify python3.9 local.conf file?
Have you/your team deployed devstack (./stack.sh) on Ubuntu 20.04 and Python3.9? If yes, Can you share what you did to successfully deploy the stack?

Revision history for this message
Stuti Arya (sarya09) wrote :

Is Python 3.9 and Ubuntu 20.4 compatible with devstack Xena/Yoga?

Revision history for this message
Dr. Jens Harbott (j-harbott) wrote :

As you have proven yourself, the answer is no. There are also no plans to change that. The current development target is Ubuntu 22.04 and Python 3.10.

Changed in devstack:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.