origin icon indicating copy to clipboard operation
origin copied to clipboard

CRC Image Registry docker login issue on Windows - 127.0.0.1:80 connection refused

Open ShrayRastogi opened this issue 5 years ago • 0 comments

When trying to docker login to CRC internal image registry default-route-openshift-image-registry.apps-crc.testing throws error. Its only happening on windows. Works fine when running on Linux.

Version

Client Version: 4.7.5 Kubernetes Version: v1.20.0+bafe72f

Steps To Reproduce
  1. crc start (Windows)
  2. docker login -u kubeadmin -p $(oc whoami -t) default-route-openshift-image-registry.apps-crc.testing
Current Result

Get http://default-route-openshift-image-registry.apps-crc.testing/v2/: dial tcp 127.0.0.1:80: connect: connection refused

Expected Result

Login Succeeded!

Additional Information

I have tried the following -

  1. oc patch configs.imageregistry.operator.openshift.io/cluster --type merge -p '{"spec":{"defaultRoute":true}}'
  2. oc policy add-role-to-user registry-editor kubeadmin
  3. oc policy add-role-to-user registry-viewer kubeadmin

oc get clusteroperator image-registry NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE image-registry 4.7.5 True False False 15d

oc registry info --public default-route-openshift-image-registry.apps-crc.testing

oc get pods -n openshift-image-registry NAME READY STATUS RESTARTS AGE cluster-image-registry-operator-66b48f9bd-ln99j 1/1 Running 0 33d image-registry-77979c4dc7-nszrj 1/1 Running 0 15d node-ca-q6gc8 1/1 Running 0 34d

oc edit configs.imageregistry.operator.openshift.io apiVersion: imageregistry.operator.openshift.io/v1 kind: Config metadata: creationTimestamp: "2021-04-08T06:11:05Z" finalizers:

  • imageregistry.operator.openshift.io/finalizer generation: 5 name: cluster resourceVersion: "28869" selfLink: /apis/imageregistry.operator.openshift.io/v1/configs/cluster uid: 4644048c-fdd2-4c9d-a86a-d398326ee3e3 spec: defaultRoute: true httpSecret: a2361d60ce4c3abf3d39b2810532c3ad6252772f0c1894f68013bbb82904475f8ecd5425ab8df66fad0a6aee616a4c1fc95bb463440b07fced01908543e804d6 logLevel: Normal managementState: Managed observedConfig: null operatorLogLevel: Normal proxy: {} replicas: 1 requests: read: maxWaitInQueue: 0s write: maxWaitInQueue: 0s rolloutStrategy: RollingUpdate storage: managementState: Managed pvc: claim: crc-image-registry-storage unsupportedConfigOverrides: null status: conditions:
  • lastTransitionTime: "2021-04-09T06:37:34Z" reason: PVC Exists status: "True" type: StorageExists
  • lastTransitionTime: "2021-04-26T15:55:33Z" message: The registry is ready reason: Ready status: "True" type: Available
  • lastTransitionTime: "2021-04-26T15:55:56Z" message: The registry is ready reason: Ready status: "False" type: Progressing
  • lastTransitionTime: "2021-04-26T15:55:33Z" status: "False" type: Degraded
  • lastTransitionTime: "2021-04-08T06:11:06Z" status: "False" type: Removed
  • lastTransitionTime: "2021-04-08T06:11:06Z" reason: AsExpected status: "False" type: ImageRegistryCertificatesControllerDegraded
  • lastTransitionTime: "2021-04-08T06:11:07Z" reason: AsExpected status: "False" type: ImageConfigControllerDegraded
  • lastTransitionTime: "2021-04-08T06:11:07Z" reason: AsExpected status: "False" type: NodeCADaemonControllerDegraded generations:
  • group: apps hash: "" lastGeneration: 5 name: image-registry namespace: openshift-image-registry resource: deployments
  • group: apps hash: "" lastGeneration: 0 name: node-ca namespace: openshift-image-registry resource: daemonsets observedGeneration: 5 readyReplicas: 0 storage: managementState: Managed pvc: claim: crc-image-registry-storage storageManaged: true

ShrayRastogi avatar May 12 '21 14:05 ShrayRastogi