]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
init-ceph.in: skip ceph-disk if it is not present 7286/head
authorKen Dreyer <kdreyer@redhat.com>
Tue, 19 Jan 2016 16:53:45 +0000 (09:53 -0700)
committerKen Dreyer <kdreyer@redhat.com>
Tue, 19 Jan 2016 17:01:59 +0000 (10:01 -0700)
With the ceph-mon vs ceph-osd split packaging, users are expected to
have the ceph-mon package installed and not ceph-osd (and vice versa).
However, the init script (/etc/init.d/ceph) has a call to `ceph-disk`,
which may not be present on the machine.

Given that our packaging is not yet split upstream, this bug does not
manifest itself currently, because both ceph-mon and ceph-disk are
currently in the same "ceph" package. Once we split the packaging,
though, this will become an issue.

http://tracker.ceph.com/issues/10587 Refs: #10587

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
src/init-ceph.in

index 9d4fc71ea27af9fa295ebdf9f460d562529a5c0e..97472bee4ee55ddabbb845672b0284bd129e032f 100755 (executable)
@@ -533,7 +533,9 @@ done
 # activate latent osds?
 if [ "$command" = "start" -a "$BINDIR" != "." ]; then
     if [ "$*" = "" ] || echo $* | grep -q ^osd\$ ; then
-       ceph-disk activate-all
+       if [ -x $SBINDIR/ceph-disk ]; then
+           ceph-disk activate-all
+       fi
     fi
 fi