Bug 2227761

Summary: openshift-monitoring apiservice on FailedDiscoveryCheck
Product: Container Native Virtualization (CNV) Reporter: Roni Kishner <rkishner>
Component: MetricsAssignee: Shirly Radco <sradco>
Status: CLOSED DEFERRED QA Contact: Natalie Gavrielov <ngavrilo>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.14.0CC: kmajcher, stirabos
Target Milestone: ---   
Target Release: 4.14.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-09-13 10:25:37 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 Roni Kishner 2023-07-31 10:17:27 UTC
Description of problem:
After trying to delete a namespace with some resource inside (Secret/VM), the apiservice resource 'openshift-monitoring/prometheus-adapter' is on FailedDiscoveryCheck, this causes the namespace deletion to be stuck on 'Terminating'

After deleting the apiservice (oc delete apiservice v1beta1.metrics.k8s.io) the namespace do get deleted after 1-3 minutes, and the issue does not repeat.

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

How reproducible:
Need more investigation but seen more then a few times on different clusters

Steps to Reproduce:
1. Create a VM in a namespace
2. Delete the namespace

Actual results:
The namespace is stuck on Terminating

Expected results:
The namespace and all resources should be deleted

Additional info:
It is not clear if the apiservice failure is a side effect of another issue or it is what is causing this.

Comment 1 Kedar Bidarkar 2023-08-02 12:35:03 UTC
Changing the component to Metrics, so that your team  could triage this bug. 
Discussed with Virt Devs and feel it could be related to Metrics thing.

Comment 2 Krzysztof Majcher 2023-09-05 12:46:30 UTC
It seems it's handled in https://issues.redhat.com/browse/OCPBUGS-17138

Comment 3 Krzysztof Majcher 2023-09-13 10:25:37 UTC
Roni, I am closing this one, as it's duplicate of the OCPBUG mentioned. Please follow the OCPBUG for updates. Nothing to do on the CNV side here.
I'm closing as defered, because OCP bugs are not in bugzilla, and i cannot link the jira bug.