-
Bug
-
Resolution: Unresolved
-
Blocker
-
2.11.0
Description of problem:
Migration with migrateSharedDisks:false fails at ImageConversion (guest conversion) phase. virt-v2v receives domain XML containing shared disk references, but the shared disk files are not mounted to the virt-v2v pod, causing qemu-nbd to fail with "No such file or directory".
Version-Release number of selected component (if applicable):
├── OCP version: 4.20.14 ├── MTV version: 2.11.0 (on-pr-f1311f45f210b6771ec49fb0d4b28804a9545dce) └── CNV version: 4.20.6
How reproducible:
Always
Steps to Reproduce:
VMs from vcenter 7:
RHEL9: msafra-RHEL9-shared-1, msafra-RHEL9-shared-2 (sharing 4GB msafra-RHEL9-shared-1_1.vmdk)
Windows 2019: ameen-win2019-shared-disks-1, ameen-win2019-shared-disks-2
1.Migrate VM1- msafra-RHEL9-shared-1 (with shared disk) using migrateSharedDisks:true- succeeds 2. Migrate VM2- msafra-RHEL9-shared-2 (sharing same disk with VM1) using migrateSharedDisks:false- fails at ImageConversion 3. Check virt-v2v pod logs: shows "WARNING: disk N in domain XML but only N-1 disks available"
Actual results:
Migration fails at ImageConversion phase.
Plan error:
➜ ~ kubectl get plan shared-disable -n mtv-test -o json | jq '.status.migration.vms[0].error' { "phase": "ConvertGuest", "reasons": [ "Guest conversion failed. See pod logs for details." ] } ➜ ~
virt-v2v pod logs:
➜ ~ kubectl logs shared-disable-vm-6543-c8gpx -n mtv-test -c virt-v2v | grep -E "Updating|WARNING|Failed|error:" Updating disk paths: found 1 disks WARNING: disk 1 in domain XML but only 1 disks available qemu-nbd: Failed to blk_new_open '[datastore2] msafra-RHEL8-shared-disks-1/msafra-RHEL8-shared-disks-1.vmdk' Could not open: No such file or directory virt-v2v-in-place: error: qemu-nbd did not start up
Expected results:
- VM2 migration should succeed
- Only non-shared disks are migrated
- Guest conversion runs successfully on non-shared disks only
- Target VM2 is created with existing shared disk PVC from VM1 attached
- Migration completes successfully