Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1519060

Summary: OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000 was removed within upgrade playbook run
Product: OpenShift Container Platform Reporter: Takayoshi Kimura <tkimura>
Component: UpgradeAssignee: Kenny Woodson <kwoodson>
Status: CLOSED ERRATA QA Contact: liujia <jiajliu>
Severity: high Docs Contact:
Priority: high    
Version: 3.6.0CC: aos-bugs, dmoessne, jokerman, jrosenta, mmccomas, wmeng
Target Milestone: ---   
Target Release: 3.9.0   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The upgrade playbooks previously did not regenerate the registry certificate when upgrading from releases prior to 3.6 which lacked the name 'docker-registry.default.svc'. As such the configuration variables were not updated to push to the registry via DNS. The 3.9 upgrade playbooks now regenerate the certificate when needed ensuring that all environments upgraded to 3.9 now push to the registry via DNS.
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:

Description Takayoshi Kimura 2017-11-30 02:17:19 UTC
Description of problem:

OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000 was removed within upgrade playbook run.

Version-Release number of the following components:

$ rpm -q openshift-ansible
$ rpm -q ansible
$ ansible --version
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/home/nekop/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, May  3 2017, 07:55:04) [GCC 4.8.5 20150623 (Red Hat 4.8.5-14)]

How reproducible:


Steps to Reproduce:

Actual results:

> $ sudo diff /etc/sysconfig/atomic-openshift-master.61444.2017-11-30@09:57:34~ /etc/sysconfig/atomic-openshift-master
> 8d7
> < OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000

Expected results:

No changes in /etc/sysconfig/atomic-openshift-master

Additional info:

Similar issue is reported in  , this test is using latest packages which has the fix.

Comment 9 liujia 2018-02-05 08:23:38 UTC
Reproduced on v3.
1. Fresh install ocp v3., sti-build succeed with pushing images docker-registry.default.svc:5000.
2. Upgrade v3. to v3.
3. Check sti-build succeed with push images 
# diff atomic-openshift-master.1143.2018-02-05@01:40:44~ atomic-openshift-master
< OPTIONS=--loglevel=5
> OPTIONS=--loglevel=2
< OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000

Comment 10 liujia 2018-02-05 08:36:02 UTC
Reproduced on openshift-ansible-3.9.0-0.31.0.git.0.e0a0ad8.el7.noarch.

# diff atomic-openshift-master-api.1872.2018-02-04@21\:55\:29~ atomic-openshift-master-api
< OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000

# diff atomic-openshift-master-controllers.2085.2018-02-04@21\:55\:30~ atomic-openshift-master-controllers
< OPENSHIFT_DEFAULT_REGISTRY=docker-registry.default.svc:5000

Comment 11 liujia 2018-02-05 08:37:08 UTC
Blocked verify by 1540464

Comment 12 liujia 2018-02-07 07:54:24 UTC
Verified on openshift-ansible-3.9.0-0.38.0.git.0.57e1184.el7.noarch

Comment 13 liujia 2018-02-07 07:55:27 UTC
Add case ocp-17955

Comment 16 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.