aboutsummaryrefslogtreecommitdiff
path: root/ansible/module_utils
diff options
context:
space:
mode:
authorMichal Arbet <michal.arbet@ultimum.io>2024-01-04 22:26:13 +0100
committerMichal Arbet <michal.arbet@ultimum.io>2024-01-05 10:06:56 +0100
commitb1fd2b40f7cd1c6c457bd42b25ca32dc1e5e0f4f (patch)
treef87a9c447ff2f4d5827ec6f56b3ce2a56c91f7ea /ansible/module_utils
parent39db9a04fee6ebd07b81a2d90b552be62168bb9a (diff)
downloadkolla-ansible-b1fd2b40f7cd1c6c457bd42b25ca32dc1e5e0f4f.tar.gz
kolla-ansible-b1fd2b40f7cd1c6c457bd42b25ca32dc1e5e0f4f.zip
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
Diffstat (limited to 'ansible/module_utils')
-rw-r--r--ansible/module_utils/kolla_systemd_worker.py1
1 files changed, 1 insertions, 0 deletions
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