Bug 1753593

Summary: [Reg] openshift_logging_elasticsearch_kibana_index_mode cannot be changed by inventory variable
Product: OpenShift Container Platform Reporter: Nicolas Nosenzo <nnosenzo>
Component: LoggingAssignee: Noriko Hosoi <nhosoi>
Status: CLOSED ERRATA QA Contact: Anping Li <anli>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.11.0CC: anli, aos-bugs, kpelc, mvardhan, nhosoi, rmeggins
Target Milestone: ---   
Target Release: 3.11.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-01-14 05:31:27 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:

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