Bug 1955554

Summary: MAO does not react to events triggered from Validating Webhook Configurations
Product: OpenShift Container Platform Reporter: Joel Speed <jspeed>
Component: Cloud ComputeAssignee: Joel Speed <jspeed>
Cloud Compute sub component: Other Providers QA Contact: sunzhaohua <zhsun>
Status: CLOSED ERRATA Docs Contact:
Severity: high    
Priority: unspecified    
Version: 4.8   
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-27 23:05:17 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: 1955689    

Description Joel Speed 2021-04-30 11:47:03 UTC
Description of problem:

The MAO does not react to events triggered by modifying validating webhook configurations which it manages

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

4.8 and backwards

How reproducible:

100%, edit the machine-api validatingwebhook configuration and observe that the controller does not reconcile

Actual results:

It does not react to the modification


Expected results:

It should react to the modification and revert the changes (assuming they conflict)

Additional info:

Comment 2 sunzhaohua 2021-05-10 04:50:18 UTC
verified
clusterversion: 4.8.0-0.nightly-2021-05-09-105430

change port from 443 to 444, check machine-api-operator logs output re-syncing, check port again, restored to 443
$ oc edit ValidatingWebhookConfiguration machine-api

$ oc logs -f machine-api-operator-687f74b544-vpqwx -c machine-api-operator
I0510 04:43:29.118228       1 status.go:69] Syncing status: re-syncing
I0510 04:43:29.137741       1 recorder_logging.go:37] &Event{ObjectMeta:{dummy.167d9af2f0e6193e  dummy    0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] []  []},InvolvedObject:ObjectReference{Kind:Pod,Namespace:dummy,Name:dummy,UID:,APIVersion:v1,ResourceVersion:,FieldPath:,},Reason:ValidatingWebhookConfigurationUpdated,Message:Updated ValidatingWebhookConfiguration.admissionregistration.k8s.io/machine-api because it changed,Source:EventSource{Component:,Host:,},FirstTimestamp:2021-05-10 04:43:29.13762131 +0000 UTC m=+13381.924832908,LastTimestamp:2021-05-10 04:43:29.13762131 +0000 UTC m=+13381.924832908,Count:1,Type:Normal,EventTime:0001-01-01 00:00:00 +0000 UTC,Series:nil,Action:,Related:nil,ReportingController:,ReportingInstance:,}
I0510 04:43:31.178608       1 sync.go:110] Synced up all machine API webhook configurations
I0510 04:43:31.183896       1 status.go:100] Syncing status: available
I0510 04:43:31.205152       1 status.go:69] Syncing status: re-syncing
I0510 04:43:33.248604       1 sync.go:110] Synced up all machine API webhook configurations
I0510 04:43:33.253336       1 status.go:100] Syncing status: available

Comment 5 errata-xmlrpc 2021-07-27 23:05:17 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 (Moderate: OpenShift Container Platform 4.8.2 bug fix and 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-2021:2438