add define for virsh 39/34739/1
authorGuo Ruijing <ruijing.guo@intel.com>
Sun, 14 May 2017 22:38:19 +0000 (15:38 -0700)
committerGuo Ruijing <ruijing.guo@intel.com>
Sun, 14 May 2017 22:41:20 +0000 (15:41 -0700)
Change-Id: I5035b9162e0e49a710a47564bfb79aaf6f31b57e
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
ci/03-maasdeploy.sh

index 7aa5ef4..e5e203e 100755 (executable)
@@ -402,7 +402,7 @@ addnodes(){
                      $netw $netw --boot network,hd,menu=off --noautoconsole --vnc --print-xml | tee $NODE_NAME
 
             nodemac=`grep  "mac address" $NODE_NAME | head -1 | cut -d '"' -f 2`
-            sudo virsh -c $VIRSHURL --file $NODE_NAME
+            sudo virsh -c $VIRSHURL define --file $NODE_NAME
             rm -f $NODE_NAME
             maas $PROFILE machines create autodetect_nodegroup='yes' name=$NODE_NAME \
                 tags='control compute' hostname=$NODE_NAME power_type='virsh' mac_addresses=$nodemac \