From 2d61c4e6b8093a399f96e402fc1fdf916341d3f0 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Wed, 23 Oct 2024 08:33:10 +0200 Subject: [PATCH] machine_core: Use `podman restart` in restart_cockpit() That bug got fixed in 2019. --- machine/machine_core/machine.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/machine/machine_core/machine.py b/machine/machine_core/machine.py index 1ab339249..fc5b2b6c3 100644 --- a/machine/machine_core/machine.py +++ b/machine/machine_core/machine.py @@ -285,12 +285,7 @@ def restart_cockpit(self) -> None: """Restart Cockpit. """ if self.ostree_image: - # HACK: podman restart is broken (https://bugzilla.redhat.com/show_bug.cgi?id=1780161) - # self.execute("podman restart `podman ps --quiet --filter ancestor=cockpit/ws`") - inspect_res = self.execute(f"podman inspect {self.get_cockpit_container()}") - tls = "--no-tls" not in inspect_res - self.stop_cockpit() - self.start_cockpit(tls=tls) + self.execute(f"podman restart {self.get_cockpit_container()}") self.wait_for_cockpit_running() else: self.execute("systemctl reset-failed 'cockpit*'; systemctl restart cockpit")