Bug 1955554 - MAO does not react to events triggered from Validating Webhook Configurations
Summary: MAO does not react to events triggered from Validating Webhook Configurations
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Cloud Compute
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 4.8.0
Assignee: Joel Speed
QA Contact: sunzhaohua
URL:
Whiteboard:
Depends On:
Blocks: 1955689
TreeView+ depends on / blocked
 
Reported: 2021-04-30 11:47 UTC by Joel Speed
Modified: 2021-07-27 23:05 UTC (History)
0 users

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-27 23:05:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift machine-api-operator pull 860 0 None open Bug 1955554: Webhook filter should check for both mutating and validating webhooks 2021-04-30 11:48:53 UTC
Red Hat Product Errata RHSA-2021:2438 0 None None None 2021-07-27 23:05:39 UTC

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


Note You need to log in before you can comment on or make changes to this bug.