Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1508561 - After running the config playbook invalid certificate for docker-registry.default.svc
After running the config playbook invalid certificate for docker-registry.def...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Upgrade (Show other bugs)
3.6.0
Unspecified Unspecified
unspecified Severity medium
: ---
: 3.9.0
Assigned To: Kenny Woodson
Weihua Meng
:
Depends On:
Blocks: 1554481 1554483
  Show dependency treegraph
 
Reported: 2017-11-01 12:40 EDT by Javier Ramirez
Modified: 2018-03-28 10:10 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1554481 1554483 (view as bug list)
Environment:
Last Closed: 2018-03-28 10:09:47 EDT
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-2018:0489 None None None 2018-03-28 10:10 EDT

  None (edit)
Comment 8 Scott Dodson 2018-01-25 10:28:56 EST
David, Javier,

Can you help me understand what all has been done to the environment to necessistate this change? Upgraded environments should not switch to push via dns yet.  Just trying to make a decision as to whether or not we call this a 3.9 or 3.10 target release.
Comment 11 Scott Dodson 2018-01-30 16:14:18 EST
https://github.com/openshift/openshift-ansible/pull/6851 WIP
Comment 12 Scott Dodson 2018-02-02 13:50:32 EST
This has been fixed by checking for a cert that lacks the proper signing and regenerating it if needed so that we can complete the transition to push via DNS.
Comment 17 Weihua Meng 2018-02-07 13:28:44 EST
Fixed.
openshift-ansible-3.9.0-0.38.0.git.0.57e1184.el7.noarch

Steps:
1. setup OCP v3.5 cluster
2. upgrade to OCP v3.6
3. migrate etcd
4. upgrade to OCP v3.7
5. upgrade to OCP v3.9
6. check imagestream
# oc new-project test1
# oc new-app nodejs-mongodb-example
# oc describe imagestreams/nodejs-mongodb-example | grep Docker
before fix
Docker Pull Spec:	172.31.14.93:5000/wmeng39/nodejs-mongodb-example
after fixed
Docker Pull Spec:	docker-registry.default.svc:5000/wmeng39/nodejs-mongodb-example
Comment 18 Weihua Meng 2018-02-09 03:43:57 EST
Got same error.
Pushing image docker-registry.default.svc:5000/wmeng391/nodejs-mongodb-example:latest ...
Registry server Address: 
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: Get https://docker-registry.default.svc:5000/v1/_ping: x509: certificate is valid for docker-registry-default.apps.0206-meb.qe.rhcloud.com, docker-registry.default.svc.cluster.local, 172.31.112.208, not docker-registry.default.svc
Comment 21 Weihua Meng 2018-02-09 03:49:09 EST
Steps:
1. setup OCP v3.5 cluster
2. upgrade to OCP v3.6
3. migrate etcd
4. upgrade to OCP v3.7
5. upgrade to OCP v3.9
6. check build log
# oc new-project wmeng391
# oc new-app nodejs-mongodb-example
# oc logs po/nodejs-mongodb-example-1-build
Comment 22 Scott Dodson 2018-02-22 09:23:34 EST
https://github.com/openshift/openshift-ansible/pull/7121 fixed this and it merged a few days ago
Comment 23 Weihua Meng 2018-02-25 04:51:20 EST
Not fixed.
openshift-ansible-3.9.0-0.51.0.git.0.e26400f.el7.noarch

Steps:
1. setup OCP v3.5 cluster
2. upgrade to OCP v3.6
3. migrate etcd
4. upgrade to OCP v3.7
5. upgrade to OCP v3.9
6. check build log
# oc new-project wmeng39051
# oc new-app nodejs-mongodb-example
# oc logs po/nodejs-mongodb-example-1-build

Pushing image docker-registry.default.svc:5000/wmeng39051/nodejs-mongodb-example:latest ...
Registry server Address: 
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: Get https://docker-registry.default.svc:5000/v1/_ping: x509: certificate is valid for docker-registry-default.apps.0224-l86.qe.rhcloud.com, docker-registry.default.svc.cluster.local, 172.31.92.27, not docker-registry.default.svc
Comment 26 Kenny Woodson 2018-02-27 12:16:12 EST
Proposed fix: https://github.com/openshift/openshift-ansible/pull/7314
Comment 27 Weihua Meng 2018-03-04 04:45:49 EST
Fixed.
openshift-ansible-3.9.2-1.git.0.1a855b3.el7.noarch

Steps:
1. setup OCP v3.5 cluster
2. upgrade to OCP v3.6
3. migrate etcd
4. upgrade to OCP v3.7
5. upgrade to OCP v3.9
6. check build log
# oc new-project wmeng392
# oc new-app nodejs-mongodb-example
# oc logs po/nodejs-mongodb-example-1-build

Pushing image docker-registry.default.svc:5000/wmeng392/nodejs-mongodb-example:latest ...
Pushed 0/6 layers, 2% complete
Pushed 1/6 layers, 27% complete
Pushed 2/6 layers, 44% complete
Pushed 3/6 layers, 58% complete
Pushed 4/6 layers, 71% complete
Pushed 4/6 layers, 100% complete
Pushed 5/6 layers, 100% complete
Pushed 6/6 layers, 100% complete
Push successful
Comment 30 errata-xmlrpc 2018-03-28 10:09:47 EDT
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

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