modified the yaml on request from David from Orange so that 29/4229/3
authorNarinder Gupta <narinder.gupta@canonical.com>
Thu, 10 Dec 2015 21:02:15 +0000 (15:02 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 11 Dec 2015 12:09:34 +0000 (06:09 -0600)
devices option can be modified to format the osd device.
modified deploy.sh so that return value is positive.

Change-Id: Idc94f4a99889df88bfae6446ce212050a570d30a

ci/deploy.sh
ci/nosdn/juju-deployer/ovs-ha.yaml
ci/nosdn/juju-deployer/ovs-tip.yaml
ci/nosdn/juju-deployer/ovs.yaml
ci/odl/juju-deployer/ovs-odl-ha.yaml
ci/odl/juju-deployer/ovs-odl-tip.yaml
ci/odl/juju-deployer/ovs-odl.yaml
ci/opencontrail/juju-deployer/contrail-ha.yaml
ci/opencontrail/juju-deployer/contrail-tip.yaml
ci/opencontrail/juju-deployer/contrail.yaml

index 92d17e2..1280625 100755 (executable)
@@ -77,10 +77,20 @@ deploy() {
 }
 
 check_status() {
-    while [ $? -eq 0 ]; do
-       sleep 60
-       echo " still executing the reltionship within charms ..."
-       juju status | grep executing > /dev/null
+    retval=0
+    timeoutiter=0
+    while [ $retval -eq 0 ]; do
+       sleep 30
+       juju status > status.txt 
+       if [ "$(grep -c "executing" status.txt )" -ge 1 ]; then
+           echo " still executing the reltionship within charms ..."
+           if [ $timeoutiter -ge 60 ] then
+               retval=1
+           fi
+           timeoutiter=$((timeoutiter+1))
+       else
+           retval=1
+       fi
     done
     echo "...... deployment finishing ......."
 }
index f315876..d814965 100644 (file)
@@ -92,7 +92,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1        
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index d944b85..66d66d5 100644 (file)
@@ -52,7 +52,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index 62d43bc..01f3704 100644 (file)
@@ -52,7 +52,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1        
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index f973f0c..4b02f70 100644 (file)
@@ -92,7 +92,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1        
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index 3066ef3..ee62621 100644 (file)
@@ -52,7 +52,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index 0ab46c7..e67929d 100644 (file)
@@ -52,7 +52,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1        
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index cbe6b66..686ba84 100644 (file)
@@ -109,7 +109,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index a329dc6..da32c8f 100644 (file)
@@ -63,7 +63,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to:
index c9770df..ec58c05 100644 (file)
@@ -63,7 +63,7 @@ openstack-phase2:
         monitor-secret: AQAi5a9UeJXUExAA+By9u+GPhl8/XiUQ4nwI3A==
         osd-devices: /srv
         monitor-count: 1
-#        osd-reformat: 'yes'
+        osd-reformat: 'no'
 #        ceph-cluster-network: 192.168.0.0/24
 #        ceph-public-network: 192.168.0.0/24
       to: