Comment 14 for bug 1449056

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

Reviewed: https://review.openstack.org/186641
Committed: https://git.openstack.org/cgit/openstack-dev/devstack/commit/?id=6bc905c3488a93fa87776bcd0af7e362a90b082f
Submitter: Jenkins
Branch: master

commit 6bc905c3488a93fa87776bcd0af7e362a90b082f
Author: Tony Breeds <email address hidden>
Date: Fri May 15 12:51:43 2015 +1000

    Change the restart_rpc_backend loop to accomodate async rabbitmq

    Some distros have converted to systemd for starting RabbitMQ. This has
    resulted in:
    ---
    [Call Trace]
    ./stack.sh:904:restart_rpc_backend
    /home/stack/projects/openstack/openstack-dev/devstack/lib/rpc_backend:201:die
    [ERROR] /home/stack/projects/openstack/openstack-dev/devstack/lib/rpc_backend:201 Failed to set rabbitmq password
    Error on exit
    World dumping... see /opt/stack/logs/worlddump-2015-05-29-031618.txt for details
    ---

    Because 'restart_service rabbitmq-server' returns before the server is ready to
    accept connections.

    Alter the retry loop to only restart the rabbitmq-server every second time
    through the loop. Allowing time for the slow rabbit to start.

    Closes-Bug: 1449056
    Change-Id: Ibb291c1ecfd109f9ed10b5f194933364985cc1ce