do the cleanup before deploy maas. 77/7777/1
authorNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 19:15:06 +0000 (13:15 -0600)
committerNarinder Gupta <narinder.gupta@canonical.com>
Fri, 22 Jan 2016 19:55:02 +0000 (19:55 +0000)
Change-Id: I32cccfb5cc9c9a0a6684ccfb0dbafb18c622bfb8
(cherry picked from commit f0b14493be07ef69ae237baefc486b9a45613688)

ci/02-maasdeploy.sh
ci/cleanvm.sh [changed mode: 0644->0755]

index f05d1f5..bc719f8 100755 (executable)
@@ -22,6 +22,7 @@ case "$1" in
         ;;
     * )
         virtinstall=1
+        ./cleanvm.sh
         cp maas/default/deployment.yaml ./deployment.yaml
         ;;
 esac
@@ -134,7 +135,7 @@ apikey=`grep maas-oauth: environments.yaml | cut -d "'" -f 2`
 maas login maas http://${maas_ip}/MAAS/api/1.0 ${apikey}
 maas maas boot-source update 1 url="http://maas.ubuntu.com/images/ephemeral-v2/daily/"
 #maas maas boot-source-selections create 1 os="ubuntu" release="precise" arches="amd64" subarches="*" labels="*"
-maas maas boot-resources import
+maas maas node-groups import-boot-images
 maas maas sshkeys new key="`cat $HOME/.ssh/id_rsa.pub`"
 
 #Added the Qtip public to run the Qtip test after install on bare metal nodes.
old mode 100644 (file)
new mode 100755 (executable)