Bug 1384772 - Installer doesn't support to change the pointer to non redhat registry
Summary: Installer doesn't support to change the pointer to non redhat registry
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.3.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Andrew Butcher
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-14 06:27 UTC by Kenjiro Nakayama
Modified: 2017-03-08 18:43 UTC (History)
7 users (show)

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.
Clone Of:
Environment:
Last Closed: 2017-01-18 12:42:55 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1374890 0 low CLOSED [docs] documentation should mention about "oreg_url" and "openshift_examples_modify_imagestreams" parmeters 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2017:0066 0 normal SHIPPED_LIVE Red Hat OpenShift Container Platform 3.4 RPM Release Advisory 2017-01-18 17:23:26 UTC

Internal Links: 1374890

Description Kenjiro Nakayama 2016-10-14 06:27:55 UTC
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 14:46:54 UTC
Proposed fix: https://github.com/openshift/openshift-ansible/pull/2573

Comment 3 Gaoyun Pei 2016-10-28 09:29:04 UTC
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 12:10:01 UTC
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 12:42:55 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-2017:0066

Comment 7 Scott Dodson 2017-01-24 18:28:57 UTC
(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 07:31:00 UTC
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.