From dae872dcf4dfa3327ee9a089b3a1124b769ff2b8 Mon Sep 17 00:00:00 2001 From: Lusheng Ji Date: Thu, 19 Oct 2017 00:14:58 -0400 Subject: Fix consul join prematurely problem Issue-Id: DCAEGEN2-128 Change-Id: Ife91f88000652a1ce1bde55d2c78dedce83f026a Signed-off-by: Lusheng Ji --- blueprints/consul_cluster.yaml-template | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blueprints/consul_cluster.yaml-template b/blueprints/consul_cluster.yaml-template index 6bf9eaf..a4ae89e 100644 --- a/blueprints/consul_cluster.yaml-template +++ b/blueprints/consul_cluster.yaml-template @@ -199,9 +199,11 @@ node_templates: - concat: - 'until /opt/consul/bin/consul join ' - { get_attribute: [host_cnsl01, ip] } - - ' ' + - '; do sleep 5; done; ' + - concat: + - 'until /opt/consul/bin/consul join ' - { get_attribute: [host_cnsl02, ip]} - - '; do sleep 15; done' + - '; do sleep 5; done' relationships: - type: cloudify.openstack.server_connected_to_port -- cgit 1.2.3-korg