rabbitmq-server startup timeouts differ between SysV and systemd
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rabbitmq-server (Debian) |
Fix Released
|
Unknown
|
|||
rabbitmq-server (Ubuntu) |
Fix Released
|
Low
|
Nicolas Bock | ||
Xenial |
Fix Released
|
Low
|
Nicolas Bock | ||
Bionic |
Fix Released
|
Low
|
Nicolas Bock | ||
Eoan |
Won't Fix
|
Undecided
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Nicolas Bock | ||
Groovy |
Fix Released
|
Low
|
Nicolas Bock |
Bug Description
The startup timeouts were recently adjusted and synchronized between the SysV and systemd startup files.
https:/
The new startup files should be included in this package.
[Impact]
After starting the RabbitMQ server process, the startup script will wait for the server to start by calling `rabbitmqctl wait` and will time out after 10 s.
The startup time of the server depends on how quickly the Mnesia database becomes available and the server will time out after `mnesia_
The mismatch between these two timeout values might lead to the startup script failing prematurely while the server is still waiting for the Mnesia tables.
This change introduces variable `RABBITMQ_
This change also updates the systemd service file to match the timeout values between the two service management methods.
[Scope]
Upstream patch: https:/
* Fix is not included in the Debian package
* Fix is not included in any Ubuntu series
* Groovy and Focal can apply the upstream patch as is
* Bionic and Xenial need an additional fix in the systemd service file
to set the `RABBITMQ_
`rabbitmq-
[Test Case]
In a clustered setup with two nodes, A and B.
1. create queue on A
2. shut down B
3. shut down A
4. boot B
The broker on B will wait for A. The systemd service will wait for 10 seconds and then fail. Boot A and the rabbitmq-server process on B will complete startup.
[Regression Potential]
This change alters the behavior of the startup scripts when the Mnesia database takes long to become available. This might lead to failures further down the service dependency chain.
Changed in rabbitmq-server (Ubuntu): | |
assignee: | nobody → Nicolas Bock (nicolasbock) |
importance: | Undecided → Low |
Changed in rabbitmq-server (Ubuntu Eoan): | |
assignee: | nobody → Nicolas Bock (nicolasbock) |
Changed in rabbitmq-server (Ubuntu Bionic): | |
assignee: | nobody → Nicolas Bock (nicolasbock) |
Changed in rabbitmq-server (Ubuntu Xenial): | |
assignee: | nobody → Nicolas Bock (nicolasbock) |
description: | updated |
tags: | added: sts |
Changed in rabbitmq-server (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in rabbitmq-server (Ubuntu Bionic): | |
status: | New → In Progress |
Changed in rabbitmq-server (Ubuntu Eoan): | |
status: | New → In Progress |
Changed in rabbitmq-server (Ubuntu Focal): | |
status: | New → In Progress |
Changed in rabbitmq-server (Ubuntu Eoan): | |
assignee: | Nicolas Bock (nicolasbock) → nobody |
importance: | Low → Undecided |
tags: | added: sts-sponsor-ddstreet |
description: | updated |
Changed in rabbitmq-server (Debian): | |
status: | Unknown → New |
Changed in rabbitmq-server (Ubuntu Groovy): | |
assignee: | James Page (james-page) → nobody |
tags: |
added: verification-failed-bionic removed: verification-needed-bionic |
tags: |
added: sts-sponsor removed: sts-sponsor-ddstreet |
tags: | removed: sts-sponsor |
Changed in rabbitmq-server (Debian): | |
status: | New → Fix Released |
Thanks for your patch Nicolas.
As discussed, Focal (20.04 LTS) is transitionning from development to stable. If this fix is not release critical (which seems to be the case), we may need to wait a little bit.
We will sponsor right after the transition ends.
Meanwhile could you please:
* Add the SRU template that I cut/paste for you in the description above.
* Rework your changelog block following the feedbacks I have provided you.
* Produce debdiff(s) for all other impacted supported releases and attach them to the bug.
- Eric