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

Bug 2023810

Summary: kube-rbac-proxy image reference is not getting replaced by ART
Product: OpenShift Container Platform Reporter: Carlos Eduardo Arango Gutierrez <carangog>
Component: Node Feature Discovery OperatorAssignee: Carlos Eduardo Arango Gutierrez <carangog>
Status: CLOSED ERRATA QA Contact: liqcui
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.10CC: aos-bugs, sejug
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2023812 (view as bug list) Environment:
Last Closed: 2022-03-10 15:56:48 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:    
Bug Blocks: 2023812, 2023813    

Description Carlos Eduardo Arango Gutierrez 2021-11-16 15:47:01 UTC
Current CSV image replacement doesn't work for disconnected envs

```
  Normal   Scheduled       86s                default-scheduler  Successfully assigned openshift-nfd/nfd-controller-manager-559fc85c8b-zp77l to ip-10-0-73-99.us-east-2.compute.internal
  Normal   AddedInterface  85s                multus             Add eth0 [10.131.2.16/23] from openshift-sdn
  Warning  Failed          25s                kubelet            Failed to pull image "registry.redhat.io/openshift4/ose-kube-rbac-proxy": rpc error: code = Unknown desc = pinging container registry registry.redhat.io: Get "https://registry.redhat.io/v2/": dial tcp 184.84.168.69:443: i/o timeout
  Warning  Failed          25s                kubelet            Error: ErrImagePull
  Normal   Pulling         25s                kubelet            Pulling image "registry.redhat.io/openshift4/ose-cluster-nfd-operator@sha256:445dbd807cdb3e311baf319aee7d5afd0c0aea575c192b35e1aafd906335ba29"
  Normal   Started         18s                kubelet            Started container manager
  Normal   Pulled          18s                kubelet            Successfully pulled image "registry.redhat.io/openshift4/ose-cluster-nfd-operator@sha256:445dbd807cdb3e311baf319aee7d5afd0c0aea575c192b35e1aafd906335ba29" in 6.940610088s
  Normal   Created         18s                kubelet            Created container manager
  Normal   BackOff         16s (x2 over 17s)  kubelet            Back-off pulling image "registry.redhat.io/openshift4/ose-kube-rbac-proxy"
  Warning  Failed          16s (x2 over 17s)  kubelet            Error: ImagePullBackOff
  Normal   Pulling         7s (x2 over 85s)   kubelet            Pulling image "registry.redhat.io/openshift4/ose-kube-rbac-proxy"
[ocpadmin@ec2-18-217-45-133 nfd]$ ls
```

Comment 1 liqcui 2021-11-17 02:42:43 UTC
Verified Result 

[ocpadmin@ec2-18-217-45-133 ~]$ oc describe pod nfd-controller-manager-65b996df65-4lw6n -n openshift-operators
Name:         nfd-controller-manager-65b996df65-4lw6n
Namespace:    openshift-operators
Priority:     0
Node:         ip-10-0-168-245.us-east-2.compute.internal/10.0.168.245
Start Time:   Wed, 17 Nov 2021 02:31:52 +0000
Labels:       control-plane=controller-manager
              pod-template-hash=65b996df65
Annotations:  alm-examples:
                [
                  {
                    "apiVersion": "nfd.openshift.io/v1",
                    "kind": "NodeFeatureDiscovery",
                    "metadata": {
                      "name": "nfd-instance",
                      "namespace": "openshift-nfd"
                    },
                    "spec": {
..........

 Type    Reason          Age   From               Message
  ----    ------          ----  ----               -------
  Normal  Scheduled       2m6s  default-scheduler  Successfully assigned openshift-operators/nfd-controller-manager-65b996df65-4lw6n to ip-10-0-168-245.us-east-2.compute.internal
  Normal  AddedInterface  2m5s  multus             Add eth0 [10.129.2.20/23] from openshift-sdn
  Normal  Pulling         2m5s  kubelet            Pulling image "registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:560c0f7af89687d0c91149b90606ba93efc48da8b8f820c6e1b00bd3c2a1701f"
  Normal  Pulled          119s  kubelet            Successfully pulled image "registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:560c0f7af89687d0c91149b90606ba93efc48da8b8f820c6e1b00bd3c2a1701f" in 5.755499178s
  Normal  Created         119s  kubelet            Created container kube-rbac-proxy
  Normal  Started         119s  kubelet            Started container kube-rbac-proxy
  Normal  Pulling         119s  kubelet            Pulling image "registry.redhat.io/openshift4/ose-cluster-nfd-operator@sha256:efe7657e8ccea275b17d949a077075fffc8c14ea7d040762af6d3907cf0892e4"
  Normal  Pulled          114s  kubelet            Successfully pulled image "registry.redhat.io/openshift4/ose-cluster-nfd-operator@sha256:efe7657e8ccea275b17d949a077075fffc8c14ea7d040762af6d3907cf0892e4" in 5.230275016s
  Normal  Created         114s  kubelet            Created container manager
  Normal  Started         113s  kubelet            Started container manager
[ocpadmin@ec2-18-217-45-133 ~]$ oc get clusterversion
NAME      VERSION                              AVAILABLE   PROGRESSING   SINCE   STATUS
version   4.10.0-0.nightly-2021-11-15-034648   True        False         14m     Cluster version is 4.10.0-0.nightly-2021-11-15-034648

The image has change to SHA format
registry.redhat.io/openshift4/ose-kube-rbac-proxy@sha256:560c0f7af89687d0c91149b90606ba93efc48da8b8f820c6e1b00bd3c2a1701f

Comment 4 errata-xmlrpc 2022-03-10 15:56:48 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 (OpenShift Container Platform 4.10.3 extras update), 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-2022:0057