[Pkg-ceph-commits] [ceph] 02/03: Start ceph-all after static-network-up.

James Downing Page jamespage at moszumanska.debian.org
Thu Feb 1 15:28:18 UTC 2018


This is an automated email from the git hooks/post-receive script.

jamespage pushed a commit to annotated tag debian/0.80.11-0ubuntu1.14.04.2
in repository ceph.

commit 2912e95300b9db044d692750346835d56f3d48d6
Author: James Page <james.page at ubuntu.com>
Date:   Thu Apr 20 09:41:07 2017 +0100

    Start ceph-all after static-network-up.
    
    LP: #1636322
---
 debian/changelog                                  |  8 +++++
 debian/patches/series                             |  1 +
 debian/patches/start-ceph-all-after-network.patch | 36 +++++++++++++++++++++++
 3 files changed, 45 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 8360c47..e8d102e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ceph (0.80.11-0ubuntu1.14.04.2) UNRELEASED; urgency=medium
+
+  * Start ceph-all after static-network-up (LP: #1636322).
+    - d/p/start-ceph-all-after-network.patch: add dependency on
+      the static-network-up event before starting ceph-all.
+
+ -- Billy Olsen <billy.olsen at canonical.com>  Mon, 14 Nov 2016 03:38:29 -0700
+
 ceph (0.80.11-0ubuntu1.14.04.1) trusty; urgency=medium
 
   * New upstream stable point release (LP: #1535278):
diff --git a/debian/patches/series b/debian/patches/series
index f08ffaa..e625341 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 virtualenv-never-download
 modules.patch
 increaseFileLimit.patch
+start-ceph-all-after-network.patch
diff --git a/debian/patches/start-ceph-all-after-network.patch b/debian/patches/start-ceph-all-after-network.patch
new file mode 100644
index 0000000..f58fdc0
--- /dev/null
+++ b/debian/patches/start-ceph-all-after-network.patch
@@ -0,0 +1,36 @@
+From e10e22a95f67c31947d4c0f33d69e4d8b929b0e8 Mon Sep 17 00:00:00 2001
+From: Billy Olsen <billy.olsen at gmail.com>
+Date: Mon, 24 Oct 2016 15:13:51 -0700
+Subject: [PATCH 1/1] upstart: start ceph-all after static-network-up
+
+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 at gmail.com>
+---
+ src/upstart/ceph-all.conf | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/upstart/ceph-all.conf b/src/upstart/ceph-all.conf
+index c0b0edd..52d0f08 100644
+--- a/src/upstart/ceph-all.conf
++++ b/src/upstart/ceph-all.conf
+@@ -1,4 +1,4 @@
+ description "Ceph"
+ 
+-start on runlevel [2345]
++start on runlevel [2345] and static-network-up
+ stop on runlevel [!2345]
+-- 
+2.7.4
+

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ceph/ceph.git



More information about the Pkg-ceph-commits mailing list