Open ebensh opened 5 months ago
A workaround was provided for bypassing this specific check:
crc config set skip-check-user-in-libvirt-group true
I'm closing it out.
Let's keep this open while we decide if the workaround is the best we can do, or if this can be fixed in crc
Workaround is not the same as solution; there is still something wrong.
I installed CSB-39 to debug networking issue sometime back but didn't hit this issue. Did you customized something else that your user is not detected but uid ?
Not that I'm aware of. The laptop might've been delivered to me with CSB-38 or CSB-37 and later upgraded, but I don't think I've customized anything related to my user or authentication methods.
I used to use my personal laptop with Fedora (not CSB) and had set up my own Kerberos authentication path on the VPN there; when I received my refresh laptop with CSB I started using that instead. It seems the CSB laptop logs in directly to a Kerberos user, instead of also having a local user account - for example, there is no user in /etc/passwd at all for me. On my personal laptop, where I had a local user, tools like k9s and crc had no issues.
FWIW, another team member of mine has similar issues with his CSB laptop, and we both first hit it with k9s: https://github.com/derailed/k9s/issues/2175 , but the core issue seems to be the same thing.
FWIW I suppose the problem with k9s in my case might have been that the libc I was using (from nix) is not configured/built with support for the whatever user DB backend is natively used on Fedora CSB.
@porridge I'm also using nix to install k9s and crc - have you tried installing them via dnf? Do you see the same problem?
and crc - have you tried installing them via dnf?
I haven't.
Hmmm... so this ran from a nix-shell. Can you in that case try it from a regular bash-shell that runs within the Fedora userspace?
@ebensh Hi, did you try to run it from a regular bash shell, and did it help?
General information
OS: Fedora Linux 39 (CSB)
KVM, I think
crc setup
before starting it (Yes/No)?crc setup
is actually the part that is failingLaptop
CRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
crc setup
Expected
Proceed with crc setup
Actual
Logs
Before gather the logs try following if that fix your issue
This seems to be related to Fedora CSB using Kerberos users, not /etc/passwd type local users.
Golang method failing: https://pkg.go.dev/os/user#Current Source: https://cs.opensource.google/go/go/+/master:src/os/user/user.go;l=70?q=user.go
Maybe this helps: https://cs.opensource.google/go/go/+/master:src/os/user/user.go;l=14-17?q=user.go , where they mention that cgo would use a different library to do the user lookup?