Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1452690

Summary: [3.3] ignore openshift_hosted_metrics_public_url when openshift_hosted_metrics_deploy=true is not set
Product: OpenShift Container Platform Reporter: Scott Dodson <sdodson>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.1CC: aos-bugs, jialiu, jokerman, lsantill, mmccomas, xtian
Target Milestone: ---   
Target Release: 3.3.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Previously, if openshift_hosted_metrics_public_url was specified but the playbooks were not used to deploy metrics the configuration value was ignored. Now this configuration value is set whether or not the playbooks are used to deploy metrics which makes it possible to configure the console for metrics use while performing a manual installation of the metrics components.
Story Points: ---
Clone Of: 1449483 Environment:
Last Closed: 2017-06-12 15:41:03 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: 1449483    
Bug Blocks:    

Description Scott Dodson 2017-05-19 13:25:07 UTC
+++ This bug was initially created as a clone of Bug #1449483 +++

Description of problem:

The ansible installed ignores `openshift_hosted_metrics_public_url` when `openshift_hosted_metrics_deploy=true` is not set.  Affects manually installed metrics.  May also affect ansible installer-based installs that have later deviations (public url needs to change to mnemonic host name).

See:
https://github.com/openshift/openshift-ansible/commit/944a9b750f3765df0a204b930fe57923ca58d25d

https://access.redhat.com/support/cases/#/case/01809751

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

How reproducible:
Consistent

Steps to Reproduce:
1.  Manually deploy metrics
2.  Add openshift_hosted_metrics_public_url to hosts file
3.  Re-execute ansible installer

Actual results:
Ansible installer fails and/or metrics processing fails.


Expected results:
Ansible installer executes without error.  openshift_hosted_metrics_public_url is updated in the master-config.yaml.  All metrics processing components continue to work.


Additional info:
https://github.com/openshift/openshift-ansible/commit/944a9b750f3765df0a204b930fe57923ca58d25d

https://access.redhat.com/support/cases/#/case/01809751

Comment 3 Gaoyun Pei 2017-05-24 09:06:17 UTC
Verify this bug with openshift-ansible-3.3.1.29-1.git.0.1a1bd11.el7.noarch.rpm

With openshift_hosted_metrics_public_url set and no openshift_hosted_metrics_deploy=true set in ansible inventory file:
openshift_hosted_metrics_public_url=https://hawkular-metrics.example.com/hawkular/metrics


After installation, the specified metricsPublicURL was added into master config

[root@ip-172-18-11-208 ~]# grep metricsPublicURL /etc/origin/master/master-config.yaml
  metricsPublicURL: https://hawkular-metrics.example.com/hawkular/metrics


Will move this bug to verified after the openshift-ansible rpm package was attached to advisory 28675

Comment 6 Gaoyun Pei 2017-06-02 06:31:54 UTC
Verify this bug with openshift-ansible-3.3.84-1.git.0.4104d2d.el7

When openshift_hosted_metrics_public_url was set and no openshift_hosted_metrics_deploy=true in ansible inventory file, after installation, the specified metricsPublicURL will be added into master config.

Comment 8 errata-xmlrpc 2017-06-12 15:41:03 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-2017:1429