delete pod if exist during maas deployment. 43/39543/1
authornarindergupta <narinder.gupta@canonical.com>
Thu, 17 Aug 2017 19:23:32 +0000 (14:23 -0500)
committernarindergupta <narinder.gupta@canonical.com>
Thu, 17 Aug 2017 19:23:32 +0000 (14:23 -0500)
Change-Id: Id045671934696ff96d46079c0f1a8e0ea2a172c2
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/03-maasdeploy.sh
ci/config_tpl/juju2/bundle_tpl/odl.yaml
ci/deploy.sh

index e741cd8..788454c 100755 (executable)
@@ -384,7 +384,8 @@ addnodes(){
     do
         maas $PROFILE machine delete $m
     done
-    maas $PROFILE pod delete 1 || true
+    podno=$(maas $PROFILE pods read | jq -r ".[]".id)
+    maas $PROFILE pod delete $podno || true
 
     # if we have a virshurl configuration we use it, else we use local
     VIRSHURL=$(cat labconfig.json | jq -r '.opnfv.virshurl')
index 0e3e1d8..2b12e6f 100644 (file)
@@ -5,7 +5,7 @@
       bindings:
         "": *oam-space
         controller-api: *internal-space
-        ovsdb-manager-api: *internal-space
+        ovsdb-manager: *internal-space
 {% endif %}
       options:
         install-url: "https://nexus.opendaylight.org/content/repositories/opendaylight.release/org/opendaylight/integration/distribution-karaf/0.6.0-Carbon/distribution-karaf-0.6.0-Carbon.tar.gz"
index 3985896..2792759 100755 (executable)
@@ -210,7 +210,8 @@ deploy() {
         do
             maas $PROFILE machine delete $m || true
         done
-        maas $PROFILE pod delete 1 || true
+        podno=$(maas $PROFILE pods read | jq -r ".[]".id)
+        maas $PROFILE pod delete $podno || true
 
         ./cleanvm.sh || true