Open saurabhwani5 opened 1 year ago
Another scenario is seen as follows:
@saurabhwani5 I have validated the events with various scenario along with the above mentioned ones. My observation is that Kubernetes suppress similar events whenever cso tries to adding events too frequently. The events details are visible for certain time-period but can be shown after sometime when new events gets generate. The failure values will gets increase with the hidden counts also. e.g. Warning ValidationWarning 9s (x12 over 4h55m) CSIScaleOperator There are few entries having wrong key which will not be processed or few entries having wrong values in the configmap ibm-spectrum-scale-csi-config, check operator logs for details
In the above example, after 7-8 counts the events were not visible but tried after some time, its gets new failure events with totalm failed with x12 which is total failed from initial time.
@amdabhad The same behaviour can be noticed with generic message along with unique message when keep on generating events too frequently. I think there won't be any changes required as of now.
@badri-pathak , please check on 2 things:
Normal CSIConfigured 112s (x20 over 7m8s) CSIScaleOperator The CSI driver resources have been created/updated successfully
Describe the bug
Create and apply configmap with wrong values which will show event in cso and then apply the right configmap which won't give any ValidationWarning event as everything is correct but when wrong configmap is applied again it won't give any ValidationWarning event in configmap which is not expected
How to Reproduce?
For this issue, I have used Images in PR1000 ( #1000 ).
Install CSI 2.10.0 with the following Images
Apply wrong configmap as shown below
Check the cso event
Above ValidationWarning event is getting generated which is expected
Apply correct configmap
Check the CSO event (It won't show any new event as everything is right)
As cm was correct no ValidationWarning event is generated after applying correct cm which is expected
Reapply the wrong configmap and check if cso event is shown or not.
Check the CSO status:
No ValidationWarning event is shown for wrong cm. If we check the event last ValidationWarning event was 3m25s old and after applying wrong cm recently it is not showing anything.
Note: This issue is seen when wrong cm is deleted and applied again.
Expected behavior
ValidationWarning Event should be generated if wrong cm is applied and same for other failure cases if that is not working