crc: macOS oc login error: net/http: TLS handshake timeout

General information

  • OS: macOS Catalina 10.15.6
  • Hypervisor: hyperkit
  • Did you run crc setup before starting it (Yes/No)? YES

CRC version

CodeReady Containers version: 1.14.0+36ad776
OpenShift version: 4.5.4 (embedded in binary)

CRC status

DEBU CodeReady Containers version: 1.14.0+36ad776
DEBU OpenShift version: 4.5.4 (embedded in binary)
DEBU About to run SSH command with hidden output
DEBU SSH command succeeded
DEBU kube-apiserver operator is degraded, Reason: NodeInstaller_InstallerPodFailed
DEBU kube-apiserver operator is still progressing, Reason: NodeInstaller
DEBU operator-lifecycle-manager-packageserver operator not available, Reason:
DEBU operator-lifecycle-manager-packageserver operator is still progressing, Reason:
DEBU About to run SSH command:
df -B1 --output=size,used,target /sysroot | tail -1
DEBU SSH command results: err: <nil>, output: 32720793600 13008052224 /sysroot
CRC VM:          Running
OpenShift:       Degraded
Disk Usage:      13.01GB of 32.72GB (Inside the CRC VM)
Cache Usage:     13.1GB
Cache Directory: /Users/luca/.crc/cache

CRC config

# Put the output of `crc config view`

Host Operating System

ProductName:	Mac OS X
ProductVersion:	10.15.6
BuildVersion:	19G2021

Steps to reproduce

crc console open console on my browser (Safari) and I can connect without problems with developer and kubeadmin users

oc login via CLI does not work with the following error:

~/Utils/OpenShift/crc-macos-1.14.0-amd64 % oc login -u developer -p developer https://api.crc.testing:6443
error: net/http: TLS handshake timeout
~/Utils/OpenShift/crc-macos-1.14.0-amd64 % oc login -u kubeadmin -p DhjTx-8gIJC-2h2tK-eksGY https://api.crc.testing:6443
error: net/http: TLS handshake timeout

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 20 (9 by maintainers)

Most upvoted comments

@savonarola27 Can you create the issue on odo side because odo is now not using oc under the hood but perform the actual login kind of same way which oc does.