From b1fd2b40f7cd1c6c457bd42b25ca32dc1e5e0f4f Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Thu, 4 Jan 2024 22:26:13 +0100 Subject: Fix long service restarts while using systemd Some containers exiting with 143 instead of 0, but this is still OK. This patch just allows ExitCode 143 (SIGTERM) as fix. Details in bugreport. Services which exited with 143 (SIGTERM): kolla-cron-container.service kolla-designate_producer-container.service kolla-keystone_fernet-container.service kolla-letsencrypt_lego-container.service kolla-magnum_api-container.service kolla-mariadb_clustercheck-container.service kolla-neutron_l3_agent-container.service kolla-openvswitch_db-container.service kolla-openvswitch_vswitchd-container.service kolla-proxysql-container.service Partial-Bug: #2048130 Change-Id: Ia8c85d03404cfb368e4013066c67acd2a2f68deb --- ansible/module_utils/kolla_systemd_worker.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ansible/module_utils') diff --git a/ansible/module_utils/kolla_systemd_worker.py b/ansible/module_utils/kolla_systemd_worker.py index 396d15c20..442910c07 100644 --- a/ansible/module_utils/kolla_systemd_worker.py +++ b/ansible/module_utils/kolla_systemd_worker.py @@ -32,6 +32,7 @@ ExecStart=/usr/bin/${engine} start -a ${name} ExecStop=/usr/bin/${engine} stop ${name} -t ${graceful_timeout} Restart=${restart_policy} RestartSec=${restart_duration} +SuccessExitStatus=143 [Install] WantedBy=multi-user.target -- cgit v1.2.3