]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph-osd-prestart.sh: drop Upstart-specific code 10364/head
authorNathan Cutler <ncutler@suse.com>
Mon, 13 Jun 2016 08:27:18 +0000 (10:27 +0200)
committerNathan Cutler <ncutler@suse.com>
Wed, 20 Jul 2016 09:27:33 +0000 (11:27 +0200)
Before this patch, the ceph-osd-prestart.sh script would do Upstart-specific
things if the journal device failed to appear after a 5-second timeout.

Fixes: http://tracker.ceph.com/issues/15984
Signed-off-by: Nathan Cutler <ncutler@suse.com>
(cherry picked from commit 47a06e608b7f686252d42c5a879373d8ebb65d9d)

src/ceph-osd-prestart.sh

index cefca854e61ff4f78bba4dc38db41d218174d10b..314ea182397f952099231783188bfe19e9f25942 100644 (file)
@@ -45,13 +45,11 @@ fi
 if [ -L "$journal" -a ! -e "$journal" ]; then
     udevadm settle --timeout=5 || :
     if [ -L "$journal" -a ! -e "$journal" ]; then
-        echo "ceph-osd($UPSTART_INSTANCE): journal not present, not starting yet." 1>&2
-        stop
+        echo "ceph-osd(${cluster:-ceph}-$id): journal not present, not starting yet." 1>&2
         exit 0
     fi
 fi
 
-
 # ensure ownership is correct
 owner=`stat -c %U $data/.`
 if [ $owner != 'ceph' -a $owner != 'root' ]; then