summaryrefslogtreecommitdiffstats
path: root/ci/03-maasdeploy.sh
diff options
context:
space:
mode:
authorNarinder Gupta <narinder.gupta@canonical.com>2017-02-10 02:50:21 -0600
committerNarinder Gupta <narinder.gupta@canonical.com>2017-02-10 02:50:21 -0600
commit7fd0900c8d9bde13eeb0468a77370e047b5577ae (patch)
tree148ccd38e1f3865bc335d2469ebd1bd5cc729ab3 /ci/03-maasdeploy.sh
parentc951f38fedc34d32b47a93b46c2c07b94f4c3b08 (diff)
added to workaround MAAS bug where commisoning of node fails.
Change-Id: I021a0da8c0e6ac5b7c83ee7d8d152dd446d69924 Signed-off-by: Narinder Gupta <narinder.gupta@canonical.com>
Diffstat (limited to 'ci/03-maasdeploy.sh')
-rwxr-xr-xci/03-maasdeploy.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh
index fa1dbf78..436c2669 100755
--- a/ci/03-maasdeploy.sh
+++ b/ci/03-maasdeploy.sh
@@ -400,12 +400,20 @@ if [ "$virtinstall" -eq 1 ]; then
enablesubnetanddhcp
fi
+#reconfigure maas with correct MAAS address.
+#Below code is needed as MAAS have issue in commisoning without restart.
+sudo ./maas-reconfigure-rack.sh $MAAS_IP
+sudo ./maas-reconfigure-region.sh $MAAS_IP
+
# lets sleep for around 5 more minutes to make sure all images are in sync.
sleep 300
#lets add the nodes now. Currently works only for virtual deploymnet.
addnodes
+#take another 5 minutes to commision the nodes.
+sleep 300
+
echo "... Deployment of maas finish ...."
#Added the Qtip public to run the Qtip test after install on bare metal nodes.