crc-org / crc-extension

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

[BUG] When initialization failed, impossible to recover and move forward with the extension #181

Open slemeur opened 1 year ago

slemeur commented 1 year ago

General information

CRC version

CRC version: 2.27.0+71615e
OpenShift version: 4.13.12
Podman version: 4.4.4

CRC status

DEBU CRC version: 2.27.0+71615e
DEBU OpenShift version: 4.13.12
DEBU Podman version: 4.4.4
DEBU Running 'crc status'
crc does not seem to be setup correctly, have you run 'crc setup'?

CRC config

- consent-telemetry                     : no
- preset                                : microshift

Host Operating System

ProductName:        macOS
ProductVersion:     14.0
BuildVersion:       23A344

Steps to reproduce

  1. Failed installation of OpenShift Local.
  2. Try to go to settings > resources

Expected

User is able to restart the process

Actual

Impossible to move forward in the flow. The bog button redirects to the settings.

Screenshot 2023-10-03 at 15 04 51

On the dashboard no action button is given either.

Screenshot 2023-10-03 at 15 16 43

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.

anjannath commented 1 year ago

If we go the Settings > Extension > OpenShift Local and then Disable the extension and then enable it again, the Initialize button on the dashboard re-appears.

Maybe in the dashboard on the OpenShift Local tile, we can mention this workaround, to disable and enable the extension from the Settings > Extension > OpenShift Local (this also helps when the detection checks fails and we want the detection checks to run again)

image

deboer-tim commented 1 year ago

That's not bad as a last resort, but it's like telling someone to try rebooting if the CRC cli fails. Couldn't we check and reset the state after any installation attempt (success or failure)?