-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
4.17.0
-
None
-
Quality / Stability / Reliability
-
False
-
-
None
-
Important
-
None
-
None
-
None
-
None
-
None
-
In Progress
-
Release Note Not Required
-
None
-
None
-
None
-
None
-
None
Description of problem:
CLI Manager throws errors in the cli-manager pod logs which reads "UNAUTHORIZED: Please login to the Red Hat Registry using your Customer Portal credentials" even after having the correct pull secret added
0725 11:31:02.633361 1 base_controller.go:266] "CLIManager" controller failed to sync "oc-mirror.rhel9", err: could not pull image: name: registry.redhat.io/openshift4/oc-mirror-plugin-rhel9, error: GET https://registry.redhat.io/auth/realms/rhcc/protocol/redhat-docker-v2/auth?scope=repository%3Aopenshift4%2Foc-mirror-plugin-rhel9%3Apull&service=docker-registry: UNAUTHORIZED: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/articles/3399531; [map[actions:[pull] name:openshift4/oc-mirror-plugin-rhel9 type:repository]] for Plugin: name: oc-mirror.rhel9, platform: {linux/amd64 registry.redhat.io/openshift4/oc-mirror-plugin-rhel9 openshift-config/pull-secret [{/usr/bin/oc-mirror.rhel9 .}] /usr/bin/oc-mirror.rhel9}
Version-Release number of selected component (if applicable):
[knarra@knarra-thinkpadx1carbon7th ~]$ oc get csv -n openshift-cli-manager-operator
NAME DISPLAY VERSION REPLACES PHASE
cli-manager-operator.v0.1.0 CLI Manager 0.1.0 Succeeded
How reproducible:
Always
Steps to Reproduce:
1. Install 4.17 cluster
2. Add catalogsource with the index image provided by dev from konflux
3. Create cli manager operator & cli manager instance
4. Now create plugin using the yaml file below
apiVersion: config.openshift.io/v1alpha1
kind: Plugin
metadata:
creationTimestamp: '2024-07-25T11:31:01Z'
generation: 1
managedFields:
- apiVersion: config.openshift.io/v1alpha1
fieldsType: FieldsV1
fieldsV1:
'f:spec':
.: {}
'f:homepage': {}
'f:platforms': {}
'f:shortDescription': {}
'f:version': {}
manager: Mozilla
operation: Update
time: '2024-07-25T11:31:01Z'
name: oc-mirror.rhel9
resourceVersion: '104118'
uid: b8b190c3-9dd3-48a0-b778-92f9b3768bb6
spec:
homepage: 'https://github.com/openshift/oc-mirror'
platforms:
- bin: /usr/bin/oc-mirror.rhel9
files:
- from: /usr/bin/oc-mirror.rhel9
to: .
image: registry.redhat.io/openshift4/oc-mirror-plugin-rhel9
imagePullSecret: openshift-config/pull-secret
platform: linux/amd64
shortDescription: oc mirror plugin rhel9
version: v4.15.0
5. Run command `oc logs -f <openshift-cli-manager-xxx> -n openshift-cli-manager-operator'
Actual results:
E0725 11:31:02.633361 1 base_controller.go:266] "CLIManager" controller failed to sync "oc-mirror.rhel9", err: could not pull image: name: registry.redhat.io/openshift4/oc-mirror-plugin-rhel9, error: GET https://registry.redhat.io/auth/realms/rhcc/protocol/redhat-docker-v2/auth?scope=repository%3Aopenshift4%2Foc-mirror-plugin-rhel9%3Apull&service=docker-registry: UNAUTHORIZED: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/articles/3399531; [map[actions:[pull] name:openshift4/oc-mirror-plugin-rhel9 type:repository]] for Plugin: name: oc-mirror.rhel9, platform: {linux/amd64 registry.redhat.io/openshift4/oc-mirror-plugin-rhel9 openshift-config/pull-secret [{/usr/bin/oc-mirror.rhel9 .}] /usr/bin/oc-mirror.rhel9}
Expected results:
No errors should be seen as the right pull secrets are added and cluster is able to pull the image correctly
Additional info: