litte bug in initscripts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ceph-List,

i have found a little bug in "ceph_common.sh"
"/usr/local/bin/ceph-conf --help" show the right option to get a hostname from the ceph.conf. in my case, the ceph init-script doesnt stop/start the OSDs

FLAGS
  --name name                     Set type.id

or the example

EXAMPLES
$ ceph-conf --name mon.0 -c /etc/ceph/ceph.conf 'mon addr'


Patchfile

--- src/ceph_common.sh.old      2012-12-14 08:09:09.792952462 +0100
+++ src/ceph_common.sh.new      2012-12-14 08:09:28.927956891 +0100
@@ -33,7 +33,7 @@ verify_conf() {

 check_host() {
     # what host is this daemon assigned to?
-    host=`$CCONF -c $conf -n $type.$id host`
+    host=`$CCONF -c $conf --name $type.$id hostname`
     if [ "$host" = "localhost" ]; then
echo "$0: use a proper short hostname (hostname -s), not 'localhost', in $conf section $type.$id; skipping entry"
      return 1

--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux