do the cleanup before deploy maas.
[joid.git] / ci / 02-maasdeploy.sh
index 90d06d9..72c2c61 100755 (executable)
@@ -25,6 +25,7 @@ case "$1" in
         ;;
     * )
         virtinstall=1
+        ./cleanvm.sh
         cp maas/default/deployment.yaml ./deployment.yaml
         ;;
 esac
@@ -138,7 +139,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.