Bug 1430628
| Summary: | openshift_master_logging_public_url option didn't work | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Gaoyun Pei <gpei> |
| Component: | Installer | Assignee: | ewolinet |
| Status: | CLOSED ERRATA | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | low | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.5.0 | CC: | aos-bugs, gpei, jokerman, mmccomas, xiazhao |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: |
Cause:
The example inventories was incorrect for the logging public master URL.
Consequence:
The loggingPublicURL was not being set as expected.
Fix:
Updated the example inventories to be accurate for the new logging role.
Result:
loggingPublicURL is correctly set as expected.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-04-12 19:03:39 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1426536 | ||
|
Description
Gaoyun Pei
2017-03-09 07:19:04 UTC
You are setting the incorrect value for the 'loggingPublicURL', it is confusing since it is a misnomer. 'openshift_master_logging_public_url' is used for redirecting users to authenticate with OCP when they first attempt to connect to Kibana if their request does not have a certificate and token attached to it. I believe the variable you are meaning to set and test here is 'openshift_logging_kibana_hostname' or 'openshift_hosted_logging_hostname'. Hi Eric, thanks for your quick feedback! I was following the guide in https://github.com/openshift/openshift-ansible/blob/openshift-ansible-3.5.28-1/inventory/byo/hosts.ose.example#L533 to test openshift_master_logging_public_url option. From the description about 'openshift_master_logging_public_url', installer will overwrite the default loggingPublicURL value once I set openshift_master_logging_public_url to any other address, I was just verifying this point. If loggingPublicURL in master config file was configured by specifying openshift_hosted_logging_hostname, could you please also update the example inventory file to clarify this thing? Checked with openshift-ansible-3.5.32-1.git.0.42cf266.el7.noarch.rpm, the option used to configure loggingPublicURL has been changed as openshift_hosted_logging_hostname in file /usr/share/doc/openshift-ansible-docs-3.5.32/docs/example-inventories/hosts.ose.example # Configure loggingPublicURL in the master config for aggregate logging, defaults # to https://kibana.{{ openshift_master_default_subdomain }} #openshift_hosted_logging_hostname=https://kibana.example.com Add openshift_hosted_logging_hostname=https://kibana.example.com in ansible inventory file, setup an ocp-3.5 cluster with logging deployment enabled. After installation, check loggingPublicURL in master-config.yaml. [root@ip-172-18-2-215 ~]# grep loggingPublicURL /etc/origin/master/master-config.yaml loggingPublicURL: https://https://kibana.example.com Maybe what we want is like loggingPublicURL: https://kibana.example.com I'll update the inventory example, the default does not begin with "https://", that is why we are seeing the duplicate "https://" Additional changes merged in openshift-ansible-3.5.34-1.git.0.2f1700a Verify this bug with openshift-ansible-3.5.35-1.git.0.7aa4728.el7.noarch [root@gpei-test-ansible ~]# grep openshift_hosted_logging_hostname /usr/share/doc/openshift-ansible-docs-3.5.35/docs/example-inventories/hosts.ose.example #openshift_hosted_logging_hostname=kibana.example.com #openshift_hosted_logging_hostname=logging.apps.example.com After setting openshift_hosted_logging_hostname=logging.apps.example.com in ansible inventory when deploying logging, check loggingPublicURL after installation. [root@ip-172-18-14-187 ~]# grep loggingPublicURL /etc/origin/master/master-config.yaml loggingPublicURL: https://kibana.example.com 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-2017:0903 |