fixed cloud-prepare-upgrade.sh

This commit is contained in:
anthony 2011-07-28 15:03:39 -07:00
parent b63bee2d9a
commit 6620d39b7e

View File

@ -14,7 +14,7 @@ do
do
tagpif=$(xe pif-list network-uuid=$network host-uuid=$host --minimal)
if [ -z $tagpif ]; then
pif=$(xe pif-list host-uuid=$host device=$device --minimal)
pif=$(xe pif-list host-uuid=$host device=$device VLAN=-1 --minimal)
xe vlan-create network-uuid=$network pif-uuid=$pif vlan=$vlan
fi
done
@ -34,7 +34,8 @@ fake_pv_driver() {
echo "Warning VM $vm is HVM, but PV driver is not installed, you may need to stop it manually"
return 0
fi
make_migratable.sh $vm
host=$(xe vm-param-get uuid=$vm param-name=resident-on)
xe host-call-plugin host-uuid=$host plugin=vmops fn=preparemigration args:uuid=$vm
}