Bug 1523638

Summary: default IMAGE_PREFIX for registry-console template should use fully qualified image name
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: high    
Version: 3.7.0CC: aos-bugs, jialiu, jkaur, jokerman, mmccomas, vrutkovs
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The registry console default image is now defined as a fully qualified image registry.access.redhat.com/openshift3/registry-console which means that when a custom registry is specified via oreg_url and image streams are modified to use that custom registry the registry console will also utilize the custom registry.
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-03-28 14:14:24 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:

Description Johnny Liu 2017-12-08 13:10:45 UTC
Description of problem:
1. According to BZ#1506138, the default value for IMAGE_PREFIX should be "registry.access.redhat.com/openshift3/" in https://github.com/openshift/openshift-ansible/blob/master/roles/openshift_hosted_templates/files/v3.7/enterprise/registry-console.yaml#L105.

2. When user set oreg_url to a customized registry, user want installer pull registry-console image from the customized registry by setting openshift_examples_modify_imagestreams=true, but in a result, installer still pull image from registry.access.redhat.com, the openshift_examples_modify_imagestreams=true setting did not take effect as user expectation.


Version-Release number of the following components:
openshift-ansible-3.7.14-1.git.0.4b35b2d.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:
Please include the entire output from the last TASK line through the end of output if an error is generated

Expected results:

Additional info:
Please attach logs from ansible-playbook with the -vvv flag

Comment 5 Johnny Liu 2018-01-25 05:30:34 UTC
This bug is targeted for 3.9, while this bug is attached to a 3.5/3.6/3.7 errata, pls attach it to a correct errata.

Comment 8 Johnny Liu 2018-01-29 10:39:26 UTC
Verified this bug with openshift-ansible-3.9.0-0.31.0.git.0.e0a0ad8.el7.noarch, and PASS.

Setting the following options in inventory file, no openshift_cockpit_deployer_prefix setting.
openshift_examples_modify_imagestreams=true
oreg_url=brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/ose-${component}:v3.9

Installation log:
TASK [openshift_hosted_templates : Modify registry paths if registry_url is not registry.access.redhat.com] ***
Monday 29 January 2018  06:49:23 +0000 (0:00:00.143)       0:03:33.847 ******** 
changed: [host-8-241-117.host.centralci.eng.rdu2.redhat.com] => {"changed": true, "cmd": "find /usr/share/openshift/hosted -type f | xargs -n 1 sed -i 's|registry.access.redhat.com|brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888|g'", "delta": "0:00:00.005076", "end": "2018-01-29 01:49:22.938419", "rc": 0, "start": "2018-01-29 01:49:22.933343", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}


# oc describe po registry-console-1-xckqx|grep Image
    Image:          brew-pulp-docker01.web.prod.ext.phx2.redhat.com:8888/openshift3/registry-console:v3.9

Comment 11 errata-xmlrpc 2018-03-28 14:14:24 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-2018:0489