Skip to content

Commit

Permalink
machine_core: Use podman restart in restart_cockpit()
Browse files Browse the repository at this point in the history
That bug got fixed in 2019.
  • Loading branch information
martinpitt committed Oct 23, 2024
1 parent 444a4a8 commit 2d61c4e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions machine/machine_core/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 2d61c4e

Please sign in to comment.