Unable to convert VM to Template in Xen Orchestra ( VBD_IS_EMPTY )
-
Hello
Ive created a VM that Im converting to a template in Xen Orchestra (xo-server 5.113.0) but i get the following error.
The storage of the vm disk is an nfs share from TrueNAS scale mounted to a 3 node XCP-ng 8.2 cluster
I will note that i can convert to template in XCP-ng Center with no error.
My logs for the error is as follows
vm.convertToTemplate { "id": "e6b3db34-f90f-5a9d-16cf-aeaeaf27c55c" } { "code": "VBD_IS_EMPTY", "params": [ "OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70" ], "task": { "uuid": "ce2df32b-d7d6-ff50-f484-78e51d81fde7", "name_label": "Async.VBD.eject", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20230502T09:29:59Z", "finished": "20230502T09:29:59Z", "status": "failure", "resident_on": "OpaqueRef:b2fad3ee-05d6-474b-a3ec-47534ffb3627", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "VBD_IS_EMPTY", "OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/xapi_vbd_helpers.ml)(line 308))((process xapi)(filename ocaml/xapi/xapi_vbd_helpers.ml)(line 317))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 5190))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 199))((process xapi)(filename ocaml/xapi/message_forwarding.ml)(line 203))((process xapi)(filename lib/xapi-stdext-pervasives/pervasiveext.ml)(line 24))((process xapi)(filename ocaml/xapi/rbac.ml)(line 233))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 104)))" }, "message": "VBD_IS_EMPTY(OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70)", "name": "XapiError", "stack": "XapiError: VBD_IS_EMPTY(OpaqueRef:713ee863-59c8-464e-b9d3-2a5371c76c70) at Function.wrap (/home/serveradmin/xen-orchestra/packages/xen-api/src/_XapiError.js:16:12) at _default (/home/serveradmin/xen-orchestra/packages/xen-api/src/_getTaskResult.js:11:29) at Xapi._addRecordToCache (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:998:37) at forEach (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1032:14) at Array.forEach (<anonymous>) at Xapi._processEvents (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1022:12) at Xapi._watchEvents (/home/serveradmin/xen-orchestra/packages/xen-api/src/index.js:1195:14)" }
-
@josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1
-
So the conversion doesn't work?
To me, it's probably a stupid bug after we added a CD eject from template conversion. For the sake of testing, can you insert an ISO into the VM and then try to convert it into a template?
-
I'm pretty sure it's a case we forgot to check. See https://github.com/vatesfr/xen-orchestra/pull/6769/files
-
@olivierlambert I'm on it
-
@olivierlambert Morning i will clone the same VM and try to conversion with an iso installed.
Will update this post in the next few hours
-
Conversion in Xen orchestra works with the clone of the VM and the guest iso installed
-
Julien will release a fix in
master
soon -
Roger Roger
-
@brodiecyber I've had this issue also. I found another workaround for this is to create a snapshot of the VM then convert the snapshot to a template . This worked without any ISO mounted.
-
I think this is fixed now
-
@josh383451 The bug was fixed 3 days ago: https://github.com/vatesfr/xen-orchestra/commit/73d88cc5f1a5458c68e6935a9d5a9240616007b1
-
-