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
This commit is contained in:
Michal Arbet 2024-01-04 22:26:13 +01:00
parent 39db9a04fe
commit b1fd2b40f7
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes long service restarts while using systemd
`LP#2048130 <https://bugs.launchpad.net/kolla-ansible/+bug/2048130>`__.