Can not start VM migration to other pool from XOA
-
When I start a migration of a VM from one pool to the other, I got the following error.
id "0m2vs9n41" properties method "vm.migrate" params mapVdisSrs c943a1e8-4f48-4127-8ab3-53c90e999d42 "66fc4777-39d5-48de-79fd-4ef489d1267e" mapVifsNetworks 023926a5-88e1-1ae8-0dec-53be015876ec "863a34d3-e7f4-585f-ec8f-9fcbad68d8ca" 9d446505-bc89-cb64-a443-d2e674cea6bf "2f1dbbb9-7a3a-e327-c332-6a69ea962392" migrationNetwork "0fc3ada6-5df3-7f95-bae2-6e7e7de34a21" sr "66fc4777-39d5-48de-79fd-4ef489d1267e" targetHost "9fdcfa08-3155-4f21-9db1-5854d5517f14" vm "42caf63a-d9cb-1b55-c214-ad0aee29b527" name "API call: vm.migrate" userId "9b0fe680-c0f0-444d-9392-5b78154796e0" type "api.call" start 1730287105345 status "failure" updatedAt 1730287105497 end 1730287105497 result code "VDI_NOT_IN_MAP" params 0 "OpaqueRef:2806f8f1-9bd0-49da-8355-d17e3d2a4eba" task uuid "3c4d30d9-8ca4-4363-ee2e-a60900185d97" name_label "Async.VM.assert_can_migrate" name_description "" allowed_operations [] current_operations {} created "20241030T11:18:25Z" finished "20241030T11:18:25Z" status "failure" resident_on "OpaqueRef:685b98b6-758d-4171-a75b-5bebe43be748" progress 1 type "<none/>" result "" error_info 0 "VDI_NOT_IN_MAP" 1 "OpaqueRef:2806f8f1-9bd0-49da-8355-d17e3d2a4eba" other_config {} subtask_of "OpaqueRef:NULL" subtasks [] backtrace "(((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" message "VDI_NOT_IN_MAP(OpaqueRef:2806f8f1-9bd0-49da-8355-d17e3d2a4eba)" name "XapiError" stack "XapiError: VDI_NOT_IN_MAP(OpaqueRef:2806f8f1-9bd0-49da-8355-d17e3d2a4eba)\n at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12)\n at default (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_getTaskResult.mjs:13:29)\n at Xapi._addRecordToCache (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1041:24)\n at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1075:14\n at Array.forEach (<anonymous>)\n at Xapi._processEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1065:12)\n at Xapi._watchEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1238:14)"
Migrating from XCP-ng is not a problem.
-
Check if you have left an ISO in the CD drive.
-
No ISO in the CD drive.
I tried this with different VM's, all with the same error: "VDI_NOT_IN_MAP"
-
Do you have snapshots on this VM?
-
Yes, all VM's have about 5 snapshots.
-
I would strongly advise to remove the VM snapshot before migrating it.
-
No snaps available, problem persists
vm.migrate { "mapVdisSrs": { "5ebca28b-e870-4475-87b3-19a3ba6cff81": "70895525-ee2e-659b-970f-d43ea3a5991a" }, "mapVifsNetworks": { "0648c623-a09c-ee65-4d43-c008315c2bbc": "21166b7f-048e-be22-8d8d-38e6695ad8c6", "28a137b5-3b56-6549-dd20-b51c9ce9aced": "863a34d3-e7f4-585f-ec8f-9fcbad68d8ca", "af156628-b126-6845-009f-9ff8ae325ec0": "21166b7f-048e-be22-8d8d-38e6695ad8c6" }, "migrationNetwork": "0fc3ada6-5df3-7f95-bae2-6e7e7de34a21", "sr": "70895525-ee2e-659b-970f-d43ea3a5991a", "targetHost": "9fdcfa08-3155-4f21-9db1-5854d5517f14", "vm": "eeac308a-0fa5-9e24-d7af-b3eb44cbc616" } { "code": "VDI_NOT_IN_MAP", "params": [ "OpaqueRef:3244cfb3-e6cf-4587-916f-21f07c65ddf6" ], "task": { "uuid": "e660f16a-70bd-a387-30ca-9437bb9c2f91", "name_label": "Async.VM.assert_can_migrate", "name_description": "", "allowed_operations": [], "current_operations": {}, "created": "20241030T15:51:22Z", "finished": "20241030T15:51:22Z", "status": "failure", "resident_on": "OpaqueRef:685b98b6-758d-4171-a75b-5bebe43be748", "progress": 1, "type": "<none/>", "result": "", "error_info": [ "VDI_NOT_IN_MAP", "OpaqueRef:3244cfb3-e6cf-4587-916f-21f07c65ddf6" ], "other_config": {}, "subtask_of": "OpaqueRef:NULL", "subtasks": [], "backtrace": "(((process xapi)(filename ocaml/xapi/rbac.ml)(line 205))((process xapi)(filename ocaml/xapi/server_helpers.ml)(line 95)))" }, "message": "VDI_NOT_IN_MAP(OpaqueRef:3244cfb3-e6cf-4587-916f-21f07c65ddf6)", "name": "XapiError", "stack": "XapiError: VDI_NOT_IN_MAP(OpaqueRef:3244cfb3-e6cf-4587-916f-21f07c65ddf6) at Function.wrap (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_XapiError.mjs:16:12) at default (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/_getTaskResult.mjs:13:29) at Xapi._addRecordToCache (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1041:24) at file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1075:14 at Array.forEach (<anonymous>) at Xapi._processEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1065:12) at Xapi._watchEvents (file:///usr/local/lib/node_modules/xo-server/node_modules/xen-api/index.mjs:1238:14)" }
- XO Server restarted from XOA: still a problem
- XOA server restarted (reboot): still a problem
-
Can you screenshot the "Disks" tab please?
-
-
Is your XOA up to date? Which release channel?
-
-
Can you screenshot the pop up menu when you do the migration?
edit: filled with your choices, just before clicking on "OK"
-
Before I have migrated 100+ systems this way, with the same options. Now, it suddenly quits with the error.
-
Could the "source" pool (Citrix Hypervisor) be the origin of this error?
-
The issue is there's a VDI that's not in the right map. It's hard to tell why without having a deeper look.