Skip to content

Commit 42bb2cc

Browse files
committed
Add RabbitMQ upgrade to 4.1 to upgrade prerequesite
1 parent 8aa31d7 commit 42bb2cc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/upgrade-prerequisites.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ function prechecks() {
1717
fi
1818
}
1919

20+
function rabbit_upgrade() {
21+
# Ensure RabbitMQ is upgraded to 4.1
22+
if kayobe overcloud host command run -l controllers -b --command "docker exec rabbitmq rabbitmqctl --version | grep -F 3.13." --show-output; then
23+
kayobe kolla ansible run "rabbitmq-upgrade 4.1"
24+
fi
25+
}
26+
2027
function rabbit_migration() {
2128
if kayobe overcloud host command run -l controllers -b --command "docker exec rabbitmq rabbitmqctl list_queues durable | grep false"; then
2229
# Set feature flaga, execute RabbitMQ queue migration script, unset feature flags (to avoid git conflicts)
@@ -43,3 +50,4 @@ function rabbit_migration() {
4350

4451
prechecks
4552
rabbit_migration
53+
rabbit_upgrade

0 commit comments

Comments
 (0)