]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
systemd: Wait 5 seconds before attempting a restart of an OSD
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)
commit8246ca02ea77bb0f6a4adf5fce0b308d29998fc6
treea2fe1a2f4093b511570b2113de8cdf09572933b3
parent8819c3c37a543be390893a4eee1aa792ff0f7f3c
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 <wido@42on.com>
systemd/ceph-osd@.service.in