Bug 1059913
| Summary: | Race condition creating .erlang.cookie | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | John Eckersberg <jeckersb> | ||||||
| Component: | rabbitmq-server | Assignee: | Richard W.M. Jones <rjones> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 20 | CC: | apevec, erlang, hubert.plociniczak, lemenkov, rjones, skottler | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | rabbitmq-server-3.1.5-5.fc20 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1103524 (view as bug list) | Environment: | |||||||
| Last Closed: | 2014-04-14 22:47:32 UTC | Type: | Bug | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1103524 | ||||||||
| Attachments: |
|
||||||||
|
Description
John Eckersberg
2014-01-30 23:03:23 UTC
Created attachment 857656 [details]
journalctl output from failed rabbitmq-server startup
Created attachment 857863 [details]
rabbitmq-server-cookie-race.patch
This patch updates the systemd service to run `rabbitmqctl status` before starting the rabbitmq-server process. This ensures the erlang cookie is created before starting the service.
I performed the steps given in the bug description and the patch works for me in a Rawhide VM. The patch also looks reasonable to me and low risk, so I'm going to backport it to Fedora 20. rabbitmq-server-3.1.5-5.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/rabbitmq-server-3.1.5-5.fc20 Package rabbitmq-server-3.1.5-5.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rabbitmq-server-3.1.5-5.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-4722/rabbitmq-server-3.1.5-5.fc20 then log in and leave karma (feedback). I'll merge rawhide into EPEL7 when I'm at a machine with my certs on it. Instead of messing with ExecStartPost, it would be more reliable to switch systemd service to Type=notify just need someone familiar with rabbitmq to tell us where to put sd_notify to send notification when service is ready. rabbitmq-server-3.1.5-5.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |