@@ -264,6 +264,28 @@ jobs:
264
264
run : |
265
265
docker image pull $KAYOBE_IMAGE
266
266
267
+ # Rocky 9 OVN deployments will fail when the hostname contains a '.'
268
+ - name : Fix hostname
269
+ run : |
270
+ docker run -t --rm \
271
+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
272
+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
273
+ ${{ steps.kayobe_image.outputs.kayobe_image }} \
274
+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/fix-hostname.yml
275
+ env :
276
+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
277
+
278
+ # Reboot to Apply hostname change
279
+ - name : Reboot
280
+ run : |
281
+ docker run -t --rm \
282
+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
283
+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
284
+ ${{ steps.kayobe_image.outputs.kayobe_image }} \
285
+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/playbook-run.sh etc/kayobe/ansible/reboot.yml -e reboot_with_bootstrap_user=true
286
+ env :
287
+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
288
+
267
289
- name : Run growroot
268
290
run : |
269
291
docker run -t --rm \
@@ -304,10 +326,29 @@ jobs:
304
326
env :
305
327
KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
306
328
329
+ - name : Change rabbit queues from HA to Quorum
330
+ run : |
331
+ sed -i -e 's/om_enable_rabbitmq_high_availability: true/om_enable_rabbitmq_high_availability: false/' \
332
+ -e 's/om_enable_rabbitmq_quorum_queues: false/om_enable_rabbitmq_quorum_queues: true/' \
333
+ etc/kayobe/environments/ci-aio/kolla/globals.yml
334
+ if : inputs.upgrade
335
+
336
+ - name : Migrate RabbitMQ queues
337
+ run : |
338
+ docker run -t --rm \
339
+ -v $(pwd):/stack/kayobe-automation-env/src/kayobe-config \
340
+ -e KAYOBE_ENVIRONMENT -e KAYOBE_VAULT_PASSWORD -e KAYOBE_AUTOMATION_SSH_PRIVATE_KEY \
341
+ ${{ steps.kayobe_image.outputs.kayobe_image }} \
342
+ /stack/kayobe-automation-env/src/kayobe-config/.automation/pipeline/script-run.sh tools/rabbitmq-quorum-migration.sh
343
+ env :
344
+ KAYOBE_AUTOMATION_SSH_PRIVATE_KEY : ${{ steps.ssh_key.outputs.ssh_key }}
345
+ if : inputs.upgrade
346
+
307
347
# If testing upgrade, checkout the current release branch
308
348
# Stash changes to tracked files, and set clean=false to avoid removing untracked files.
349
+ # Revert changes to RabbitMQ Queue types to avoid a merge conflict
309
350
- name : Stash config changes
310
- run : git stash
351
+ run : git restore etc/kayobe/environments/ci-aio/kolla/globals.yml && git stash
311
352
if : inputs.upgrade
312
353
313
354
- name : Checkout current release config
0 commit comments