Devstack installation on Ubuntu 15.04 fails due to rabbitmq restart failure

Bug #1458525 reported by Veena
This bug report is a duplicate of:  Bug #1449056: rabbitmq not ready after restart. Edit Remove
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
devstack
In Progress
Undecided
Veena

Bug Description

Installation devstack on Ubuntu 15.04 fails because of the failure to restart rabbitmq server.
The check to restart rabbitmq server in case of Fedora and Suse was removed and was made to restart always. This fails on Ubuntu 15.04. The error is
+sudo /usr/sbin/service rabbitmq-server restart
+ rabbit_setuser stackrabbit password
+ local user=stackrabbit pass=password found= out=
++ sudo rabbitmqctl list_users
 Error: rabbit application is not running on node rabbit@myserver
 * Suggestion: start it with "rabbitmqctl start_app" and try again
 + out=
 + echo 'failed to list users'
failed to list users

Veena (mveenasl)
Changed in devstack:
assignee: nobody → Veena (mveenasl)
Revision history for this message
Jin Hui (jinhuihh) wrote :

the possible reason is rabbitmq service is still (sudo /usr/sbin/service rabbitmq-server restart) not restarted completed when "rabbitmqctl list_users" is been executed. So you can try to simply add 'sleep 2s' before 'list_users' (you can find it in rpc_backend.rabbit_setuser). hope it is helpful to you.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to devstack (master)

Fix proposed to branch: master
Review: https://review.openstack.org/186334

Changed in devstack:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on devstack (master)

Change abandoned by Ian Wienand (<email address hidden>) on branch: master
Review: https://review.openstack.org/186334
Reason: The same thing keeps coming up ... please consolidate work on this in Icebafc06859f8879c584cfd67aa51cb0c9ce48af

In short, I think we need to root-cause that this isn't a problem with the upstream init scripts

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.