@@ -18,7 +18,7 @@ permissions:
1818jobs :
1919 openstack :
2020 name : openstack-ci
21- runs-on : ubuntu-22 .04
21+ runs-on : ubuntu-24 .04
2222 strategy :
2323 fail-fast : false # allow other matrix jobs to continue even if one fails
2424 matrix :
7575 run : cat environments/.stackhpc/bastion_fingerprints >> ~/.ssh/known_hosts
7676 shell : bash
7777
78+ - uses : actions/setup-python@v6
79+ with :
80+ python-version : ' 3.10' # TODO: bump to 3.12 once release cut including this PR
81+
7882 - name : Install ansible, pip and galaxy requirements
7983 run : dev/setup-env.sh
84+ env :
85+ PYTHON_VERSION : python3 # overrides os-release discovery logic
8086
8187 - name : Install OpenTofu
8288@@ -101,6 +107,12 @@ jobs:
101107 env :
102108 DEMO_USER_PASSWORD : ${{ secrets.TEST_USER_PASSWORD }}
103109
110+ - name : Cleanup any OpenStack resources from previous attempts
111+ run : |
112+ . venv/bin/activate
113+ . environments/.stackhpc/activate
114+ ./dev/delete-cluster.py ${{ env.TF_VAR_cluster_name }} --force
115+
104116 - name : Provision nodes using latest release image
105117 id : provision_servers
106118 run : |
@@ -146,8 +158,14 @@ jobs:
146158 - name : Checkout current branch
147159 run : git checkout ${{ github.head_ref || github.ref_name }}
148160
161+ - uses : actions/setup-python@v6
162+ with :
163+ python-version : ' 3.12'
164+
149165 - name : Update ansible, pip and galaxy requirements
150166 run : dev/setup-env.sh
167+ env :
168+ PYTHON_VERSION : python3 # overrides os-release discovery logic
151169
152170 - name : Reimage login and control nodes to image in current branch
153171 id : reimage_non_compute
0 commit comments