crc: [BUG] crc start fails at INFO Waiting for user's pull secret part of instance disk...

General information

  • OS: Linux
  • Hypervisor: KVM
  • Did you run crc setup before starting it (Yes/No) Yes
  • Running CRC on: Laptop

CRC version

# Put `crc version` output here

`CodeReady Containers version: 1.36.0+c0f4e0d3
OpenShift version: 4.9.8 (embedded in executable)`

CRC status

# Put `crc status --log-level debug` output here

`[adithya@localhost ~]$ crc status --log-level debug
DEBU CodeReady Containers version: 1.36.0+c0f4e0d3 
DEBU OpenShift version: 4.9.8 (embedded in executable) 
DEBU Running 'crc status'                         
DEBU Checking file: /home/adithya/.crc/machines/crc/.crc-exist 
DEBU Checking file: /home/adithya/.crc/machines/crc/.crc-exist 
DEBU Found binary path at /home/adithya/.crc/bin/crc-driver-libvirt 
DEBU Launching plugin server for driver libvirt   
DEBU Plugin server listening at address 127.0.0.1:36868 
DEBU () Calling .GetVersion                       
DEBU Using API Version 1                          
DEBU () Calling .SetConfigRaw                     
DEBU () Calling .GetMachineName                   
DEBU (crc) Calling .GetState                      
DEBU (crc) DBG | time="2021-12-03T12:05:58+05:30" level=debug msg="Getting current state..." 
DEBU (crc) DBG | time="2021-12-03T12:05:58+05:30" level=debug msg="Fetching VM..." 
DEBU (crc) Calling .GetBundleName                 
DEBU (crc) Calling .GetIP                         
DEBU (crc) DBG | time="2021-12-03T12:06:00+05:30" level=debug msg="GetIP called for crc" 
DEBU (crc) DBG | time="2021-12-03T12:06:00+05:30" level=debug msg="Getting current state..." 
DEBU (crc) DBG | time="2021-12-03T12:06:00+05:30" level=debug msg="IP address: 192.168.130.11" 
DEBU Running SSH command: df -B1 --output=size,used,target /sysroot | tail -1 
DEBU Using ssh private keys: [/home/adithya/.crc/machines/crc/id_ecdsa /home/adithya/.crc/cache/crc_libvirt_4.9.8/id_ecdsa_crc] 
DEBU SSH command results: err: <nil>, output: 32737570816 13687865344 /sysroot 
DEBU cannot get OpenShift status: stat /home/adithya/.crc/machines/crc/kubeconfig: no such file or directory 
DEBU Making call to close driver server           
DEBU (crc) Calling .Close                         
DEBU Successfully made call to close driver server 
DEBU Making call to close connection to plugin binary 
CRC VM:          Running
OpenShift:       Unreachable (v4.9.8)
Disk Usage:      13.69GB of 32.74GB (Inside the CRC VM)
Cache Usage:     15.6GB
Cache Directory: /home/adithya/.crc/cache
`

CRC config

# Put `crc config view` output here

`[adithya@localhost ~]$ crc config view
- consent-telemetry                     : yes
- pull-secret-file                      : /home/adithya/Downloads/pull-secret.txt
`

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
`[adithya@localhost ~]$ cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
`

Steps to reproduce

  1. Just running crc start

Expected

openshift cluster running

Actual

failing at INFO Waiting for kube-apiserver availability... [takes around 2min] INFO Adding user's pull secret to the cluster... INFO Updating SSH key to machine config resource... INFO Waiting for user's pull secret part of instance disk... Failed to update kubeadmin user password: Temporary error: ssh command error: command : timeout 5s oc get secret --context admin --cluster crc --kubeconfig /opt/kubeconfig err : Process exited with status 124 (x12)

Logs

Before gather the logs try following if that fix your issue

$ crc delete -f
$ crc cleanup
$ crc setup
$ crc start --log-level debug

Please consider posting the output of crc start --log-level debug on http://gist.github.com/ and post the link in the issue. https://gist.github.com/adithyagk/4f7319d49cac498e119c125f166e9911

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (4 by maintainers)

Most upvoted comments

i have just tried crc stop => crc delete => crc start I have 16gigs of Ram CPU is 4 core (its a gaming laptop 🥇 )