Skip to content

Commit d2c2ab6

Browse files
Alex-Welshseunghun1ee
authored andcommitted
Fix and re-enable Rocky 9 AIO upgrade CI job
1 parent 382fd03 commit d2c2ab6

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
@@ -335,46 +335,6 @@ jobs:
335335
env:
336336
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
337337

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

410-
# NOTE(Alex-Welsh): configure host with selinux_state=disabled, because
411-
# Antelope images are not built as permissive
412370
- name: Host configure
413371
run: |
414372
docker run -t --rm \
415373
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
416374
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
417375
$KAYOBE_IMAGE \
418-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh -e selinux_state=disabled
376+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/overcloud-host-configure.sh
419377
env:
420378
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
421379
if: inputs.upgrade
@@ -431,20 +389,6 @@ jobs:
431389
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
432390
if: inputs.upgrade
433391

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