-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[Quadlet] Implicit network online dependencies cannot be removed #24193
Comments
Oh, I did not expect that. I assumed you can unset them like other settings. I guess we need a special quadlet key then to unset this. cc @ygalblum |
I was under the same impression, but this was buried quite deep in the man pages.. Noticed this issue while looking at boot plots from systemd-analyze to check why everything seemed to start later than expected. Something like |
I agree. @lambinoo would like to contribute this? |
@ygalblum Sure, got the PR ready! |
Quadlet inserts network-online.target Wants/After dependencies to ensure pulling works. Those systemd statements cannot be subsequently reset. In the cases where those dependencies are not wanted, we add a new configuration item called `DefaultDependencies=` in a new section called [Quadlet]. This section is shared between different unit types. fixes containers#24193 Signed-off-by: Farya L. Maerten <[email protected]>
Issue Description
As explained in the quadlet man page, we should be able to remove the
network-online.target
implicit dependency by just overriding it withAfter=
. But this doesn't really seem to work at all. The network-online dependencies seem to stick even by adding aAfter=
in a[Unit]
section.In the
systemd.unit
man page itself, it even seems to say that you cannot reset "dependencies" (After=, Wants=) into an empty list.Steps to reproduce the issue
Steps to reproduce the issue
Describe the results you received
systemctl cat sleep.service
will show the following:But looking at the effective dependencies of the unit, we can see the following:
Describe the results you expected
That we do not see the network-online.target default dependencies added by quadlet.
podman info output
Running podman version 5.2.2 on Centos 9 stream on an amd64 machine.
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: