podman/pkg/systemd/generate
Valentin Rothberg 30df551bde auto-update: simple rollback
Add support for simple rollbacks during `podman auto-update`.  Rollbacks
are enabled by default.  If a systemd unit cannot be restarted after an
update, the previous image will be retagged and the unit will be
restarted a second time.

Add system tests for rollbacks.  Also fix a bug in the restart sequence;
we have to use the channel to actually know whether the restart was
successful or not.

NOTE: To make rollbacks really useful, users must run their containers
with `--sdnotify=container` such that the containers send the ready
message over the (mounted) socket.  This way, restarting the systemd
units during auto update will block until the message has been received
(or a timeout kicked in).

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-05 15:20:38 +02:00
..
common.go auto-update: simple rollback 2021-08-05 15:20:38 +02:00
common_test.go systemd/generate: change type to notify 2021-06-04 10:17:25 +02:00
containers.go auto-update: simple rollback 2021-08-05 15:20:38 +02:00
containers_test.go auto-update: simple rollback 2021-08-05 15:20:38 +02:00
pods.go podman generate systemd --new do not duplicate params 2021-03-28 20:01:17 +02:00
pods_test.go systemd: require network*-online*.target 2021-07-16 14:58:08 +02:00