Skip to content

Commit ec95a9c

Browse files
committed
Migrate RabbitMQ queues in ci-aio
1 parent f46c161 commit ec95a9c

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,26 @@ jobs:
335335
env:
336336
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
337337

338+
- name: Change RabbitMQ queues from transient types to durable types (quorum and streams)
339+
run: |
340+
sed -i -e '$aom_enable_queue_manager: True' \
341+
-e '$aom_enable_rabbitmq_quorum_queues: True' \
342+
-e '$aom_enable_rabbitmq_transient_quorum_queue: True' \
343+
-e '$aom_enable_rabbitmq_stream_fanout: True' \
344+
etc/kayobe/environments/ci-aio/kolla/globals.yml
345+
if: inputs.upgrade
346+
347+
- name: Migrate RabbitMQ queues
348+
run: |
349+
docker run -t --rm \
350+
-v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
351+
-e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
352+
${{ steps.kayobe_image.outputs.kayobe_image }} \
353+
/stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/rabbitmq-queue-migration.sh
354+
env:
355+
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY: ${{ steps.ssh_key.outputs.ssh_key }}
356+
if: inputs.upgrade
357+
338358
# If testing upgrade, checkout the current release branch
339359
# Stash changes to tracked files, and set clean=false to avoid removing untracked files.
340360
# Revert changes to RabbitMQ Queue types to avoid a merge conflict

0 commit comments

Comments
 (0)