Bug 2227380

Summary: "Created" event is not getting generated for some of the hco.status.relatedObjects, post successful cnv installation
Product: Container Native Virtualization (CNV) Reporter: Debarati Basu-Nag <dbasunag>
Component: InstallationAssignee: Nahshon Unna-Tsameret <nunnatsa>
Status: CLOSED NOTABUG QA Contact: Natalie Gavrielov <ngavrilo>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.14.0CC: nunnatsa, stirabos
Target Milestone: ---Flags: nunnatsa: needinfo? (dbasunag)
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-08-07 13:38:56 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 Debarati Basu-Nag 2023-07-28 23:27:34 UTC
Description of problem: "Created" event is not getting generated for some of the hco.status.relatedObjects, post successful cnv installation


Version-Release number of selected component (if applicable):
 v4.14.0.rhel9-1372

How reproducible:
100% (2 out of 2 attempt

Steps to Reproduce:
1. Install CNV 
2. Check all the "Created" events for cnv namespace
3.

Actual results:
For the following hco.status.related objects, "Created" events are not getting generated.
================
PriorityClass kubevirt-cluster-critical
Deployment kubevirt-apiserver-proxy
ConsoleQuickStart creating-virtual-machine
ConsoleQuickStart creating-virtual-machine-from-volume
ConsoleQuickStart upload-boot-source
ImageStream rhel8-guest
ImageStream rhel9-guest
ConfigMap virtio-win
Role virtio-win
RoleBinding virtio-win
ConfigMap nginx-conf
ConsolePlugin kubevirt-plugin


Expected results:
Created Event should exist for all hco.status.relatedObjects after successful cnv installation

Additional info:

Comment 2 Nahshon Unna-Tsameret 2023-07-31 13:15:55 UTC
@dbasunag - could you please add the hco pod log?

Comment 3 Nahshon Unna-Tsameret 2023-08-07 13:37:54 UTC
The K8s client, that is used by oc/kubectl, aggregates similar events if their frequency is too high. When HCO creates all the sub-resources, it exceeds the event rate limit, and so some of the event, are always not displayed and aggregated. This is why we miss some of the events.