modified to correct the error ID failed in case of error. 89/33989/1
authornarindergupta <narinder.gupta@canonical.com>
Fri, 28 Apr 2017 09:29:24 +0000 (11:29 +0200)
committernarindergupta <narinder.gupta@canonical.com>
Fri, 28 Apr 2017 09:30:02 +0000 (11:30 +0200)
Change-Id: I669aeccd0ceef758fa9eee87d46426bd6a78230b
Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
ci/03-maasdeploy.sh
labconfig/lenovo/pod1/labconfig.yaml

index 505e167..8523950 100755 (executable)
@@ -654,8 +654,10 @@ if [ -e ./labconfig.json ]; then
                 IF_MACLOWER=$( cat labconfig.json | jq ".lab.racks[0].nodes[$NODE_ID].nics[] | select(.ifname==\"$IF_NEWNAME\")".mac[0])
                 IF_MAC=(${IF_MACLOWER,,})
                 IF_ID=$( maas ubuntu interfaces read $NODE_SYS_ID | jq ".[] | select(.mac_address==$IF_MAC)".id)
-                maas $PROFILE interface update $NODE_SYS_ID $IF_ID name=$IF_NEWNAME
-                IF_NAME=$IF_NEWNAME
+                if ([ $IF_ID ] && [ "$IF_ID" != "null" ]); then
+                    maas $PROFILE interface update $NODE_SYS_ID $IF_ID name=$IF_NEWNAME
+                    IF_NAME=$IF_NEWNAME
+                fi
             fi
 
             # In case of a VLAN interface
index 5affb0e..3e9cfec 100644 (file)
@@ -7,12 +7,12 @@ lab:
       architecture: x86_64
       roles: [network,control]
       nics:
-      - ifname: ens1f0
+      - ifname: intf100
         spaces: [admin]
         mac: ["24:8a:07:3f:84:ac"]
-      - ifname: ens1f1
-        spaces: [public]
-        mac: ["90:E2:BA:85:4E:2D"]
+      - ifname: intf101
+        spaces: [floating]
+        mac: ["24:8a:07:3f:84:ad"]
       power:
         type: ipmi
         address: 192.0.5.125
@@ -22,12 +22,12 @@ lab:
       architecture: x86_64
       roles: [compute,control,storage]
       nics:
-      - ifname: ens1f0
+      - ifname: intf100
         spaces: [admin]
         mac: ["24:8a:07:3f:96:86"]
-      - ifname: ens1f1
-        spaces: [public]
-        mac: ["90:E2:BA:84:08:B9"]
+      - ifname: intf101
+        spaces: [floating]
+        mac: ["24:8a:07:3f:96:87"]
       power:
         type: ipmi
         address: 192.0.5.126
@@ -37,12 +37,12 @@ lab:
       architecture: x86_64
       roles: [compute,control,storage]
       nics:
-      - ifname: ens1f0
+      - ifname: intf100
         spaces: [admin]
         mac: ["24:8a:07:3f:95:b6"]
-      - ifname: ens1f1
-        spaces: [public]
-        mac: ["90:E2:BA:84:07:0E"]
+      - ifname: intf101
+        spaces: [floating]
+        mac: ["24:8a:07:3f:95:b7"]
       power:
         type: ipmi
         address: 192.0.5.127
@@ -52,34 +52,34 @@ lab:
       architecture: x86_64
       roles: [compute,storage]
       nics:
-      - ifname: ens1f0
+      - ifname: intf100
         spaces: [admin]
         mac: ["24:8a:07:3f:96:4e"]
-      - ifname: ens1f1
-        spaces: [public]
-        mac: ["90:E2:BA:83:FD:81"]
+      - ifname: intf101
+        spaces: [floating]
+        mac: ["24:8a:07:3f:96:4f"]
       power:
         type: ipmi
         address: 192.0.5.128
         user: USERID
         pass: PASSW0RD
-#    - name: rack-1-m5
-#      architecture: x86_64
-#      roles: [compute,storage]
-#      nics:
-#      - ifname: ens1f0
-#        spaces: [admin]
-#        mac: ["00:1E:67:E0:0A:4B"]
-#      - ifname: ens1f1
-#        spaces: [public]
-#        mac: ["90:E2:BA:75:22:75"]
-#      power:
-#        type: ipmi
-#        address: 192.0.5.129
-#        user: USERID
-#        pass: PASSW0RD
+    - name: rack-1-m5
+      architecture: x86_64
+      roles: [compute,storage]
+      nics:
+      - ifname: intf100
+        spaces: [admin]
+        mac: ["00:1E:67:E0:0A:4B"]
+      - ifname: intf101
+        spaces: [floating]
+        mac: ["00:1E:67:E0:0A:4C"]
+      power:
+        type: ipmi
+        address: 192.0.5.129
+        user: USERID
+        pass: PASSW0RD
     floating-ip-range: 172.21.159.6,172.21.159.100,172.21.159.1,172.21.159.0/24
-    ext-port: "br-ens1f1"
+    ext-port: "br-intf101"
     dns: 8.8.8.8
     osdomainname:
 opnfv:
@@ -99,7 +99,7 @@ opnfv:
       cidr: 192.0.5.0/24
       gateway: 192.0.5.5
       vlan:
-    - type: public
+    - type: floating
       bridge: brPublic
       cidr: 172.21.159.0/24
       gateway: 172.21.159.1