Created attachment 1342525 [details] Inventory deploylogs deploymentconfig files Description of problem: When deploy the logging to HA Masters OCPs. If the openshift_logging_master_public_url is not set in inventory. The OAP_PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT in kibana deploymentconfigure is set to the first master's public_hostname. It should use the cluster_public_hostname (The lb hostname ). Version-Release number of the following components: openshift-ansible-3.7.0-0.174.0 How reproducible: always Steps to Reproduce: 1. Install clustered masters OCP [OSEv3:vars] deployment_type=openshift-enterprise openshift_master_cluster_method=native openshift_master_cluster_hostname=master3.example.com [masters] master1.example.com master2.example.com master3.example.com [lb] master.example.com 2. Don't set openshift_logging_master_public_url in inventroy file and deploy logging via ansible playbook openshift_logging_install_logging=true #openshift_logging_master_public_url=https://master.example.com:8443 3. Check the deployconfig k oc get dc logging-kibana -o yaml |egrep -A 1 'OAP_PUBLIC_MASTER_URL|OAP_LOGOUT_REDIRECT' Actual results: # OAP_PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT was set to https://master1.example.com:8443 oc get dc logging-kibana -o yaml |egrep -A 1 'OAP_PUBLIC_MASTER_URL|OAP_LOGOUT_REDIRECT' - name: OAP_PUBLIC_MASTER_URL value: https://master1.example.com:8443 - name: OAP_LOGOUT_REDIRECT value: https://master1.example.com:8443/console/logout Expected results: #OAP_PUBLIC_MASTER_URL and OAP_LOGOUT_REDIRECT should be https://master.example.com:8443 when openshift_logging_master_public_url is not set
Also in version 3.7.23
@jeff, duplicated bug as https://bugzilla.redhat.com/show_bug.cgi?id=1547944, Could we merge it to v3.9.
https://github.com/openshift/openshift-ansible/pull/7279
verified on openshift v3.7.44
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/RHSA-2018:1231