Merge "Fix OSA_VERSION during upgrades"

This commit is contained in:
Zuul
2026-02-05 03:19:36 +00:00
committed by Gerrit Code Review
4 changed files with 10 additions and 2 deletions

3
pyproject.toml Normal file
View File

@@ -0,0 +1,3 @@
[build-system]
requires = ["pbr>=6.1.1"]
build-backend = "pbr.build"

View File

@@ -0,0 +1,5 @@
---
fixes:
- |
OpenStack-Ansible and venv version detection is fixed for environments
which were upgraded from pre-Flamingo releases.

View File

@@ -135,7 +135,7 @@ if [ "${SETUP_ARA}" == "true" ]; then
fi
# Get current code version (this runs at the root of OSA clone)
export CURRENT_OSA_VERSION=$(cd ${OSA_CLONE_DIR}; /opt/ansible-runtime/bin/python -c "from importlib.metadata import version; print(version('openstack-ansible'))")
export CURRENT_OSA_VERSION=$(cd /tmp; /opt/ansible-runtime/bin/python -c "from importlib.metadata import version; print(version('openstack-ansible'))")
# Ensure that Ansible binaries run from the venv
pushd /opt/ansible-runtime/bin

View File

@@ -16,5 +16,5 @@
import setuptools
setuptools.setup(
setup_requires=['pbr>=2.0.0'],
setup_requires=['pbr>=6.1.1'],
pbr=True)