crc-org / crc-extension

Red Hat OpenShift Local Extension for integration of OpenShift Local clusters with Podman Desktop
Apache License 2.0
12 stars 16 forks source link

[BUG]Cannot start cluster after update because existing vm using previous bundle version #237

Open dgolovin opened 5 days ago

dgolovin commented 5 days ago

After update starting vm fails with error message

OpenShift Local start error: Error: Bundle 'crc_microshift_vfkit_4.15.17_arm64' was requested, but the existing VM is using 'crc_microshift_vfkit_4.15.14_arm64'. Please delete your existing cluster and start again

Stacktrace

[openshift-local] Error: Bundle 'crc_microshift_vfkit_4.15.17_arm64' was requested, but the existing VM is using 'crc_microshift_vfkit_4.15.14_arm64'. Please delete your existing cluster and start again

    at DaemonCommander.start (/Users/eskimo/Sources/podman-desktop/extensions/crc-extension/dist/extension.cjs:9513:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async startCrc (/Users/eskimo/Sources/podman-desktop/extensions/crc-extension/dist/extension.cjs:25132:20)
    at async Object.start (/Users/eskimo/Sources/podman-desktop/extensions/crc-extension/dist/extension.cjs:26288:7)
    at async ProviderRegistry.startProviderConnection (/Users/eskimo/Sources/podman-desktop/packages/main/dist/index.cjs:101421:7)
    at async /Users/eskimo/Sources/podman-desktop/packages/main/dist/index.cjs:123630:9
    at async /Users/eskimo/Sources/podman-desktop/packages/main/dist/index.cjs:122485:26
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:82855)

General information

CRC version

2.38.0

CRC status

DEBU CRC version: 2.38.0+25b6eb                   
DEBU OpenShift version: 4.15.17                   
DEBU Running 'crc status'                         
CRC VM:          Stopped
MicroShift:      Stopped (v4.15.14)
RAM Usage:       0B of 0B
Disk Usage:      0B of 0B (Inside the CRC VM)
Cache Usage:     70.52GB
Cache Directory: /Users/eskimo/.crc/cache

CRC config

- consent-telemetry                     : no
- preset                                : microshift

Host Operating System

ProductName:        macOS
ProductVersion:     14.5
BuildVersion:       23F79

Steps to reproduce

  1. cleanup everything and install previous version
  2. start vm
  3. install update
  4. start vm again

Expected

CRC starts without issues

Actual

image

Logs

N/A

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

Workaround

Delete current instance and create new one.

gbraad commented 5 days ago

Updating is not a flow that is well supported. Related: