Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1879930

Summary: Annotations shouldn't be removed during object reconciliation
Product: OpenShift Container Platform Reporter: Pawel Krupa <pkrupa>
Component: MonitoringAssignee: Pawel Krupa <pkrupa>
Status: CLOSED ERRATA QA Contact: Junqi Zhao <juzhao>
Severity: medium Docs Contact:
Priority: low    
Version: 4.6CC: alegrand, anpicker, erooth, kakkoyun, lcosic, pkrupa, surbania
Target Milestone: ---   
Target Release: 4.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1887338 (view as bug list) Environment:
Last Closed: 2021-02-24 15:18:31 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: 1887338, 1887339    

Description Pawel Krupa 2020-09-17 11:28:41 UTC
Description of problem:
Currently, CMO removes annotations from objects which it governs. This is incorrect as annotations can be set by other actors.

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


How reproducible:
always

Steps to Reproduce:
1. Annotate an object governed by CMO (for example a Service or ClusterRole)
2. Wait ~15m for CMO reconciliation
3. Check if annotations are there

Actual results:
Custom annotation is removed

Expected results:
Annotations should exist

Additional info:
This is a result of investigation from https://bugzilla.redhat.com/show_bug.cgi?id=1863011 and possible remediation was discussed in https://github.com/openshift/cluster-monitoring-operator/pull/932#discussion_r490089300

Comment 3 Junqi Zhao 2020-10-13 07:50:59 UTC
tested with 4.7.0-0.ci-2020-10-12-222453, followed the steps in Comment 0,annotations are remained

Comment 7 errata-xmlrpc 2021-02-24 15:18:31 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.7.0 security, bug fix, and enhancement 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-2020:5633