Hi Valentin,

Thanks for the additional info and pointer to that issue. Fun coincidence that 8615 must have been created just after I had searched around for an existing issue. For now I've subscribed to that ticket so I can see how this plays out.

Thx,
brian


On Wed, Dec 9, 2020 at 2:45 AM Valentin Rothberg <rothberg@redhat.com> wrote:
Hey Brian,

Thanks for reaching out.  There is a very recent upstream issue for that: https://github.com/containers/podman/issues/8615

For now, there's nothing to worry about. systemd decided to gently deprecate KillMode=none as it was a continuous source of confusion and bugs. We will change none to another mode. I plan to do that before Podman 3.0 early next year.

I pulled in Michal from the systemd team who may elaborate a bit how and when the final deprecation will look like.

Kind regards,
 Valentin

On Wed, Dec 9, 2020 at 4:05 AM Brian Fallik <bfallik@gmail.com> wrote:
Hi,

I've been happily deploying my container services in podman using podman-generate-systemd unit files. Recently I noticed a scary warning in journald:
    XXX systemd[1]: /etc/systemd/system/container-xxx.service:21: 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.
This KillMode line was generated by Podman. 

I don't have any reason to believe that KillMode=none isn't as expected. Podman and systemd are tracking and killing my container processes correctly as far as I can tell. But the final sentence made me wonder if my unit files will suddenly stop working after a future version of systemd removes support for KillMode=none.

A quick Google search and scan of Podman Github issues didn't turn up anything related so I thought I'd ask this group.

Thanks,
brian

_______________________________________________
Podman mailing list -- podman@lists.podman.io
To unsubscribe send an email to podman-leave@lists.podman.io