Fix grenade job wsgi module tranition

Openstack moved from using wsgi scripts to directly calling the wsgi module
due to changes in setuptools that stops the pbr wsgi_scripts from working.

This patch adds an upgrade script that reconfigures uwsgi when updating
to Flamingo.

Change-Id: I5d9bb5ef52217ed5d2361e5855e9f5fc2c1b4111
This commit is contained in:
Michael Johnson
2025-05-27 21:56:39 +00:00
parent 794fc75d19
commit bbc92a716c
2 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# Openstack moved from using wsgi scripts to directly calling the wsgi module
# due to changes in setuptools that stops the pbr wsgi_scripts from working.
# This script will reconfigure uwsgi on upgrade to point to the module instead
# of the wsgi script that is no longer present in octavia.
function configure_octavia_upgrade {
source $GRENADE_DIR/functions
iniset $OCTAVIA_UWSGI_CONF uwsgi module $OCTAVIA_UWSGI_APP
}

View File

@@ -65,7 +65,6 @@
- ^tools/.*$
- ^(test-|)requirements.txt$
- ^tox.ini$
voting: false # due to LP#2109665
- octavia-grenade-skip-level:
irrelevant-files: *grenade-irrelevant-files
voting: false
@@ -107,8 +106,7 @@
- octavia-v2-dsvm-scenario-traffic-ops-ubuntu-jammy
- octavia-v2-dsvm-scenario-non-traffic-ops-ubuntu-jammy
- octavia-v2-dsvm-tls-barbican
- octavia-grenade:
voting: false
- octavia-grenade
#- octavia-grenade-skip-level
periodic:
jobs: