Bug 1969225 - The example nginx image need authentication
Summary: The example nginx image need authentication
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Operator SDK
Version: 4.8
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.8.0
Assignee: Jesus M. Rodriguez
QA Contact: Fan Jia
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-08 03:05 UTC by Fan Jia
Modified: 2021-06-09 06:10 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-06-08 18:20:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1969599 1 unspecified CLOSED images without registry are being prefixed with registry.hub.docker.com instead of docker.io 2021-07-27 23:12:29 UTC

Description Fan Jia 2021-06-08 03:05:57 UTC
Description of problem:
The sample nginx image "registry.hub.docker.com/nginx" need the authentication. Suggest use one nginx image that doesn't need the authentication such as:"docker.io/nginx".

Version-Release number of selected component (if applicable):
1.operator-sdk version:  
"v1.8.0-ocp", commit: "016423f32c9757a10dc7a9e953818bc20ae3eba4", kubernetes version: "v1.20.2", go version: "go1.14.12", GOOS: "linux", GOARCH: "amd64"

2.cluster version:
4.8.0-0.nightly-2021-06-07-034343   True        False         15h     Cluster version is 4.8.0-0.nightly-2021-06-07-034343

How reproducible:
always

Steps to Reproduce:
generate the helm operator by https://docs.openshift.com/container-platform/4.7/operators/operator_sdk/helm/osdk-helm-tutorial.html
1.$mkdir -p $HOME/projects/nginx-operator 
2.$cd $HOME/projects/nginx-operator
3.$operator-sdk init --plugins=helm --domain=example.com --group=demo --version=v1 --kind=Nginx
4.$make install run
5.$oc apply -f config/samples/demo_v1_nginx.yaml

Actual results:
The nginx image can't be downloaded.
$ oc describe pod nginx-sample-7d765fb9cf-df7j5
  Warning  Failed          77m (x4 over 78m)      kubelet            Failed to pull image "nginx:1.16.0": rpc error: code = Unknown desc = Error reading manifest 1.16.0 in registry.hub.docker.com/nginx: unauthorized: authentication required

Expected results:
The sample nginx can run well.

Additional info:

Comment 1 Jesus M. Rodriguez 2021-06-08 13:23:33 UTC
This is not a blocker, this occurs in previous SDK's as well.

Comment 2 Jesus M. Rodriguez 2021-06-08 18:20:30 UTC
This is a result of this node bug: https://bugzilla.redhat.com/show_bug.cgi?id=1969599


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