Bug 2035677

Summary: Windows10 VM with CDROM migration fails
Product: Container Native Virtualization (CNV) Reporter: Leon Kladnitsky <lkladnit>
Component: VirtualizationAssignee: Itamar Holder <iholder>
Status: CLOSED ERRATA QA Contact: zhe peng <zpeng>
Severity: high Docs Contact:
Priority: high    
Version: 4.10.0CC: aos-bugs, cnv-qe-bugs, gouyang, iholder, sgott, zpeng
Target Milestone: ---Keywords: Regression
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-operator-container-v4.10.0-185 hco-bundle-registry-container-v4.10.0-576 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-16 16:05:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
migration video
none
vm yaml none

Description Leon Kladnitsky 2021-12-26 19:45:34 UTC
Created attachment 1847862 [details]
migration video

Description of problem:

When trying to migrate Win10 VM with CD-ROM disk the migration fails with Event message "VirtualMachineInstance migration uid ... failed. reason:Live migration failed error encountered during MigrateToURI3 libvirt api call: virError(Code=8, Domain=10, Message='invalid argument: NBD URI must be supplied when migration URI uses UNIX transport method')

Version-Release number of selected component (if applicable):


How reproducible:

100%


Steps to Reproduce:
1. Create started Windows 10 VM with bootsource from http://cnv-qe-server.rhevdev.lab.eng.rdu2.redhat.com/files/cnv-tests/windows-images/win_10.qcow2
2. Note the VM Node
3. Launch VM migration 


Actual results:
VM Node did not change
Events tab contains the error messages:
    
    1) server error. command Migrate failed: "migration job already executed"

    2) VirtualMachineInstance migration uid ... failed. reason:Live migration failed error encountered during MigrateToURI3 libvirt api call: virError(Code=8, Domain=10, Message='invalid argument: NBD URI must be supplied when migration URI uses UNIX transport method')


Expected results:
VM Node changes


Additional info:

Comment 1 Guohua Ouyang 2021-12-27 03:26:54 UTC
This should be the core issue, move the bug to virt for investigation.

Comment 2 Guohua Ouyang 2021-12-27 03:28:37 UTC
Created attachment 1847886 [details]
vm yaml

Comment 3 Itamar Holder 2021-12-27 13:23:45 UTC
The bug is successfully reproduced. The root cause seems to be that we set the migration as BlockMigration for CDRoms in certain cases. This should be avoided.

I'm working on a PR right now and will post it very soon.

Comment 4 Itamar Holder 2021-12-27 16:19:45 UTC
PR for bug fix: https://github.com/kubevirt/kubevirt/pull/7004

Comment 5 sgott 2022-01-10 17:01:01 UTC
To verify, repeat steps in description.

Comment 6 zhe peng 2022-01-18 06:17:47 UTC
verify with build: HCO:[v4.10.0-588]
virt-launcher/images/v4.10.0-186

step:
1. create win10 vm with cdrom
2. start win10 vm, login vm and check win10 status.
3. do live migration
4. login vm again and check again.
check migration status
$ oc get virtualmachineinstancemigrations.kubevirt.io vm-win10-migration-2fnvb
NAME                       PHASE       VMI
vm-win10-migration-2fnvb   Succeeded   vm-win10
migration finished w/o error. move to verified.

Comment 11 errata-xmlrpc 2022-03-16 16:05:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Virtualization 4.10.0 Images security and bug fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:0947