Files
openstack-ansible-rabbitmq_…/tasks/rabbitmq_cluster_join.yml
Markos Chandras aec44599f8 rabbitmq_cluster_join: Retry if starting the RabbitMQ application fails
Sometimes starting the RabbitMQ application could fail with the
following error:

container2:~ # rabbitmqctl start_app
Starting node rabbit@container2 ...

BOOT FAILED
===========

Error description:
   enoent

Log files (may contain more information):
   /var/log/rabbitmq/rabbit@container2.log
   /var/log/rabbitmq/rabbit@container2-sasl.log

Stack trace:
   [{erlang,open_port,
            [{spawn_executable,false},
             [{args,["unix-sendto:/run/systemd/notify","STDIO"]},
              use_stdio,out]],
            []},
    {rabbit,sd_open_port,0,[{file,"src/rabbit.erl"},{line,345}]},
    {rabbit,sd_notify_socat,1,[{file,"src/rabbit.erl"},{line,351}]},
    {rabbit,maybe_sd_notify,0,[{file,"src/rabbit.erl"},{line,291}]},
    {rabbit,broker_start,0,[{file,"src/rabbit.erl"},{line,283}]},
    {rabbit,start_it,1,[{file,"src/rabbit.erl"},{line,403}]}]

Error: enoent

This seems to go away if we retry so it's probably a race condition
somewhere. As such, try a few more times before giving up.

Change-Id: I7b9a6f6cedd5e9a6494e4a2ca129601638cfafd5
2017-06-20 15:35:02 +01:00

1.6 KiB