Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1727595

Summary: image registry operator fails to upgrade 4.1->4.2 due to proxy config
Product: OpenShift Container Platform Reporter: Ben Parees <bparees>
Component: Image RegistryAssignee: Corey Daley <cdaley>
Status: CLOSED ERRATA QA Contact: Wenjing Zheng <wzheng>
Severity: high Docs Contact:
Priority: high    
Version: 4.2.0CC: aos-bugs, cdaley, obulatov, wewang, xiuwang
Target Milestone: ---   
Target Release: 4.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-16 06:33:09 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:
Bug Depends On: 1733015    
Bug Blocks:    

Description Ben Parees 2019-07-07 13:25:49 UTC
Description of problem:
Upgrading a cluster from 4.1->4.2 fails, the image-registry operator never upgrades and instead reports:

E0707 10:56:14.395648       1 controller.go:278] unable to sync: unable to apply objects: failed to update object *v1.Deployment, Namespace=openshift-image-registry, Name=image-registry: unable to get cluster proxy configuration: proxy.config.openshift.io "cluster" not found, requeuing


Version-Release number of selected component (if applicable):
4.2 (upgraded from 4.1)
Cluster Image Registry Operator Version: 4.0.0-229-g7833ddc-dirty

How reproducible:
always

Steps to Reproduce:
1. install 4.1 cluster
2. upgrade to latest 4.2


Additional info:
There was an attempt to fix this here:
https://github.com/openshift/cluster-image-registry-operator/pull/309

but it's still failing in this job which used the latest code:
https://openshift-gce-devel.appspot.com/build/origin-ci-test/logs/release-openshift-origin-installer-e2e-aws-upgrade-4.1-to-4.2/156

registry operator logs are here:
https://storage.googleapis.com/origin-ci-test/logs/release-openshift-origin-installer-e2e-aws-upgrade-4.1-to-4.2/156/artifacts/e2e-aws-upgrade/pods/openshift-image-registry_cluster-image-registry-operator-79684bdcd9-tzr9w_cluster-image-registry-operator.log

Comment 1 Corey Daley 2019-07-07 16:50:57 UTC
Submitted pull request https://github.com/openshift/cluster-image-registry-operator/pull/315 which will just throw a warning into the logs if the proxy configuration does not exist, instead of returning an error.

Comment 2 Corey Daley 2019-07-07 23:30:13 UTC
https://github.com/openshift/cluster-image-registry-operator/pull/316 has merged.  Hopefully it will take care of this issue.

Comment 5 XiuJuan Wang 2019-07-25 07:58:05 UTC
This bug is blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1733015.

Comment 7 errata-xmlrpc 2019-10-16 06:33:09 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-2019:2922