All of lore.kernel.org
 help / color / mirror / Atom feed
* litte bug in initscripts
@ 2012-12-14  7:12 norbi
  2012-12-14  7:46 ` norbi
  0 siblings, 1 reply; 3+ messages in thread
From: norbi @ 2012-12-14  7:12 UTC (permalink / raw)
  To: ceph-devel

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: litte bug in initscripts
  2012-12-14  7:12 litte bug in initscripts norbi
@ 2012-12-14  7:46 ` norbi
  2012-12-17 16:34   ` Josh Durgin
  0 siblings, 1 reply; 3+ messages in thread
From: norbi @ 2012-12-14  7:46 UTC (permalink / raw)
  To: ceph-devel

hm...

now the MOD and MON doesn't start...

the problems seems the configuration differences in ceph.conf

http://ceph.com/docs/master/rados/configuration/ceph-conf/#the-ceph-conf-file

or its a failure in the documentation?

[osd.0]
         hostname = {hostname}

[mon.a]
         host = hostName
         mon addr = 150.140.130.120:6789

if i change "host = hostName" to "hostname = hostName" under "[mon.a]" i 
dont have to patch "ceph_common.sh"

On 14.12.2012 08:12, norbi wrote:
> 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@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: litte bug in initscripts
  2012-12-14  7:46 ` norbi
@ 2012-12-17 16:34   ` Josh Durgin
  0 siblings, 0 replies; 3+ messages in thread
From: Josh Durgin @ 2012-12-17 16:34 UTC (permalink / raw)
  To: norbi; +Cc: ceph-devel

On 12/13/2012 11:46 PM, norbi wrote:
> hm...
>
> now the MOD and MON doesn't start...
>
> the problems seems the configuration differences in ceph.conf
>
> http://ceph.com/docs/master/rados/configuration/ceph-conf/#the-ceph-conf-file
>
>
> or its a failure in the documentation?

It's a type in the docs, which is now fixed.
It should be host = {hostname} for all sections.

Josh

> [osd.0]
>          hostname = {hostname}
>
> [mon.a]
>          host = hostName
>          mon addr = 150.140.130.120:6789
>
> if i change "host = hostName" to "hostname = hostName" under "[mon.a]" i
> dont have to patch "ceph_common.sh"
>
> On 14.12.2012 08:12, norbi wrote:
>> 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@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> --
> To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-17 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14  7:12 litte bug in initscripts norbi
2012-12-14  7:46 ` norbi
2012-12-17 16:34   ` Josh Durgin

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.