summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuo Ruijing <ruijing.guo@intel.com>2017-05-14 15:38:19 -0700
committerGuo Ruijing <ruijing.guo@intel.com>2017-05-14 15:41:20 -0700
commita9f2e5880c4177810f933a4bc8af933803e27552 (patch)
tree31f2ae737f362ea4b039d9eda44fe825b624a9d0
parented4e8b6ac4636af8dae71809dff71b8259ed936f (diff)
add define for virsh
Change-Id: I5035b9162e0e49a710a47564bfb79aaf6f31b57e Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
-rwxr-xr-xci/03-maasdeploy.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/03-maasdeploy.sh b/ci/03-maasdeploy.sh
index 7aa5ef41..e5e203e7 100755
--- a/ci/03-maasdeploy.sh
+++ b/ci/03-maasdeploy.sh
@@ -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 \