Bug 1547944 - installation playbook for logging sets PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT to first master
Summary: installation playbook for logging sets PUBLIC_MASTER_URL and OAP_LOGOUT_REDIR...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging
Version: 3.7.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.9.0
Assignee: ewolinet
QA Contact: Anping Li
URL:
Whiteboard:
Depends On:
Blocks: 1505684
TreeView+ depends on / blocked
 
Reported: 2018-02-22 10:30 UTC by daniel
Modified: 2018-03-28 14:30 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-03-28 14:30:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:30:51 UTC

Description daniel 2018-02-22 10:30:30 UTC
Description of problem:

When installing logging via ansible playbook PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT in kibana dc are set do first master which 
causes issues with kibana (e.g. logout leads to error) if the first master is not available for whatever reason.
 

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

ansible-2.4.1.0-1.el7.noarch

openshift v3.7.23
kubernetes v1.7.6+a08f5eeb62

kibana:
        image: registry.access.redhat.com/openshift3/logging-kibana:v3.7.23
        image: registry.access.redhat.com/openshift3/logging-auth-proxy:v3.7.23


How reproducible:


Steps to Reproduce:
1. install OCP 3.7 w/o logging
2. Add the following options to /etc/ansible/hosts
[...]
#logging
openshift_hosted_logging_deploy=true
openshift_logging_install_logging=true
openshift_logging_storage_kind=nfs
openshift_logging_storage_access_modes=['ReadWriteOnce']
openshift_logging_storage_nfs_directory=/exports
openshift_logging_storage_nfs_options='*(rw,root_squash)'
openshift_logging_storage_volume_name=logging
openshift_logging_storage_volume_size=40Gi
openshift_logging_image_version=v3.7.23
openshift_logging_image_prefix=registry.access.redhat.com/openshift3/
openshift_logging_master_url=https://kubernetes.default.svc.{{openshift.common.dns_domain}}
openshift_logging_kibana_hostname=kibana.ocp.example.com
[...]

3. Install logging
   # ansible-playbook -i /etc/ansible/hosts /usr/share/ansible/openshift-ansible/playbooks/byo/openshift-cluster/openshift-logging.yml

4. Check dc for kibana:

# oc describe dc/logging-kibana
[...]
      OAP_PUBLIC_MASTER_URL:		https://master1.example.com:8443
      OAP_LOGOUT_REDIRECT:		https://master1.example.com:8443/console/logout
[...]


Actual results:
OAP_PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT are always set to first master, which should not be the case

Expected results:
OAP_PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT should point at the public cluster hostname


Additional info:


Description of problem:

Version-Release number of the following components:
rpm -q openshift-ansible
rpm -q ansible
ansible --version

How reproducible:

Steps to Reproduce:
1.
2.
3.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 5 Anping Li 2018-02-28 05:00:30 UTC
Pass with openshift-ansible-3.9.1-1.git.0.9862628.el7.noarch

Comment 8 errata-xmlrpc 2018-03-28 14:30:19 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-2018:0489


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