Skip to content

Commit 2d1c422

Browse files
committed
Use Quorum queues in Rabbit
1 parent 7357a0a commit 2d1c422

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

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

Lines changed: 15 additions & 0 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

etc/kayobe/kolla/globals.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,6 @@ kolla_image_tags:
2222
# Variables defining which tag to use for each container's image.
2323
{{ lookup('pipe', 'python3 ' ~ kayobe_config_path ~ '/../../tools/kolla-images.py list-tag-vars') }}
2424

25-
#############################################################################
26-
# RabbitMQ
27-
28-
om_enable_rabbitmq_high_availability: true
29-
3025
#############################################################################
3126
# Monitoring and alerting related settings
3227

0 commit comments

Comments
 (0)