Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1384772 - Installer doesn't support to change the pointer to non redhat registry
Installer doesn't support to change the pointer to non redhat registry
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.3.0
x86_64 Linux
unspecified Severity high
: ---
: ---
Assigned To: Andrew Butcher
Gaoyun Pei
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-10-14 02:27 EDT by Kenjiro Nakayama
Modified: 2017-03-08 13 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
The openshift-ansible advanced install method now alters the Registry Console's IMAGE_PREFIX value to match the oreg_url prefix when openshift_examples_modify_imagestreams=true allowing users to install from a registry other than registry.access.redhat.com.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-01-18 07:42:55 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0066 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 12:23:26 EST

  None (edit)
Description Kenjiro Nakayama 2016-10-14 02:27:55 EDT
Description of problem:
===
- Installer doesn't support to update template to point to non redhat registry.
- Configuration "oreg_url" + "openshift_examples_modify_imagestreams" will modify imageStream, but registry-console or other template images are not covered them.

Version-Release number of selected component (if applicable):
===
- OCP 3.3 installer

How reproducible:
===
Steps to Reproduce:
1. Set "oreg_url" and "openshift_examples_modify_imagestreams".
2. Run installer

Actual results:
===
- Some images like registry-console still try to be imported from registry.access.redhat.com

Expected results:
===
- They should cover all image imort during the installation to change the registry address.
Comment 1 Andrew Butcher 2016-10-24 10:46:54 EDT
Proposed fix: https://github.com/openshift/openshift-ansible/pull/2573
Comment 3 Gaoyun Pei 2016-10-28 05:29:04 EDT
Verify this bug with openshift-ansible-3.4.13-1.git.0.ff1d588.el7.noarch.rpm

With oreg_url=x.com/openshift3/ose-${component}:${version} and openshift_examples_modify_imagestreams=true setting in ansible inventory file, openshift-ansible will update logging-deployer.yaml, registry-console.yaml and metrics-deployer.yaml as expected:

TASK [openshift_hosted_templates : Modify registry paths if registry_url is not registry.access.redhat.com] ***
Friday 28 October 2016  03:20:59 +0000 (0:00:00.329)       0:08:05.601 ******** 
changed: [104.154.95.135] => {"changed": true, "cmd": "find /usr/share/openshift/hosted -type f | xargs -n 1 sed -i 's|registry.access.redhat.com|x.com|g'", "delta": "0:00:00.014007", "end": "2016-10-27 23:21:00.987094", "rc": 0, "start": "2016-10-27 23:21:00.973087", "stderr": "", "stdout": "", "stdout_lines": [], "warnings": []}

Metrics, logging and registry-console were both deployed with IMAGE_PREFIX=x.com/openshift3/
Comment 4 Kenjiro Nakayama 2017-01-11 07:10:01 EST
mmm... So, "openshift_examples_modify_imagestreams" option will modify the pointer in both imageStream and template? I feel strange that "openshift_examples_*modify_imagestreams*" changes the *template*.

Andrew, I know your PR has already accepted, but please let me confirm if you will change it (introduce new option name or another option for the template separately) or not. We are updating the doc https://bugzilla.redhat.com/show_bug.cgi?id=1374890 right now.
Comment 6 errata-xmlrpc 2017-01-18 07:42:55 EST
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:0066
Comment 7 Scott Dodson 2017-01-24 13:28:57 EST
(In reply to Kenjiro Nakayama from comment #4)
> mmm... So, "openshift_examples_modify_imagestreams" option will modify the
> pointer in both imageStream and template? I feel strange that
> "openshift_examples_*modify_imagestreams*" changes the *template*.
> 
> Andrew, I know your PR has already accepted, but please let me confirm if
> you will change it (introduce new option name or another option for the
> template separately) or not. We are updating the doc
> https://bugzilla.redhat.com/show_bug.cgi?id=1374890 right now.

Independent of the variable name, do you think it's the right thing to modify both at the same time? We can assign a new variable and use defaults. I'd like to understand if you think it's the right thing to do to modify both image streams and templates though.
Comment 8 Kenjiro Nakayama 2017-01-25 02:31:00 EST
No, imageStream and template should be modified with different variables and time.

The templates which have a pointer to "registry.access.redhat.com" are only infra templates like metrics, logging. Unless they use disconnected env, most of the users want to use them from registry.access.redhat.com.
While, imageStreams include application images which users may often want to customize and point to their own repository rather than registry.access.redhat.com.
So, I think the variables should be separated and modify it with different time.

Note You need to log in before you can comment on or make changes to this bug.