Bug 1753593 - [Reg] openshift_logging_elasticsearch_kibana_index_mode cannot be changed by inventory variable
Summary: [Reg] openshift_logging_elasticsearch_kibana_index_mode cannot be changed by ...
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: Noriko Hosoi
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-19 11:23 UTC by Nicolas Nosenzo
Modified: 2023-03-24 15:28 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
In the openshift-logging update using ansible, if a new value was set in the inventory file to apply the change to the existing cluster, the change was ignored. It was because the module logging_patch accidentally created a patch to change a new file into the original file. The patching direction was fixed and the changes made in an inventory file are now correctly applied.
Clone Of:
Environment:
Last Closed: 2020-01-14 05:31:27 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift openshift-ansible pull 11918 0 'None' closed [release 3-11] Bug 1753593: [Reg] openshift_logging_elasticsearch_kibana_index_mode… 2020-02-21 07:39:45 UTC
Red Hat Product Errata RHBA-2020:0017 0 None None None 2020-01-14 05:31:39 UTC

Description Nicolas Nosenzo 2019-09-19 11:23:42 UTC
Description of problem:

This bug is to keep the work done on bug 1598668, as the variable openshift_logging_elasticsearch_kibana_index_mode is still ignored by the openshift-logging/config.yaml playbook.

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

How reproducible:
100%

Steps to Reproduce:
1. Add "openshift_logging_elasticsearch_kibana_index_mode=shared_ops" to the inventory.
2. Run openshift-logging/config.yaml playbook.
3. Check openshift.kibana.index.mode variable, it didn't change to the desired value:

$ oc get configmap logging-elasticsearch -o yaml |grep openshift.kibana.index.mode
    openshift.kibana.index.mode: unique

Actual results:
openshift.kibana.index.mode is ignored by the playbook.

Expected results:
openshift.kibana.index.mode should be changed to "shared_ops"

Additional info:

Comment 1 Noriko Hosoi 2019-09-19 23:54:32 UTC
I could not reproduce the problem.

# rpm -q openshift-ansible
openshift-ansible-3.11.98-1.git.0.3cfa7c3.el7.noarch

I deployed the logging cluster with "openshift_logging_elasticsearch_kibana_index_mode=shared_ops".

# oc get configmap logging-elasticsearch -o yaml |grep openshift.kibana.index.mode
    openshift.kibana.index.mode: shared_ops

Could you please share the output from ansible-playbook command line with -vvv as well as the inventory file with us?

Comment 2 Nicolas Nosenzo 2019-09-20 11:47:17 UTC
Then it might narrow down the issue to non-new deployments, I've reproduced it again.

Comment 9 Nicolas Nosenzo 2019-09-23 18:23:00 UTC
Noriko, 
I tested it by deploying efk from the scratch and the value was set to shared_ops as stated in the inventory. So the problem seems to be when trying to change the value upon updates.

Comment 20 Anping Li 2019-12-24 09:04:12 UTC
Works with latest openshift-ansible:v3.11.157

Comment 24 errata-xmlrpc 2020-01-14 05:31:27 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:0017


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