Bug 2035677 - Windows10 VM with CDROM migration fails
Summary: Windows10 VM with CDROM migration fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Virtualization
Version: 4.10.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.10.0
Assignee: Itamar Holder
QA Contact: zhe peng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-12-26 19:45 UTC by Leon Kladnitsky
Modified: 2022-03-16 16:05 UTC (History)
6 users (show)

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:
Clone Of:
Environment:
Last Closed: 2022-03-16 16:05:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
migration video (2.26 MB, video/mp4)
2021-12-26 19:45 UTC, Leon Kladnitsky
no flags Details
vm yaml (9.34 KB, text/plain)
2021-12-27 03:28 UTC, Guohua Ouyang
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:0947 0 None Closed RHEL EUS Errata Documentation 2022-06-16 06:26:55 UTC

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


Note You need to log in before you can comment on or make changes to this bug.