crc: New crc release start failed on RHEL and MacOS where previous release deployed

General information

  • OS: Linux / macOS
  • Hypervisor: KVM / hyperkit
  • Did you run crc setup before starting it (Yes)?

CRC version

$ crc version
crc version: 1.1.0+95966a9
OpenShift version: 4.2.2 (embedded in binary)

CRC status

# For RHEL
$ crc status
Machine 'crc' does not exist. Use 'crc start' to create it.

# For Mac
$ crc status
ERRO error: stat /Users/morningspace/.crc/machines/crc/kubeconfig: no such file or directory
 - exit status 1

CRC config

# Put the output of `crc config view`
Nothing returned

Host Operating System

# Put the output of `cat /etc/os-release` in case of Linux
NAME="Red Hat Enterprise Linux Server"
VERSION="7.6 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.6"
PRETTY_NAME="Red Hat Enterprise Linux Server 7.6 (Maipo)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:7.6:GA:server"
HOME_URL="https://www.redhat.com/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 7"
REDHAT_BUGZILLA_PRODUCT_VERSION=7.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="7.6"

# Put the output of `sw_vers` in case of Mac
$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.15.1
BuildVersion:	19B88

Steps to reproduce

  1. Both the MacOS and RHEL machines have been used to successfully deploy a previous release of crc (1.0.0).
  2. After I download the new release (1.1.0), and run crc setup, then crc start:
  • On RHEL, it failed at domain 'crc' already exists with uuid xxxxx, e.g.:
INFO Extracting bundle: crc_libvirt_4.2.2.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.2.2...
ERRO Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: virError(Code=9, Domain=20, Message='operation failed: domain 'crc' already exists with uuid 84b5685a-03bd-4a27-9d44-266d8f2a9272')
  • On MacOS, it keeps hanging at INFO Creating CodeReady Containers VM for OpenShift 4.2.2... for ever. I’ve been waiting for a few hours, before press Ctrl+C. e.g.:
$ crc start -p ~/.crc/pull-secret.txt
INFO Checking if running as non-root
INFO Checking if oc binary is cached
INFO Checking if HyperKit is installed
INFO Checking if crc-driver-hyperkit is installed
INFO Checking file permissions for /etc/resolver/testing
INFO Checking file permissions for /etc/hosts
INFO Extracting bundle: crc_hyperkit_4.2.2.crcbundle ...
INFO Creating CodeReady Containers VM for OpenShift 4.2.2...
  1. Run crc stop, crc delete, crc status after start failed.
  • On RHEL:
$ crc stop
Machine 'crc' does not exist. Use 'crc start' to create it.
$ crc delete
Machine 'crc' does not exist. Use 'crc start' to create it.
$ crc status
Machine 'crc' does not exist. Use 'crc start' to create it.
  • On MacOS:
$ crc stop
Stopping the OpenShift cluster, this may take a few minutes...
ERRO Machine "crc" is already stopped.
$ crc delete
Do you want to delete the OpenShift cluster? [y/N]: y
Deleted the OpenShift cluster
$ crc status
Machine 'crc' does not exist. Use 'crc start' to create it.
  1. The same issue happened even I remove ~/.crc.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 24 (13 by maintainers)

Most upvoted comments

You are probably in an inconsistent state by removing the ~/.crc folder manually. Please use the hypervisor manager, or the CLI tool on Linux to remove the artifacts. like virsh undefine crc, after which you perform crc delete -f. (note the force option)

The same issue happened even I remove ~/.crc.

This is the reason why you get this error.

On Mon, Nov 18, 2019 at 1:11 PM MorningSpace notifications@github.com wrote:

General information

  • OS: Linux / macOS
  • Hypervisor: KVM / hyperkit
  • Did you run crc setup before starting it (Yes)?

CRC version

$ crc version crc version: 1.1.0+95966a9 OpenShift version: 4.2.2 (embedded in binary)

CRC status

For RHEL

$ crc status Machine ‘crc’ does not exist. Use ‘crc start’ to create it.

For Mac

$ crc status ERRO error: stat /Users/morningspace/.crc/machines/crc/kubeconfig: no such file or directory

  • exit status 1

CRC config

Put the output of crc config view

Nothing returned

Host Operating System

Put the output of cat /etc/os-release in case of Linux

NAME=“Red Hat Enterprise Linux Server” VERSION=“7.6 (Maipo)” ID=“rhel” ID_LIKE=“fedora” VARIANT=“Server” VARIANT_ID=“server” VERSION_ID=“7.6” PRETTY_NAME=“Red Hat Enterprise Linux Server 7.6 (Maipo)” ANSI_COLOR=“0;31” CPE_NAME=“cpe:/o:redhat:enterprise_linux:7.6:GA:server” HOME_URL=“https://www.redhat.com/” BUG_REPORT_URL=“https://bugzilla.redhat.com/

REDHAT_BUGZILLA_PRODUCT=“Red Hat Enterprise Linux 7” REDHAT_BUGZILLA_PRODUCT_VERSION=7.6 REDHAT_SUPPORT_PRODUCT=“Red Hat Enterprise Linux” REDHAT_SUPPORT_PRODUCT_VERSION=“7.6”

Put the output of sw_vers in case of Mac

$ sw_vers ProductName: Mac OS X ProductVersion: 10.15.1 BuildVersion: 19B88

Steps to reproduce

  1. Both the MacOS and RHEL machines have been used to successfully deploy a previous release of crc (1.0.0).
  2. After I download the new release (1.1.0), and run crc setup, then crc start:
  • On RHEL, it failed at domain ‘crc’ already exists with uuid xxxxx, e.g.:

INFO Extracting bundle: crc_libvirt_4.2.2.crcbundle … INFO Creating CodeReady Containers VM for OpenShift 4.2.2… ERRO Error creating host: Error creating the VM: Error creating machine: Error in driver during machine creation: virError(Code=9, Domain=20, Message=‘operation failed: domain ‘crc’ already exists with uuid 84b5685a-03bd-4a27-9d44-266d8f2a9272’)

  • On MacOS, it keeps hanging at INFO Creating CodeReady Containers VM for OpenShift 4.2.2… for ever. I’ve been waiting for a few hours, before press Ctrl+C. e.g.:

$ crc start -p ~/.crc/pull-secret.txt INFO Checking if running as non-root INFO Checking if oc binary is cached INFO Checking if HyperKit is installed INFO Checking if crc-driver-hyperkit is installed INFO Checking file permissions for /etc/resolver/testing INFO Checking file permissions for /etc/hosts INFO Extracting bundle: crc_hyperkit_4.2.2.crcbundle … INFO Creating CodeReady Containers VM for OpenShift 4.2.2…

  1. Run crc stop, crc delete, crc status after start failed.

On RHEL:

$ crc stop Machine ‘crc’ does not exist. Use ‘crc start’ to create it. $ crc delete Machine ‘crc’ does not exist. Use ‘crc start’ to create it. $ crc status Machine ‘crc’ does not exist. Use ‘crc start’ to create it.

On MacOS:

$ crc stop Stopping the OpenShift cluster, this may take a few minutes… ERRO Machine “crc” is already stopped. $ crc delete Do you want to delete the OpenShift cluster? [y/N]: y Deleted the OpenShift cluster $ crc status Machine ‘crc’ does not exist. Use ‘crc start’ to create it.

  1. The same issue happened even I remove ~/.crc.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/code-ready/crc/issues/815?email_source=notifications&email_token=AAAAOZVCR7K6K3FJF6FQ75LQUIPYNA5CNFSM4JOOF4GKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HZ5XKVQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAAOZRVGQJMBBL76H6QBN3QUIPYNANCNFSM4JOOF4GA .

Gerard Braad | http://gbraad.nl [ Doing Open Source Matters ]