Unable to deploy rabbitmq on centOS 7 with "puppet apply"

asked 2018-11-06 01:17:57 -0600

I tried to deploy fuel with puppet, when deploying rabbitmq, it exit with the following message "The were failures while running task: rabbitmq with exit code: 6"

when digging deeper with the debug ouput, I found that the following message Debug: Executing '/usr/lib/rabbitmq/bin/rabbitmq-plugins list -E -m' Debug: Command failed, retrying

There are a lot of similar message till it reached timeout threshold "Error: /Stage[main]/Fuel::Rabbitmq/Rabbitmq_plugin[rabbitmq_stomp]: Could not evaluate: Command is still failing after 180 seconds expired!"

But if I run the command "/usr/lib/rabbitmq/bin/rabbitmq-plugins list -E -m" manually, there is no problem but it is quite slow (>5s), I guess it is puppet which doesn't have patience to wait the complete of the command and keep trying till time out.

I tried to upgrade the rabbitmq to the latest version, but it didn't help.

Any idea how to solve this problem? I'm stuck here for 2 days....

edit retag flag offensive close merge delete