Bug 1810680

Summary: Improve logging for machine config daemon content mismatch
Product: OpenShift Container Platform Reporter: Robert Bost <rbost>
Component: Machine Config OperatorAssignee: Kirsten Garrison <kgarriso>
Status: CLOSED ERRATA QA Contact: Michael Nguyen <mnguyen>
Severity: low Docs Contact:
Priority: low    
Version: 4.3.0CC: kgarriso, smilner
Target Milestone: ---   
Target Release: 4.6.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: 2020-10-27 15:56:30 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: 1848473    

Description Robert Bost 2020-03-05 17:41:31 UTC
Description of problem:

Can the logging for a content mismatch be improved to show the current vs desired configuration instead of A vs B?

2020-03-04T13:40:11.990482341Z I0304 13:40:11.990446    7216 daemon.go:671] Current+desired config: rendered-master-a6c68d747dc0ad5893bb4598b21db714
2020-03-04T13:40:12.030771182Z I0304 13:40:12.030667    7216 daemon.go:892] Validating against current config rendered-master-a6c68d747dc0ad5893bb4598b21db714
2020-03-04T13:40:12.034753737Z E0304 13:40:12.032541    7216 daemon.go:1272] content mismatch for file /etc/kubernetes/cloud.conf: [Global]
2020-03-04T13:40:12.034753737Z secret-name      = vsphere-creds
2020-03-04T13:40:12.034753737Z secret-namespace = kube-system
2020-03-04T13:40:12.034753737Z insecure-flag    = 1
2020-03-04T13:40:12.034753737Z 
2020-03-04T13:40:12.034753737Z [Workspace]
2020-03-04T13:40:12.034753737Z server            = mdu
2020-03-04T13:40:12.034753737Z 
2020-03-04T13:40:12.034753737Z A: -p.example.com
2020-03-04T13:40:12.034753737Z datacenter        = testdc
2020-03-04T13:40:12.034753737Z default-datastore = testds
2020-03-04T13:40:12.034753737Z folder            = testf
2020-03-04T13:40:12.034753737Z 
2020-03-04T13:40:12.034753737Z [VirtualCenter "vc-p.example.com"]
2020-03-04T13:40:12.034753737Z datacenters = testdc
2020-03-04T13:40:12.034753737Z 
2020-03-04T13:40:12.034753737Z 
2020-03-04T13:40:12.034753737Z B: .example.com
2020-03-04T13:40:12.034753737Z datacenter        = testdc
2020-03-04T13:40:12.034753737Z default-datastore = testds
...


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


How reproducible: Any content mismatch

Comment 11 errata-xmlrpc 2020-10-27 15:56:30 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196