Bug 2060585

Summary: [SNO] Failed to find the virt-controller leader pod
Product: Container Native Virtualization (CNV) Reporter: Kedar Bidarkar <kbidarka>
Component: VirtualizationAssignee: Jed Lejosne <jlejosne>
Status: CLOSED ERRATA QA Contact: Kedar Bidarkar <kbidarka>
Severity: high Docs Contact:
Priority: high    
Version: 4.10.0CC: cnv-qe-bugs, sgott
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-operator-container-v4.11.0-78 hco-bundle-registry-container-v4.11.0-445 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-14 19:29:09 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:

Description Kedar Bidarkar 2022-03-03 19:34:56 UTC
Description of problem:

KubeVirt Testcase with test_id:4642 fails in SNO Mode.

We failed to find the virt-controller leader pod, which in the SNO case would be the only pod. This should be investigated.


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

How reproducible:


Steps to Reproduce:
1. Run KubeVirt Testcase with test_id:4642
2.
3.

Actual results:
failed to find the virt-controller leader pod

Expected results:
The testcase pass, by investing the functionality in SNO Mode.

Additional info:

Comment 1 Kedar Bidarkar 2022-03-03 19:36:11 UTC
Correction: 
Expected results: The testcase passes, by checking the functionality in SNO Mode.

Comment 2 Jed Lejosne 2022-03-04 15:27:29 UTC
On closer inspection, everything works fine, this test just doesn't make sense in SNO.
The test expects exactly 2 replicas of virt-controller, deletes the leader and expects the other one to be elected in its place.
I will add a skip upstream, but I need the Skip() functions from https://github.com/kubevirt/kubevirt/pull/7301 so I can't PR just yet.

Comment 4 Kedar Bidarkar 2022-07-04 08:26:55 UTC
It("[test_id:4642]should succeed afterwards", func() {
// This test needs at least 2 controller pods. Skip on single-replica.
checks.SkipIfSingleReplica(virtClient)

As per the comment2 and current code of release-0.53, this testcase with test_id:4642 is not valid in SNO mode.

Comment 6 errata-xmlrpc 2022-09-14 19:29:09 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 (Important: OpenShift Virtualization 4.11.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:6526