Fix consul join prematurely problem 39/19639/1
authorLusheng Ji <lji@research.att.com>
Thu, 19 Oct 2017 04:14:58 +0000 (00:14 -0400)
committerLusheng Ji <lji@research.att.com>
Thu, 19 Oct 2017 04:15:07 +0000 (00:15 -0400)
Issue-Id: DCAEGEN2-128
Change-Id: Ife91f88000652a1ce1bde55d2c78dedce83f026a
Signed-off-by: Lusheng Ji <lji@research.att.com>
blueprints/consul_cluster.yaml-template

index 6bf9eaf..a4ae89e 100644 (file)
@@ -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