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] crc console gives incorrect output on microshift preset #4561

Open
rohanKanojia opened this issue Jan 9, 2025 · 0 comments
Open

[BUG] crc console gives incorrect output on microshift preset #4561

rohanKanojia opened this issue Jan 9, 2025 · 0 comments
Labels
kind/bug Something isn't working

Comments

@rohanKanojia
Copy link
Contributor

rohanKanojia commented Jan 9, 2025

General information

I was testing some stuff on microshift cluster related to crc-org/docs#16 . However, I noticed that crc console isn't giving the correct output for microshift preset:

When I do plain crc console, it's opening up file explorer in current directory instead of browser

PS C:\Users\rokum\go\src\github.com\crc-org\docs> crc console
Opening the OpenShift Web Console in the default browser... # Opens File explorer instead

When I try to list credentials, it's showing incomplete command:

PS C:\Users\rokum\go\src\github.com\crc-org\docs> crc console --credentials
To login as a regular user, run 'oc login -u developer -p developer '.
To login as an admin, run 'oc login -u kubeadmin -p  '

Operating System

Windows

Hypervisor

Hyper-V

Did you run crc setup before crc start?

yes

Running on

Laptop

Steps to reproduce

  1. crc config set preset microshift
  2. crc setup
  3. crc start
  4. crc console # Opens up file explorer on windows
  5. crc console --credentials # Gives incomplete output

CRC version

CRC version: 2.45.0+7aeb3b
OpenShift version: 4.17.7
MicroShift version: 4.17.7

CRC status

PS C:\Users\rokum\go\src\github.com\crc-org\docs> crc status
CRC VM:                  Running
MicroShift:              Running (v4.17.7)
RAM Usage:               5.015GB of 16.1GB
Disk Usage:              1.722GB of 4.095GB (Inside the CRC VM)
Persistent Volume Usage: 0B of 15GB (Allocated)
Cache Usage:             57.62GB
Cache Directory:         C:\Users\rokum\.crc\cache

CRC config

- consent-telemetry                     : yes
- preset                                : microshift

Host Operating System

Host Name:                 ROKUMAR-LENOVO
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22631 N/A Build 22631
OS Manufacturer:           Microsoft Corporation
OS Configuration:          Standalone Workstation
OS Build Type:             Multiprocessor Free
Registered Organization:
Product ID:                00330-81616-56784-AA418
Original Install Date:     17-12-2024, 07:05:25
System Boot Time:          09-01-2025, 14:51:05
System Manufacturer:       LENOVO
System Model:              20Y4S1QE0P
System Type:               x64-based PC
Processor(s):              1 Processor(s) Installed.
                           [01]: Intel64 Family 6 Model 141 Stepping 1 GenuineIntel ~2496 Mhz
BIOS Version:              LENOVO N40ET34W (1.16 ), 08-04-2022
Windows Directory:         C:\Windows
System Directory:          C:\Windows\system32
Boot Device:               \Device\HarddiskVolume1
System Locale:             en-us;English (United States)
Input Locale:              00004009
Time Zone:                 (UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi
Total Physical Memory:     65,239 MB
Available Physical Memory: 43,050 MB
Virtual Memory: Max Size:  74,967 MB
Virtual Memory: Available: 52,608 MB
Virtual Memory: In Use:    22,359 MB
Page File Location(s):     C:\pagefile.sys
Domain:                    WORKGROUP
Logon Server:              \\ROKUMAR-LENOVO
Hotfix(s):                 4 Hotfix(s) Installed.
                           [01]: KB5045935
                           [02]: KB5027397
                           [03]: KB5048685
                           [04]: KB5046729
Network Card(s):           6 NIC(s) Installed.
                           [01]: Intel(R) Wi-Fi 6E AX210 160MHz
                                 Connection Name: Wi-Fi
                                 Status:          Media disconnected
                           [02]: Bluetooth Device (Personal Area Network)
                                 Connection Name: Bluetooth Network Connection
                                 Status:          Media disconnected
                           [03]: Lenovo USB Ethernet
                                 Connection Name: Ethernet
                                 DHCP Enabled:    Yes
                                 DHCP Server:     192.168.29.1
                                 IP address(es)
                                 [01]: 192.168.29.207
                                 [02]: fe80::47f5:672f:9a66:4036
                                 [03]: 2405:201:5004:a8c3:8d30:d232:1977:afef
                                 [04]: 2405:201:5004:a8c3:770a:f24a:3d73:c1e7
                           [04]: Wintun Userspace Tunnel
                                 Connection Name: OpenVPN Wintun
                                 Status:          Media disconnected
                           [05]: TAP-Windows Adapter V9
                                 Connection Name: OpenVPN TAP-Windows6
                                 Status:          Media disconnected
                           [06]: OpenVPN Data Channel Offload
                                 Connection Name: OpenVPN Data Channel Offload
                                 Status:          Media disconnected
Hyper-V Requirements:      A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Expected behavior

if this option is unsupported, we should throw an exception with a clear message that this subcommand is unsupported on this preset.

Actual behavior

CRC prints wrong command output

CRC Logs

Additional context

No response

@rohanKanojia rohanKanojia added the kind/bug Something isn't working label Jan 9, 2025
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

1 participant