Bug 1875292

Summary: vm-import-controller crashes on cluster wide bios configuration
Product: Container Native Virtualization (CNV) Reporter: Filip Krepinsky <fkrepins>
Component: V2VAssignee: Piotr Kliczewski <pkliczew>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.5.0CC: bthurber, cnv-qe-bugs, dagur, istein, nachandr, pkliczew
Target Milestone: ---   
Target Release: 2.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: v2.5.0-16 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-17 13:24:21 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
vm-import-controller.log
none
virtualmachineimport-cr
none
networkattachmentdefinition-cr none

Description Filip Krepinsky 2020-09-03 08:33:57 UTC
Created attachment 1713557 [details]
vm-import-controller.log

Description of problem:
When trying to import VM with sriov network by the UI, the controller crashes. Attaching the logs, the VMImport CR and used NetworkAttachmentDefinition.

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

How reproducible:
100

Comment 1 Filip Krepinsky 2020-09-03 08:34:18 UTC
Created attachment 1713558 [details]
virtualmachineimport-cr

Comment 2 Filip Krepinsky 2020-09-03 08:35:52 UTC
Created attachment 1713559 [details]
networkattachmentdefinition-cr

Comment 3 Piotr Kliczewski 2020-09-03 08:57:32 UTC
This bug is not SRIOV related. Here is corresponding upstream issue https://github.com/kubevirt/vm-import-operator/issues/389

Comment 4 Piotr Kliczewski 2020-09-03 08:59:03 UTC
In order to workaround the issue please change bios type setting for this specific source vm.

Comment 6 Filip Krepinsky 2020-10-26 15:42:59 UTC
I would suspect that trying to import VM with cluster default BIOS should suffice. @Piotr is there anything else to take into consideration?

Comment 7 Piotr Kliczewski 2020-10-26 15:44:49 UTC
Correct, this is exactly what was fixed.

Comment 8 Ilanit Stein 2020-10-27 09:19:05 UTC
Verified on CNV-2.5: iib-22696 hco-v2.5.0-396

Had RHEL 7 VM on RHV side, that was set to Bios "Cluster default":

<bios>
<boot_menu>
<enabled>false</enabled>
</boot_menu>
<type>cluster_default</type>
</bios>

VM import for this VM (via UI) was successful.
The controller did not crash.

Comment 11 errata-xmlrpc 2020-11-17 13:24:21 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 (OpenShift Virtualization 2.5.0 Images), 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/RHEA-2020:5127