Description of problem: When setting spec.managementState in configs.imageregistry.operator.openshift.io/cluster to "Removed", the internalRegistryHostname is not removed from image.config.openshift.io/cluster or from the openshift-apiserver config configmap. Version-Release number of selected component (if applicable): 4.2.x and 4.3.1 (seen in both) How reproducible: Always Steps to Reproduce: 1. Set managementState to "Removed" in configs.imageregistry.operator.openshift.io/cluster Actual results: image.config.openshift.io/cluster still has Status.internalRegistryHostname configured, and the openshift-apiserver configmap config still has imagePolicyConfig.internalRegistryHostname configured Expected results: Configured hostname would have been removed from those resources. Additional info:
Verified on 4.5.0-0.nightly-2020-04-18-184707, when set image registry to Removed, internal registry info in below resources are removed too: zhengwenjings-MacBook-Pro:4.5 wzheng$ oc get cm -n openshift-apiserver image-import-ca -o yaml apiVersion: v1 kind: ConfigMap metadata: creationTimestamp: "2020-04-20T23:25:48Z" name: image-import-ca namespace: openshift-apiserver resourceVersion: "138884" selfLink: /api/v1/namespaces/openshift-apiserver/configmaps/image-import-ca uid: cf5d6e7a-f598-4ba1-b70f-c981cb26bfae zhengwenjings-MacBook-Pro:4.5 wzheng$ oc get image.config.openshift.io/cluster -o yaml apiVersion: config.openshift.io/v1 kind: Image metadata: annotations: release.openshift.io/create-only: "true" creationTimestamp: "2020-04-20T23:14:14Z" generation: 1 name: cluster resourceVersion: "138456" selfLink: /apis/config.openshift.io/v1/images/cluster uid: de1cf545-7581-474c-b0be-854b40c2e342 spec: {} status: {}
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-2020:2409