]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
upstart: start ceph-all after static-network-up 11631/head
authorBilly Olsen <billy.olsen@gmail.com>
Mon, 24 Oct 2016 22:13:51 +0000 (15:13 -0700)
committerBilly Olsen <billy.olsen@gmail.com>
Mon, 24 Oct 2016 22:17:17 +0000 (15:17 -0700)
Starting on runlevel [2345] allows the ceph services to
start before all of the networking is configured. This
introduces a race condition which allows a service to start
before the network it binds to is available.

Add the static-network-up event as a dependency for the start
on directive in order to start the ceph services after all of
the network stanzas have been processed and executed in the
/etc/network/interfaces and /etc/network/interfaces.d/*.conf
files.

Fixes: http://tracker.ceph.com/issues/17689
Signed-off-by: Billy Olsen <billy.olsen@gmail.com>
src/upstart/ceph-all.conf

index c0b0edd387171c25ffd14a58bab8161212a9f723..52d0f08b8e07eb5093b54a043095c981a0102903 100644 (file)
@@ -1,4 +1,4 @@
 description "Ceph"
 
-start on runlevel [2345]
+start on runlevel [2345] and static-network-up
 stop on runlevel [!2345]