Description of problem: Enable metrics deployment during installation with setting openshift_hosted_metrics_deploy=true, installation playbook failed as TASK [openshift_metrics : Check that hawkular_metrics_hostname is set] ********* Tuesday 07 February 2017 09:22:39 +0000 (0:00:00.268) 0:15:16.403 ****** fatal: [ec2-54-152-80-115.compute-1.amazonaws.com]: FAILED! => {"changed": false, "failed": true, "msg": "the openshift_metrics_hawkular_hostname variable is required"} Seems like a new option openshift_metrics_hawkular_hostname is required for metrics deployment, but it wasn't introduced in https://github.com/openshift/openshift-ansible/blob/master/inventory/byo/hosts.ose.example Version-Release number of selected component (if applicable): openshift-ansible-3.5.4-1.git.0.034b615.el7.noarch.rpm ansible-2.2.1.0-2.el7.noarch How reproducible: Always Steps to Reproduce: 1.Set openshift_hosted_metrics_deploy=true in ansible inventory, run the installation playbook Actual results: Expected results: Additional info:
Test this issue with openshift-ansible-3.5.7-1.git.0.5010dec.el7.noarch.rpm. Still got the same error. TASK [openshift_metrics : Check that hawkular_metrics_hostname is set] ********* Saturday 11 February 2017 16:19:16 +0000 (0:00:00.199) 0:20:33.710 ***** fatal: [ec2-52-70-65-86.compute-1.amazonaws.com]: FAILED! => { "changed": false, "failed": true } MSG: the openshift_metrics_hawkular_hostname variable is required
Test this bug with openshift-ansible-3.5.8-1.git.0.0e02ef8.el7.noarch.rpm, it could work well on rpm env, will verify whether it works on containerized env after BZ#1421011 fixed. For rpm installed ocp-3.5 env, set openshift_hosted_metrics_deploy=true in ansible inventory file, installation could be finished, and metrics related pod are all running. [root@ip-172-18-12-122 ~]# oc get pod -n openshift-infra NAME READY STATUS RESTARTS AGE hawkular-cassandra-1-19hhq 1/1 Running 0 4m hawkular-metrics-bm95r 1/1 Running 0 4m heapster-bqr6s 1/1 Running 0 4m
AS BZ#1421011 has been fixed, metrics basic deployment could be done via installer now, verify with openshift-ansible-3.5.10-1.git.0.ba66b63.el7.noarch
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