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

Aardvark doesn't get started in rootless mode on a system with system-wide but not per-user systemd #1047

Open
Orochimarufan opened this issue Aug 4, 2024 · 1 comment

Comments

@Orochimarufan
Copy link

Netavark assumes it can systemd-run --user aardvark after only checking for system-wide systemd (/var/run/systemd). This may not always be the case (e.g. disabled pam_systemd for some reason).

I realize that these are weird circumstances and they also cause issues wrt control groups, but podman appears to work perfectly fine otherwise.

I have a local patch that skips systemd-run and everything works as expected. I'm not sure what the official solution to this should be, but currently it silently breaks all dns resolution in the container. At least there should be a diagnostic (there probably should be whenever aardvark fails to get started for any reason). Perhaps there's a solution to be found in checking for the user instance after (and only if) the opportunistic systemd-run attempt has failed, so as to not slow down the (overwhelmingly) common case. Unfortunately, the check seems to be a lot less trivial than checking whether or not a constant path exists.

@Luap99
Copy link
Member

Luap99 commented Aug 5, 2024

// TODO: This could be replaced by systemd-api.

we should query the systemd user session in netavark to check if it is working, contributions welcome

Also with netavark 1.12 it will now return a proper error to the user and fail to start the container I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants