Bug 2060585 - [SNO] Failed to find the virt-controller leader pod
Summary: [SNO] Failed to find the virt-controller leader pod
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.11.0
Assignee: Jed Lejosne
QA Contact: Kedar Bidarkar
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-03-03 19:34 UTC by Kedar Bidarkar
Modified: 2023-11-13 08:14 UTC (History)
2 users (show)

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:
Clone Of:
Environment:
Last Closed: 2022-09-14 19:29:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt pull 7345 0 None open Add a single-replica skip to a multi-replica test 2022-03-10 13:58:14 UTC
Github kubevirt kubevirt pull 7773 0 None Merged [release-0.53] Fix/Skip tests that are incompatible with single-replica environments 2022-06-07 11:47:39 UTC
Red Hat Issue Tracker CNV-16736 0 None None None 2023-11-13 08:14:38 UTC
Red Hat Product Errata RHSA-2022:6526 0 None None None 2022-09-14 19:29:25 UTC

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


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