openshift_env facts overwrite top level keys; a fix is present here: https://github.com/openshift/openshift-ansible/pull/6272 We need an rpm created that includes this fix as it's currently being patched manually.
https://github.com/openshift/openshift-ansible/pull/6293 fix already backported
The patch was merged into openshift-ansible-3.7.14-1.git.0.4b35b2d.el7.noarch. And no such error when trying ocp-3.7 installation with metrics enabled with external nfs. With the following options added in ansible inventory file, start running playbooks/byo/config.yml openshift_metrics_install_metrics=true openshift_metrics_storage_kind=nfs openshift_metrics_storage_host=10.x.x.x openshift_metrics_storage_nfs_directory=/nfs/share/ openshift_metrics_storage_volume_name=metrics openshift_metrics_image_prefix=registry.access.redhat.com/openshift3/ openshift_metrics_storage_labels={"storage": "metrics"} Installation is successful and pv for metrics is created correctly.
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:3464