os-xenapi: change dom0 uuid get function
The control domain id of slave nodes in xenserver pools is not 0, so the old cmd would fail. Change the cmd to fix it. Change-Id: I2814a1421fd5825d88609057b48fa61254a944cc Closes-Bug: #1783238
This commit is contained in:
parent
5e6c2740ec
commit
12c68d0210
@ -174,7 +174,7 @@ append_kernel_cmdline "$DEV_STACK_DOMU_NAME" "flat_network_bridge=${FLAT_NETWORK
|
||||
if [ "$DISABLE_JOURNALING" = "true" ]; then
|
||||
vm_vbd=$(xe vbd-list vm-name-label=$DEV_STACK_DOMU_NAME --minimal)
|
||||
vm_vdi=$(xe vdi-list vbd-uuids=$vm_vbd --minimal)
|
||||
dom_zero_uuid=$(xe vm-list dom-id=0 resident-on=$host_uuid --minimal)
|
||||
dom_zero_uuid=$(xe host-param-get param-name=control-domain-uuid uuid=$host_uuid)
|
||||
tmp_vbd=$(xe vbd-create device=autodetect bootable=false mode=RW type=Disk vdi-uuid=$vm_vdi vm-uuid=$dom_zero_uuid)
|
||||
xe vbd-plug uuid=$tmp_vbd
|
||||
sr_id=$(get_local_sr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user