From 25775aa8b34dd9bbe5568fdd175223d7f1260f10 Mon Sep 17 00:00:00 2001 From: Vic Iglesias Date: Tue, 3 Jun 2014 01:12:35 -0700 Subject: [PATCH] Add retry to cc registration --- recipes/register-components.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/register-components.rb b/recipes/register-components.rb index f45561f..2563af3 100644 --- a/recipes/register-components.rb +++ b/recipes/register-components.rb @@ -45,6 +45,8 @@ execute "Register CC" do command "#{euca_conf} --register-cluster -P #{cluster} -H #{cc_ip} -C #{cluster}-cc-1 #{dont_sync_keys}" not_if "euca-describe-services | grep #{cluster}-cc-1" + retries 5 + retry_delay 10 end if info["sc-1"] == "" sc_ip = node['ipaddress']