Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
be2e353d
Commit
be2e353d
authored
2 years ago
by
Zuul
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "RabbitMQ use maintenance mode on container restart"
parents
4b27d19b
e709599f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ansible/roles/rabbitmq/tasks/restart_services.yml
+17
-0
17 additions, 0 deletions
ansible/roles/rabbitmq/tasks/restart_services.yml
releasenotes/notes/rabbitmq-use-maintenance-mode-on-restart-a25659b9269c82b5.yaml
+7
-0
7 additions, 0 deletions
...tmq-use-maintenance-mode-on-restart-a25659b9269c82b5.yaml
with
24 additions
and
0 deletions
ansible/roles/rabbitmq/tasks/restart_services.yml
+
17
−
0
View file @
be2e353d
---
-
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"
...
...
This diff is collapsed.
Click to expand it.
releasenotes/notes/rabbitmq-use-maintenance-mode-on-restart-a25659b9269c82b5.yaml
0 → 100644
+
7
−
0
View file @
be2e353d
---
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment