-
Notifications
You must be signed in to change notification settings - Fork 62
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
panic: failed to lookup nobody user: user: unknown user nobody #228
Comments
I think this might be due to building the driver with |
Ahhhh yep. That makes sense. Here's what I am seeing on my end. Plugin from releases.hashicorp.com file /etc/nomad/plugins/nomad-driver-podman
/etc/nomad/plugins/nomad-driver-podman: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, Go BuildID=tA-nyhXEkFEKjKMCrbWV/9xjUPy06QVQ82b4TatHu/Ra2CBcZm5LKHkBrSQw8R/30CfM25FK3BlHy4UB_3X, with debug_info, not stripped Plugin that I compiled and tested while looking into #227 $ file build/nomad-driver-podman
build/nomad-driver-podman: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=c35039ea25dc9a6adf735a8b4710fc75ee51b6f6, for GNU/Linux 3.2.0, with debug_info, not stripped Can we build the driver with |
Yeah I think that's the most reasonable thing to do - it's what we do for the |
There might be a way to fix this without resorting to building with CGO. The podman driver itself doesn't need any of the code which is causing a problem here - but rather it's being invoked as an
Let me see if we can play some musical chairs with these packages and eliminate that transitive dependency. |
This PR eliminates code specific to looking up and caching the uid/gid/user.User object associated with the nobody user in an init block. This code existed before adding the generic users cache and was meant to optimize the one search path we knew would happen often. Now that we have the cache, seems reasonable to eliminate this init block and use the cache instead like for any other user. Also fixes a constraint on the podman (and other) drivers, where building without CGO became problematic on some OS like Fedora IoT where the nobody user cannot be found with the pure-Go standard library. Fixes github.com/hashicorp/nomad-driver-podman/issues/228
This PR eliminates code specific to looking up and caching the uid/gid/user.User object associated with the nobody user in an init block. This code existed before adding the generic users cache and was meant to optimize the one search path we knew would happen often. Now that we have the cache, seems reasonable to eliminate this init block and use the cache instead like for any other user. Also fixes a constraint on the podman (and other) drivers, where building without CGO became problematic on some OS like Fedora IoT where the nobody user cannot be found with the pure-Go standard library. Fixes github.com/hashicorp/nomad-driver-podman/issues/228
(manual cherry-pick of ed0dfd2) This PR eliminates code specific to looking up and caching the uid/gid/user.User object associated with the nobody user in an init block. This code existed before adding the generic users cache and was meant to optimize the one search path we knew would happen often. Now that we have the cache, seems reasonable to eliminate this init block and use the cache instead like for any other user. Also fixes a constraint on the podman (and other) drivers, where building without CGO became problematic on some OS like Fedora IoT where the nobody user cannot be found with the pure-Go standard library. Fixes github.com/hashicorp/nomad-driver-podman/issues/228
(manual cherry-pick of ed0dfd2) This PR eliminates code specific to looking up and caching the uid/gid/user.User object associated with the nobody user in an init block. This code existed before adding the generic users cache and was meant to optimize the one search path we knew would happen often. Now that we have the cache, seems reasonable to eliminate this init block and use the cache instead like for any other user. Also fixes a constraint on the podman (and other) drivers, where building without CGO became problematic on some OS like Fedora IoT where the nobody user cannot be found with the pure-Go standard library. Fixes github.com/hashicorp/nomad-driver-podman/issues/228 Co-authored-by: Seth Hoenig <shoenig@duck.com>
It looks like we are hitting the same issue that happened in hashicorp/nomad#14737 where the nomad-driver-podman isn't respecting NSS to look up users.
I am running into this issue on Fedora CoreOS 37.20230303.3.0
The text was updated successfully, but these errors were encountered: