Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Failure to start CRC on Fedora 30 #711

Closed
bradfordcp opened this issue Oct 11, 2019 · 9 comments
Closed

[BUG] Failure to start CRC on Fedora 30 #711

bradfordcp opened this issue Oct 11, 2019 · 9 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@bradfordcp
Copy link

General information

  • OS: Linux - Fedora 30
  • Hypervisor: KVM (libvirt?)
  • Did you run crc setup before starting it (Yes/No)? Yes

CRC version

# Put `crc version` output here
OpenShift version: 4.2.0-0.nightly-2019-09-26-192831 (embedded in binary)

CRC status

# Put `crc status` output here
crc status
ERRO Error occurred: error: stat /home/bradfordcp/.crc/machines/crc/kubeconfig: no such file or directory
 - exit status 1
crc stop
crc status
CRC VM:          Stopped
OpenShift:       Stopped
Disk Usage:      0B of 0B (Inside the CRC VM)
Cache Usage:     15.95GB
Cache Directory: /home/bradfordcp/.crc/cache

/ Hyper-V / VirtualBox / hyperkit

CRC config

# Put `crc config view` output here
<empty>

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
NAME=Fedora
VERSION="30 (Thirty)"
ID=fedora
VERSION_ID=30
VERSION_CODENAME=""
PLATFORM_ID="platform:f30"
PRETTY_NAME="Fedora 30 (Thirty)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:30"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f30/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"

Steps to reproduce

  1. crc setup
  2. crc start

Expected

The virtual machine finishes starting

Actual

ERRO Error occurred: parsing time "" as "2006-01-02T15:04:05Z07:00": cannot parse "" as "2006"

it appears as though a virtual machine is running. Running crc stop and crc start results in

ERRO Error occurred: Failed to connect to the crc VM with SSH

Logs

You can start crc with crc start --log-level debug to collect logs.
Please consider posting this on http://gist.github.com/ and post the link in the issue.
https://gist.github.com/bradfordcp/cce618e5a72d55f65ea4e9d83e9e9722

@bradfordcp bradfordcp added the kind/bug Something isn't working label Oct 11, 2019
@joetatrh
Copy link

joetatrh commented Oct 13, 2019

Same issue here on Fedora 30 with crc-1.0.0-rc.0 , which did not appear on crc-1.0.0-beta.5 .

Problem no longer appears after doing:

sudo virsh net-destroy crc

Specifically, did:

crc stop
crc delete
sudo virsh undefine crc --remove-all-storage
sudo virsh net-destroy crc
sudo rm -f /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf /etc/NetworkManager/dnsmasq.d/crc.conf
crc setup
crc start

@cfergeau
Copy link
Contributor

The last change in crc network definition was changed in beta.5, so I'm surprised if this would make a difference. Maybe the crc-nm-dnsmasq.conf/crc.conf removal, but these should be overwritten during setup if needed.
Did you try 'crc delete' before runinng 'crc setup && crc start'? Can you paste the full debug log (add --log-level debug to the command line)?

@wzzrd
Copy link

wzzrd commented Oct 14, 2019

Can confirm. Started happening very recently. Have wiped ~/.crc and have removed VM, didn't help.
Removed crc network, NetworkManager config, restarted libvirtd back in business.
Unsure what the problem was...

For what it's worth, the crc VM startup always broke during:

INFO Verifying validity of the cluster certificates ...

The step before that ("Creating CodeReady Containers VM for...") to a long time.

@praveenkumar praveenkumar self-assigned this Oct 14, 2019
@bradfordcp
Copy link
Author

The full debug log is linked to a gist as part of the original ticket. Following the steps at #711 (comment) resolved my issue.

@praveenkumar
Copy link
Member

We have fixed this issue since using the golang ssh implementation, it was failing beforehand but ignored by the implementation. we changed back to host ssh binary for linux and mac.

@drpaneas
Copy link
Contributor

I am still seeing this error:

ERRO Failed to connect to the CRC VM with SSH

Following the steps where @bradfordcp suggested, they did not solve the problem for me. Any suggestions?

$ crc version
crc version: 1.5.0+e1c8fb8
OpenShift version: 4.2.14 (embedded in binary)

@cfergeau
Copy link
Contributor

@drpaneas it would be best to open a new issue and provide all the information listed in the bug reporting template

@jadelafuente
Copy link

I am still seeing this issue
crc version: 1.6.0+8ef676f
OpenShift version: 4.3.0 (embedded in binary)

@cfergeau
Copy link
Contributor

@jadelfuente, same comment as above, it would be best to open a new issue and provide all the information listed in the bug reporting template

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants