Bug 2141302

Summary: Unhealthy states alerts and state metrics are missing
Product: Container Native Virtualization (CNV) Reporter: João Vilaça <jvilaca>
Component: MetricsAssignee: João Vilaça <jvilaca>
Status: CLOSED ERRATA QA Contact: Ohad <orevah>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.11.2CC: dbasunag, kmajcher, sradco, stirabos
Target Milestone: ---   
Target Release: 4.12.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: hco-bundle-registry-container-v4.12.0-760 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2142918 (view as bug list) Environment:
Last Closed: 2023-01-24 13:42:07 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:
Bug Depends On:    
Bug Blocks: 2142918    

Description João Vilaça 2022-11-09 12:57:12 UTC
Description of problem: Unhealthy states metrics are missing

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

How reproducible: 100%

Steps to Reproduce:
1. Create any VMs
2. Check if any KubeVirtVMStuckIn${state}State alerts or kubevirt_vm_${state}_status_last_transition_timestamp_seconds metrics exist

Actual results:
Metrics and alerts don't exist

Expected results:
Metrics and alerts exist


Additional info:

metrics list:

kubevirt_vm_error_status_last_transition_timestamp_seconds
kubevirt_vm_migrating_status_last_transition_timestamp_seconds
kubevirt_vm_non_running_status_last_transition_timestamp_seconds
kubevirt_vm_running_status_last_transition_timestamp_seconds
kubevirt_vm_starting_status_last_transition_timestamp_seconds

alert list:

KubeVirtVMStuckInErrorState
KubeVirtVMStuckInMigratingState
KubeVirtVMStuckInStartingState

Comment 1 Ohad 2022-12-01 15:41:06 UTC
Tried on CNV-v4.12.0-745 and the still get the bug, created 2 vm's and looked for the alerts and metrics and still doesn't exist.

Comment 2 João Vilaça 2022-12-06 14:22:57 UTC
On CNV Version Explorer I see that no v4.12 build has that PR already. So we need to wait for a new build that has it

Comment 6 errata-xmlrpc 2023-01-24 13:42:07 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.12.0 Images security 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-2023:0408