Hide Forgot
Description of problem: By default OCP image registry is deployed as well as image pullthrough. However, when "openshift_hosted_manage_registry" is set to false because an external image registry is going to be used instead, then referencePolicy field on imagestream objects should be set to "Source" instead. Currently when OCP is installed this is not altered, and it has to be modified manually as follows: oc get is postgresql --export -o yaml -n openshift > is-postgresql.yaml sed 's/Local/Source/' is-postgresql.yaml > is-postgresql-modified.yaml oc delete is postgresql -n openshift oc create -f is-postgresql-modified.yaml -n openshift Version-Release number of the following components: $ rpm -q openshift-ansible openshift-ansible-3.11.92-1.git.0.f2fade7.el7.noarch $ ansible-2.6.15-1.el7ae.noarch rpm -q ansible $ ansible --version ansible 2.6.15 How reproducible: Always Steps to Reproduce: 1. Set openshift_hosted_manage_registry=false in the ansible inventory file 2. Install OCP Actual results: referencePolicy field on imagestream objects definition is set to "Local" instead of "Source" Expected results: It should be set to "Source" instead. Additional info:
PR: https://github.com/openshift/openshift-ansible/pull/11653
Verify this bug with openshift-ansible-3.11.129-1.git.0.11838de.el7.noarch.rpm, when openshift_hosted_manage_registry=false set in ansible inventory file, referencePolicy field is set to "Source" [root@ip-172-18-9-149 ~]# oc get is postgresql --export -o yaml -n openshift |grep referencePolicy -A 1 referencePolicy: type: Source -- referencePolicy: type: Source -- referencePolicy: type: Source -- referencePolicy: type: Source -- referencePolicy: type: Source -- referencePolicy: type: Source In previous openshift-ansible installer - openshift-ansible-3.11.107-1.git.0.c5a8069.el7.noarch.rpm, it was like: [root@ip-172-18-3-101 ~]# oc get is postgresql --export -o yaml -n openshift |grep referencePolicy -A 1 referencePolicy: type: Local -- referencePolicy: type: Local -- referencePolicy: type: Local -- referencePolicy: type: Local -- referencePolicy: type: Local -- referencePolicy: type: Local
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-2019:1753