Paul Holzinger
c0f4e2ce67
healthcheck: do not leak service on failed stop
...
We reset the failed unit to not leak it, however we did so before
stopping, this is wrong because when the stop fails we will again have a
failed unit. The correct thing is to reset after the stop because once
it is stopped it cannot create new errors.
I found this using the following reproducer and this is enough to fix
it:
```
while :; do
cid=$(podman run -d --name foo --health-cmd /home/podman/healthcheck \
--health-startup-cmd /home/podman/healthcheck \
quay.io/libpod/testimage:20241011 /home/podman/pause)
podman healthcheck run $cid
podman rm -fa
sleep 2
systemctl --user list-units --failed | grep $cid && break
done
```
Signed-off-by: Paul Holzinger <pholzing@redhat.com >
2024-10-25 15:27:05 +02:00
..
2024-10-24 13:49:51 +02:00
2024-02-08 09:35:39 -05:00
2024-09-25 14:01:35 +02:00
2017-11-01 11:24:59 -04:00
2024-01-04 11:53:38 +02:00
2024-08-12 11:38:02 -04:00
2024-09-03 15:14:15 +02:00
2024-04-19 09:52:14 +02:00
2024-09-26 16:20:56 +02:00
2024-07-11 09:39:56 -04:00
2024-04-19 09:52:14 +02:00
2024-02-08 09:35:39 -05:00
2024-09-17 17:35:17 +02:00
2024-02-08 09:35:39 -05:00
2024-09-25 14:01:35 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-12 09:13:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-09-02 11:21:35 +01:00
2024-10-01 12:52:18 -07:00
2024-10-24 13:49:51 +02:00
2024-10-11 23:04:27 +02:00
2024-08-09 10:57:24 +02:00
2024-01-04 11:53:38 +02:00
2024-09-26 15:39:20 +02:00
2024-01-04 11:53:38 +02:00
2024-09-25 14:01:35 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-04-08 11:36:50 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-06-27 10:50:17 +02:00
2024-08-19 11:41:28 +02:00
2024-01-04 11:53:38 +02:00
2024-10-01 07:54:52 -04:00
2024-08-20 09:51:18 -04:00
2024-02-08 09:35:39 -05:00
2022-03-23 19:05:29 +01:00
2024-09-25 14:01:35 +02:00
2024-10-25 15:27:05 +02:00
2024-06-04 18:03:46 +02:00
2024-06-04 18:03:46 +02:00
2024-10-25 13:47:59 +02:00
2024-02-08 09:35:39 -05:00
2024-04-10 11:55:35 +02:00
2024-02-08 09:35:39 -05:00
2024-09-18 13:24:34 -04:00
2024-09-17 20:31:28 +00:00
2024-01-04 11:53:38 +02:00
2024-09-27 12:54:24 -04:00
2024-03-19 12:09:31 +01:00
2024-09-03 15:14:15 +02:00
2024-09-20 15:19:22 +02:00
2024-01-04 11:53:38 +02:00
2024-03-19 12:09:31 +01:00
2024-02-08 09:35:39 -05:00
2024-07-12 15:11:34 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-10-04 16:17:04 +02:00
2024-02-12 09:13:39 -05:00
2024-02-02 11:02:43 -05:00
2024-02-02 11:02:43 -05:00
2024-06-21 18:01:26 +02:00
2024-06-21 18:01:26 +02:00
2024-01-04 11:53:38 +02:00
2024-08-16 15:34:16 +02:00
2024-07-30 14:39:08 +02:00
2024-08-16 15:34:16 +02:00
2024-09-27 12:54:24 -04:00
2024-08-27 15:01:23 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-07-22 10:30:42 +02:00
2024-05-29 11:10:55 +02:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-09-27 15:15:23 +02:00
2024-04-05 10:07:42 -04:00
2024-04-24 12:07:38 +08:00
2024-04-05 10:07:42 -04:00
2024-02-08 09:35:39 -05:00
2024-01-12 09:19:34 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-23 11:16:40 +02:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-10-22 08:49:56 -04:00
2024-08-15 11:07:27 +02:00
2024-07-09 11:15:29 +02:00
2024-10-08 18:03:15 +02:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-08-27 13:38:40 -04:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-02-08 09:35:39 -05:00
2024-04-13 15:20:19 +08:00
2024-04-13 15:20:19 +08:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-09-04 05:30:35 +00:00
2024-09-27 12:54:24 -04:00
2024-02-08 09:35:39 -05:00
2024-02-08 09:35:39 -05:00
2024-01-04 11:53:38 +02:00
2024-01-04 11:53:38 +02:00
2024-05-22 17:47:01 -04:00
2024-05-22 17:47:01 -04:00