Add retries for rabbitmqadmin curl command
W/o this patch, Rabbitmq::Install::Rabbitmqadmin sometimes fails to install the rabbitmqadmin script if there are some connectivity (which is non-transient) errors. The solution is to add retries for exec command as curl allows retries only for transient errors and fails for connectivity errors. Closes-bug: #1412712 Related-bug: #1410119 Change-Id: I681599ea4a2756e7a442c194c68cf0a484f24f7f Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
This commit is contained in:
parent
713c400f72
commit
47e89058bf
@ -18,6 +18,8 @@ class rabbitmq::install::rabbitmqadmin {
|
|||||||
curl_option => '-k --noproxy localhost --retry 30 --retry-delay 6',
|
curl_option => '-k --noproxy localhost --retry 30 --retry-delay 6',
|
||||||
timeout => '180',
|
timeout => '180',
|
||||||
wget_option => '--no-proxy',
|
wget_option => '--no-proxy',
|
||||||
|
tries => 30,
|
||||||
|
try_sleep => 6,
|
||||||
require => [
|
require => [
|
||||||
Class['rabbitmq::service'],
|
Class['rabbitmq::service'],
|
||||||
Rabbitmq_plugin['rabbitmq_management']
|
Rabbitmq_plugin['rabbitmq_management']
|
||||||
|
Loading…
Reference in New Issue
Block a user