]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
systemd: Wait 5 seconds before attempting a restart of an OSD 31550/head
authorWido den Hollander <wido@42on.com>
Tue, 12 Nov 2019 08:15:56 +0000 (09:15 +0100)
committerWido den Hollander <wido@42on.com>
Tue, 12 Nov 2019 09:21:45 +0000 (10:21 +0100)
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 <wido@42on.com>
systemd/ceph-osd@.service.in

index 1b5c9c82b8668317f5969bc5929656a2d2a1cf88..c8889da1df32dc328fad78aeeae13143b53517b1 100644 (file)
@@ -27,6 +27,7 @@ TasksMax=infinity
 Restart=on-failure
 StartLimitInterval=30min
 StartLimitBurst=3
+RestartSec=10
 
 [Install]
 WantedBy=ceph-osd.target