Bug 1841439 - logging-curator ConfigMap is overwritten during logging stack upgrades
Summary: logging-curator ConfigMap is overwritten during logging stack upgrades
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.11.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.11.z
Assignee: Brett Jones
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-29 07:14 UTC by Robert Sandu
Modified: 2023-10-06 20:18 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-27 13:49:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 12179 0 None closed Bug 1841439: fix configmaps overriding curator.yaml 2021-02-17 20:32:35 UTC
Red Hat Knowledge Base (Solution) 5116721 0 None None None 2020-05-29 07:57:02 UTC
Red Hat Product Errata RHBA-2020:2990 0 None None None 2020-07-27 13:49:22 UTC

Description Robert Sandu 2020-05-29 07:14:54 UTC
Description of problem: custom setting in the logging-curator ConfigMap are overwritten during EFK stack upgrades (even though the changes seem to be initially detected and preserved by openshift_logging/library/logging_patch.py)

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

$ rpm -q openshift-ansible
openshift-ansible-3.11.219-1.git.0.8845382.el7.noarch

How reproducible: always

Steps to Reproduce:
1. oc -n openshift-logging edit cm logging-curator
2. Add a couple of custom `config.yaml` settings for specific projects:

$ oc get cm logging-curator -n openshift-logging -o yaml | grep -v \#
apiVersion: v1
data:
  actions.yaml: |
  config.yaml: |

    logging-project-1:
       delete:
         days: 30

    logging-project-2:
       delete:
         days: 60
  [...]
  curator5.yaml:
  [...]
kind: ConfigMap
[...]

3. Run the upgrade with `playbooks/openshift-logging/config.yml`

Actual results: the `logging-project-X` retention settings are overwritten in the `logging-curator` ConfigMap during the EFK stack upgrade.

Expected results: `logging-curator` ConfigMap custom settings to be preserved following an upgrade.

Comment 5 Anping Li 2020-06-15 10:32:32 UTC
The PR wasn't merged into openshift-ansible-3.11.232-1.git.0.f0f2213.el7.noarch.

Comment 10 Anping Li 2020-07-05 12:36:05 UTC
Verified on openshift-ansible-3.11.235

Comment 12 errata-xmlrpc 2020-07-27 13:49:10 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, 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:2990


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