From: John Mulligan Date: Tue, 19 Dec 2023 19:10:39 +0000 (-0500) Subject: cehphadm: disable restarting init containers service X-Git-Tag: testing/wip-batrick-testing-20240411.154038~702^2~1 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=aaffa661681f7156b325a894f2549416f265d679;p=ceph-ci.git cehphadm: disable restarting init containers service Disable the Restart= line in the init containers systemd template. It is commented out as there are probably more appropriate workarounds to use in the future but this should fix testing on centos8 based systems. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadmlib/templates/init_ctr.service.j2 b/src/cephadm/cephadmlib/templates/init_ctr.service.j2 index 730d5043dec..e23a72be40f 100644 --- a/src/cephadm/cephadmlib/templates/init_ctr.service.j2 +++ b/src/cephadm/cephadmlib/templates/init_ctr.service.j2 @@ -19,8 +19,12 @@ EnvironmentFile=-/etc/environment ExecStart=/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run ExecStop=/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run stop ExecStopPost=-/bin/bash {{ ctx.data_dir }}/{{ identity.fsid }}/%i/init_containers.run poststop -Restart=on-failure -RestartSec=10s +# FIXME: Disable Restart on oneshot service. systemd versions before v224 +# did not allow Restart=on-failure with a oneshot service. Having it set +# prevents the service from starting on centos8. Disable it for now and +# revisit this at a later time. +#Restart=on-failure +#RestartSec=10s TimeoutStopSec=120 StartLimitInterval=30min StartLimitBurst=5