All of lore.kernel.org
 help / color / mirror / Atom feed
From: norbi <norbi@rocknob.de>
To: ceph-devel@vger.kernel.org
Subject: litte bug in initscripts
Date: Fri, 14 Dec 2012 08:12:17 +0100	[thread overview]
Message-ID: <50CAD151.5080306@rocknob.de> (raw)

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


             reply	other threads:[~2012-12-14  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-14  7:12 norbi [this message]
2012-12-14  7:46 ` litte bug in initscripts norbi
2012-12-17 16:34   ` Josh Durgin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50CAD151.5080306@rocknob.de \
    --to=norbi@rocknob.de \
    --cc=ceph-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.