Skip to content

Commit 3dc5a96

Browse files
committed
Fix and re-enable Rocky 9 AIO upgrade CI job
1 parent 97768a2 commit 3dc5a96

File tree

3 files changed

+19
-75
lines changed

3 files changed

+19
-75
lines changed

.github/workflows/stackhpc-all-in-one.yml

Lines changed: 1 addition & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -330,46 +330,6 @@ jobs:
330330
env:
331331
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
332332

333-
- name: Upgrade to RabbitMQ 3.12
334-
run: |
335-
docker run -t --rm \
336-
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
337-
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
338-
${{ steps.kayobe_image.outputs.kayobe_image }} \
339-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/kolla-ansible-run.sh "rabbitmq-upgrade 3.12"
340-
env:
341-
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
342-
if: inputs.upgrade
343-
344-
- name: Upgrade to RabbitMQ 3.13
345-
run: |
346-
docker run -t --rm \
347-
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
348-
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
349-
${{ steps.kayobe_image.outputs.kayobe_image }} \
350-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/kolla-ansible-run.sh "rabbitmq-upgrade 3.13"
351-
env:
352-
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
353-
if: inputs.upgrade
354-
355-
- name: Change rabbit queues from HA to Quorum
356-
run: |
357-
sed -i -e 's/om_enable_rabbitmq_high_availability: true/om_enable_rabbitmq_high_availability: false/' \
358-
-e 's/om_enable_rabbitmq_quorum_queues: false/om_enable_rabbitmq_quorum_queues: true/' \
359-
etc/kayobe/environments/ci-aio/kolla/globals.yml
360-
if: inputs.upgrade
361-
362-
- name: Migrate RabbitMQ queues
363-
run: |
364-
docker run -t --rm \
365-
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
366-
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
367-
${{ steps.kayobe_image.outputs.kayobe_image }} \
368-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/rabbitmq-quorum-migration.sh
369-
env:
370-
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
371-
if: inputs.upgrade
372-
373333
# If testing upgrade, checkout the current release branch
374334
# Stash changes to tracked files, and set clean=false to avoid removing untracked files.
375335
# Revert changes to RabbitMQ Queue types to avoid a merge conflict
@@ -402,15 +362,13 @@ jobs:
402362
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
403363
if: inputs.upgrade
404364

405-
# NOTE(Alex-Welsh): configure host with selinux_state=disabled, because
406-
# Antelope images are not built as permissive
407365
- name: Host configure
408366
run: |
409367
docker run -t --rm \
410368
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
411369
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
412370
$KAYOBE_IMAGE \
413-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh -e selinux_state=disabled
371+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh
414372
env:
415373
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
416374
if: inputs.upgrade
@@ -426,20 +384,6 @@ jobs:
426384
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
427385
if: inputs.upgrade
428386

429-
- name: Ensure we have IP on breth1 to reach the instances
430-
# NOTE(wszumski): Whilst we don't need to create resources again, in some circumstances
431-
# we can lose the IP address that allows us to connect to the instances. This playbook
432-
# also fixes that issue.
433-
run: |
434-
docker run -t --rm \
435-
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
436-
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
437-
${{ steps.kayobe_image.outputs.kayobe_image }} \
438-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/configure-aio-resources.yml
439-
env:
440-
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
441-
if: inputs.upgrade
442-
443387
- name: Tempest tests
444388
id: tempest
445389
run: |

.github/workflows/stackhpc-pull-request.yml

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ jobs:
197197

198198
# Test two upgrade scenarios: Ubuntu Noble OVS and Rocky 9 OVN.
199199

200+
# On hold until Noble support lands in stackhpc/2024.1
200201
# all-in-one-upgrade-ubuntu-noble-ovs:
201202
# name: aio upgrade (Ubuntu Noble OVS)
202203
# needs:
@@ -215,20 +216,20 @@ jobs:
215216
# secrets: inherit
216217
# if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
217218

218-
# all-in-one-upgrade-rocky-9-ovn:
219-
# name: aio upgrade (Rocky 9 OVN)
220-
# needs:
221-
# - check-changes
222-
# - build-kayobe-image
223-
# uses: ./.github/workflows/stackhpc-all-in-one.yml
224-
# with:
225-
# kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
226-
# os_distribution: rocky
227-
# os_release: "9"
228-
# ssh_username: cloud-user
229-
# neutron_plugin: ovn
230-
# OS_CLOUD: openstack
231-
# if: ${{ needs.check-changes.outputs.aio == 'true' }}
232-
# upgrade: true
233-
# secrets: inherit
234-
# if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
219+
all-in-one-upgrade-rocky-9-ovn:
220+
name: aio upgrade (Rocky 9 OVN)
221+
needs:
222+
- check-changes
223+
- build-kayobe-image
224+
uses: ./.github/workflows/stackhpc-all-in-one.yml
225+
with:
226+
kayobe_image: ${{ needs.build-kayobe-image.outputs.kayobe_image }}
227+
os_distribution: rocky
228+
os_release: "9"
229+
ssh_username: cloud-user
230+
neutron_plugin: ovn
231+
OS_CLOUD: openstack
232+
if: ${{ needs.check-changes.outputs.aio == 'true' }}
233+
upgrade: true
234+
secrets: inherit
235+
if: ${{ ! failure() && ! cancelled() && github.repository == 'stackhpc/stackhpc-kayobe-config' }}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
---
22
# Overcloud host image versioning tags
33
# These images must be in SMS, since they are used by our AIO CI runners
4-
# TODO: Build real master images
54
stackhpc_rocky_9_overcloud_host_image_version: "master-20250213T092714"
65
stackhpc_ubuntu_noble_overcloud_host_image_version: "master-20250213T092714"

0 commit comments

Comments
 (0)