Skip to content

Commit 7b967e8

Browse files
committed
wip
1 parent 3a5b589 commit 7b967e8

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,21 @@ jobs:
314314
env:
315315
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
316316

317+
- name: Change rabbit queues from HA to Quorum
318+
run: sed -i -e 's/om_enable_rabbitmq_high_availability: true/om_enable_rabbitmq_high_availability: false' -e 's/om_enable_rabbitmq_quorum_queues: false/om_enable_rabbitmq_quorum_queues: true' etc/kayobe/environments/ci-aio/kolla/globals.yml
319+
if: inputs.upgrade
320+
321+
- name: Migrate RabbitMQ queues
322+
run: |
323+
docker run -t --rm \
324+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
325+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
326+
${{ steps.kayobe_image.outputs.kayobe_image }} \
327+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/migrate-rabbitmq-queues.yml --tags rabbit-queue-migration
328+
env:
329+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
330+
if: inputs.upgrade
331+
317332
# If testing upgrade, checkout the current release branch
318333
# Stash changes to tracked files, and set clean=false to avoid removing untracked files.
319334
- name: Stash config changes
@@ -354,17 +369,6 @@ jobs:
354369
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
355370
if: inputs.upgrade
356371

357-
- name: Migrate RabbitMQ queues
358-
run: |
359-
docker run -t --rm \
360-
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
361-
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
362-
${{ steps.kayobe_image.outputs.kayobe_image }} \
363-
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/migrate-rabbitmq-queues.yml --tags rabbit-queue-migration
364-
env:
365-
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
366-
if: inputs.upgrade
367-
368372
- name: Service upgrade
369373
run: |
370374
docker run -t --rm \

0 commit comments

Comments
 (0)