-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Document the Systemd warning "Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service" #8615
Comments
@vrothberg We need to work with systemd team for a better way of handling this. |
I think this ship has sailed:
|
@msekletar and I had a chat. There's nothing to worry about. systemd decided to gently deprecate @giuseppe FYI |
what is the suggested alternative to AFAIK, neither |
I guess An alternative may be using @msekletar WDYT? |
|
@giuseppe @msekletar and I had a quick sync on the issue.
|
Is there an issue tracking sdnotify for conmon? |
`KillMode=none` has been deprecated in systemd and is now throwing big warnings when being used. Users have reported the issues upstream (see containers#8615) and on the mailing list. This deprecation was mainly motivated by an abusive use of third-party vendors causing all kinds of undesired side-effects. For instance, busy mounts that delay reboot. After talking to the systemd team, we came up with the following plan: **Short term**: we can use TimeoutStopSec and remove KillMode=none which will default to cgroup. **Long term**: we want to change the type to sdnotify. The plumbing for Podman is done but we need it for conmon. Once sdnotify is working, we can get rid of the pidfile handling etc. and let Podman handle it. Michal Seklatar came up with a nice idea that Podman increase the time out on demand. That's a much cleaner way than hard-coding the time out in the unit as suggest in the short-term solution. This change is executing the short-term plan and sets a minimum timeout of 60 seconds. User-specified timeouts are added to that. Fixes: containers#8615 Signed-off-by: Valentin Rothberg <[email protected]>
These units were originally created by "podman generate systemd" which inserted a KillMode=none directive. That value of KillMode was deprecated by systemd and will be removed in the future. This commit updates the units to be aligned with podman's fix for the issue in containers/podman#8615, which was to drop KillMode and add TimeoutStopSec.
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman generate systemd
generates a service that lead to a warning from Systemd:Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
If the warning from Systemd can be ignored, it should be documented in
podman-generate-systemd.1.md
Steps to reproduce the issue:
Describe the results you received:
I see the warning:
Describe the results you expected:
No warning
Additional information you deem important (e.g. issue happens only occasionally):
I looked quickly in the systemd source code
(https://github.com/systemd/systemd). It seems this warning text is present in v246 but not in v245.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: