Skip to content

[BUG] Preset label changes to 'OpenShift Local' when cluster is not started #1086

Description

@danivilla9

General information

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

CRC version

CRC version: 2.60.1+701ff9    
OpenShift version: 4.21.8         
MicroShift version: 4.21.0   

CRC status

INFO Using bundle path C:\Users\podmanqe\.crc\cache\crc_microshift_hyperv_4.21.0_amd64.crcbundle                        INFO Checking minimum RAM requirements                                                                                  INFO Checking if running in a shell with administrator rights                                                           INFO Checking Windows release                                                                                           INFO Checking Windows edition                                                                                           INFO Checking if Hyper-V is installed and operational                                                                   INFO Checking if Hyper-V service is enabled                                                                             INFO Checking if crc-users group exists                                                                                 INFO Checking if current user is in crc-users and Hyper-V admins group                                                  INFO Checking if vsock is correctly configured                                                                          INFO Checking if CRC bundle is extracted in '$HOME/.crc'                                                                INFO Checking if C:\Users\podmanqe\.crc\cache\crc_microshift_hyperv_4.21.0_amd64.crcbundle exists                       INFO Checking if the win32 background launcher is installed                                                             INFO Checking if the daemon task is installed                                                                           INFO Checking if the daemon task is running                                                                             INFO Checking admin helper service is running                                                                           INFO Checking SSH port availability                                                                                     Your system is correctly setup for using CRC. Use 'crc start' to start the instance                                     PS C:\Users\podmanqe> crc config get preset                                                                             preset : microshift                                                                                                     PS C:\Users\podmanqe> crc config get preset                                                                             preset : microshift                                                                                                     PS C:\Users\podmanqe> crc version                                                                                       CRC version: 2.60.1+701ff9                                                                                              OpenShift version: 4.21.8                                                                                               MicroShift version: 4.21.0                                                                                              PS C:\Users\podmanqe> crc status --log-level debug                                                                      DEBU CRC version: 2.60.1+701ff9                                                                                         DEBU OpenShift version: 4.21.8                                                                                          DEBU MicroShift version: 4.21.0                                                                                         DEBU Running 'crc status'                                                                                               ERRO Machine does not exist. Use 'crc start' to create it      

CRC config

- consent-telemetry                     : no
- disk-size                             : 35
- preset                                : microshift

Host Operating System

Host Name:                 DESKTOP-QOUU1SV                                                                              OS Name:                   Microsoft Windows 10 Pro                                                                     OS Version:                10.0.19045 N/A Build 19045                                                                   OS Manufacturer:           Microsoft Corporation                                                                        OS Configuration:          Standalone Workstation                                                                       OS Build Type:             Multiprocessor Free                                                                          Registered Owner:          N/A                                                                                          Registered Organization:   N/A                                                                                          Product ID:                00342-50490-32163-AAOEM                                                                      Original Install Date:     11/15/2023, 2:43:22 PM                                                                       System Boot Time:          4/17/2026, 12:13:05 PM                                                                       System Manufacturer:       Dell Inc.                                                                                    System Model:              Latitude E5470                                                                               System Type:               x64-based PC                                                                                 Processor(s):              1 Processor(s) Installed.                                                                                               [01]: Intel64 Family 6 Model 78 Stepping 3 GenuineIntel ~2396 Mhz                            BIOS Version:              Dell Inc. 1.3.8, 1/20/2016                                                                   Windows Directory:         C:\WINDOWS                                                                                   System Directory:          C:\WINDOWS\system32                                                                          Boot Device:               \Device\HarddiskVolume1                                                                      System Locale:             cs;Czech                                                                                     Input Locale:              en-us;English (United States)                                                                Time Zone:                 (UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague                                Total Physical Memory:     16,046 MB                                                                                    Available Physical Memory: 9,625 MB                                                                                     Virtual Memory: Max Size:  18,478 MB                                                                                    Virtual Memory: Available: 11,277 MB                                                                                    Virtual Memory: In Use:    7,201 MB                                                                                     Page File Location(s):     C:\pagefile.sys                                                                              Domain:                    WORKGROUP                                                                                    Logon Server:              \\DESKTOP-QOUU1SV                                                                            Hotfix(s):                 33 Hotfix(s) Installed.                                                                                                 [01]: KB5066130                                                                                                         [02]: KB5028853                                                                                                         [03]: KB5011048                                                                                                         [04]: KB5012170                                                                                                         [05]: KB5015684                                                                                                         [06]: KB5072653                                                                                                         [07]: KB5071959                                                                                                         [08]: KB5018506                                                                                                         [09]: KB5020372                                                                                                         [10]: KB5031539                                                                                                         [11]: KB5032392                                                                                                         [12]: KB5032907                                                                                                         [13]: KB5034224                                                                                                         [14]: KB5036447                                                                                                         [15]: KB5037018                                                                                                         [16]: KB5037240                                                                                                         [17]: KB5037995                                                                                                         [18]: KB5039336                                                                                                         [19]: KB5041579                                                                                                         [20]: KB5043935                                                                                                         [21]: KB5043130                                                                                                         [22]: KB5046823                                                                                                         [23]: KB5050388                                                                                                         [24]: KB5050111                                                                                                         [25]: KB5052916                                                                                                         [26]: KB5054682                                                                                                         [27]: KB5058526                                                                                                         [28]: KB5059504                                                                                                         [29]: KB5063706                                                                                                         [30]: KB5063261                                                                                                         [31]: KB5063979                                                                                                         [32]: KB5066790                                                                                                         [33]: KB5071982                                                                              Network Card(s):           4 NIC(s) Installed.                                                                                                     [01]: Intel(R) Dual Band Wireless-AC 8260                                                                                     Connection Name: Wi-Fi                                                                                                  Status:          Hardware not present                                                                             [02]: Intel(R) Ethernet Connection I219-LM                                                                                    Connection Name: Ethernet                                                                                               DHCP Enabled:    Yes                                                                                                    DHCP Server:     10.45.248.15                                                                                           IP address(es)                                                                                                          [01]: 10.40.128.130                                                                                                     [02]: fe80::9cdf:107f:dc4f:a8c0                                                                                         [03]: 2620:52:0:2880:91e5:9cac:4e61:c741                                                                                [04]: 2620:52:0:2880:5b53:1a9a:6881:9822                                                                          [03]: Hyper-V Virtual Ethernet Adapter                                                                                        Connection Name: vEthernet (Default Switch)                                                                             DHCP Enabled:    No                                                                                                     IP address(es)                                                                                                          [01]: 172.21.80.1                                                                                                       [02]: fe80::c727:cf0f:ad1e:b023                                                                                   [04]: Hyper-V Virtual Ethernet Adapter                                                                                        Connection Name: vEthernet (WSL)                                                                                        DHCP Enabled:    No                                                                                                     IP address(es)                                                                                                          [01]: 172.24.208.1                                                                                                      [02]: fe80::8056:4ea3:48e5:ab4d                                                        Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.  

Steps to reproduce

  1. Prerequisite: have crc installed, no cluster started, and preset 'openshift'
  2. Assert: preset label (label in parentheses) is 'OpenShift Local'
  3. Change preset through CLI with crc config set preset microshift
  4. Assert: preset label is still 'OpenShift Local' (it shouldn't)
  5. Initialize and start cluster
  6. Assert: preset label becomes 'MicroShift'
  7. Stop and delete the cluster

Expected

Preset label becomes 'MicroShift'

Actual

Preset label comes back to 'OpenShift Local'

Image Image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions