From: Wido den Hollander Date: Tue, 12 Nov 2019 08:15:56 +0000 (+0100) Subject: systemd: Wait 5 seconds before attempting a restart of an OSD X-Git-Tag: v15.1.0~857^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8246ca02ea77bb0f6a4adf5fce0b308d29998fc6;p=ceph.git systemd: Wait 5 seconds before attempting a restart of an OSD In commit 92f8ec the RestartSec parameter was removed which now causes systemd to restart a failed OSD immediately. After a reboot, while the network is still coming online, this can cause problems. Although network-online.target should guarantee us that the network is online it doesn't guarantee that DNS resolving works. If mon_host points to a DNS entry it could be that this cannot be resolved yet and thus fails to start the OSDs on boot. Fixes: https://tracker.ceph.com/issues/42761 Signed-off-by: Wido den Hollander --- diff --git a/systemd/ceph-osd@.service.in b/systemd/ceph-osd@.service.in index 1b5c9c82b866..c8889da1df32 100644 --- a/systemd/ceph-osd@.service.in +++ b/systemd/ceph-osd@.service.in @@ -27,6 +27,7 @@ TasksMax=infinity Restart=on-failure StartLimitInterval=30min StartLimitBurst=3 +RestartSec=10 [Install] WantedBy=ceph-osd.target