Skip to content
Snippets Groups Projects
Commit be2e353d authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "RabbitMQ use maintenance mode on container restart"

parents 4b27d19b e709599f
No related branches found
No related tags found
No related merge requests found
---
- name: Get info on RabbitMQ container
become: True
kolla_container_facts:
container_engine: "{{ kolla_container_engine }}"
name: "rabbitmq"
register: container_info
- name: Put RabbitMQ node into maintenance mode
kolla_toolbox:
container_engine: "{{ kolla_container_engine }}"
module_name: "community.rabbitmq.rabbitmq_upgrade"
module_args:
action: "drain"
user: root
become: true
when: container_info._containers | length > 0
- name: Restart rabbitmq container
vars:
service_name: "rabbitmq"
......
---
features:
- |
When restarting a RabbitMQ container, the node is now first put into
maintenance mode. This will make the node shutdown less disruptive. For
details on what maintenance mode does, see:
https://www.rabbitmq.com/upgrade.html#maintenance-mode
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment