All of lore.kernel.org
 help / color / mirror / Atom feed
* Proposed change to vstart.sh
@ 2012-10-21 21:31 Joe Buck
  2012-10-21 21:35 ` Sage Weil
  0 siblings, 1 reply; 14+ messages in thread
From: Joe Buck @ 2012-10-21 21:31 UTC (permalink / raw)
  To: ceph-devel

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

It looks like vstart.sh does not work without authx enabled. Given that, 
I'd propose to change the default to having cephx be enabled and then 
use the -x flag to disable cephx.

Interestingly enough, the help output for vstart.sh already states that 
the -x flag disables authx (which is not the case at present, but is 
after this patch is applied).

I've attached a patch to vstart that 1) changes the mention of authx to 
cephx for consistency and 2) defaults vstart.sh to using cephx with the 
-x flag now serving to disable cephx.

Best,
-Joe Buck

[-- Attachment #2: vstart.diff --]
[-- Type: text/x-patch, Size: 786 bytes --]

diff --git a/src/vstart.sh b/src/vstart.sh
index 7aaad49..b23b83a 100755
--- a/src/vstart.sh
+++ b/src/vstart.sh
@@ -21,7 +21,7 @@ ip=""
 nodaemon=0
 smallmds=0
 overwrite_conf=1
-cephx=0
+cephx=1 #turn cephx on by default
 
 MON_ADDR=""
 
@@ -43,7 +43,7 @@ usage=$usage"\t--nodaemon: use ceph-run as wrapper for mon/osd/mds\n"
 usage=$usage"\t--smallmds: limit mds cache size\n"
 usage=$usage"\t-m ip:port\t\tspecify monitor address\n"
 usage=$usage"\t-k keep old configuration files\n"
-usage=$usage"\t-x disable authx\n"
+usage=$usage"\t-x disable cephx\n"
 usage=$usage"\t-o config\t\t add extra config parameters to mds section\n"
 
 usage_exit() {
@@ -117,7 +117,7 @@ case $1 in
 	    shift
 	    ;;
     -x )
-	    cephx=1
+	    cephx=0
 	    ;;
     -k )
 	    overwrite_conf=0

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

* Re: Proposed change to vstart.sh
  2012-10-21 21:31 Proposed change to vstart.sh Joe Buck
@ 2012-10-21 21:35 ` Sage Weil
  2012-10-22  6:05   ` Dan Mick
  2012-10-22 15:13   ` Joe Buck
  0 siblings, 2 replies; 14+ messages in thread
From: Sage Weil @ 2012-10-21 21:35 UTC (permalink / raw)
  To: Joe Buck; +Cc: ceph-devel

On Sun, 21 Oct 2012, Joe Buck wrote:
> It looks like vstart.sh does not work without authx enabled. Given that, I'd
> propose to change the default to having cephx be enabled and then use the -x
> flag to disable cephx.
> 
> Interestingly enough, the help output for vstart.sh already states that the -x
> flag disables authx (which is not the case at present, but is after this patch
> is applied).
> 
> I've attached a patch to vstart that 1) changes the mention of authx to cephx
> for consistency and 2) defaults vstart.sh to using cephx with the -x flag now
> serving to disable cephx.

Sounds like a good change, but let's make -x do nothing and -X disable 
cephx, so that existing habitual typing of -x doesn't lead to failure.

Also, we should fix the auth none usage at some point.  :)

sage

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

* Re: Proposed change to vstart.sh
  2012-10-21 21:35 ` Sage Weil
@ 2012-10-22  6:05   ` Dan Mick
  2012-10-22 15:13   ` Joe Buck
  1 sibling, 0 replies; 14+ messages in thread
From: Dan Mick @ 2012-10-22  6:05 UTC (permalink / raw)
  To: Sage Weil; +Cc: Joe Buck, ceph-devel

On 10/21/2012 02:35 PM, Sage Weil wrote:
> On Sun, 21 Oct 2012, Joe Buck wrote:
>> It looks like vstart.sh does not work without authx enabled. Given that, I'd
>> propose to change the default to having cephx be enabled and then use the -x
>> flag to disable cephx.
>>
>> Interestingly enough, the help output for vstart.sh already states that the -x
>> flag disables authx (which is not the case at present, but is after this patch
>> is applied).
>>
>> I've attached a patch to vstart that 1) changes the mention of authx to cephx
>> for consistency and 2) defaults vstart.sh to using cephx with the -x flag now
>> serving to disable cephx.
> Sounds like a good change, but let's make -x do nothing and -X disable
> cephx, so that existing habitual typing of -x doesn't lead to failure.
>
> Also, we should fix the auth none usage at some point.  :)
>

Surely it's not hard to fix the non-cephx case?  I though slang had done 
that, actually.


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

* Re: Proposed change to vstart.sh
  2012-10-21 21:35 ` Sage Weil
  2012-10-22  6:05   ` Dan Mick
@ 2012-10-22 15:13   ` Joe Buck
  2012-10-22 16:08     ` Sam Lang
  1 sibling, 1 reply; 14+ messages in thread
From: Joe Buck @ 2012-10-22 15:13 UTC (permalink / raw)
  To: ceph-devel

[-- Attachment #1: Type: text/plain, Size: 1186 bytes --]

Updated version of the diff with the -X flag used to turn cephX off, -x 
to turn it on (for historical consistency) and an updated help output 
that reflects this change. CephX is on by default.

I figured I'd send this out independent of the issues around vstart 
working when cephX is off getting sorted out.

-Joe Buck


On 10/21/2012 02:35 PM, Sage Weil wrote:
> On Sun, 21 Oct 2012, Joe Buck wrote:
>> It looks like vstart.sh does not work without authx enabled. Given that, I'd
>> propose to change the default to having cephx be enabled and then use the -x
>> flag to disable cephx.
>>
>> Interestingly enough, the help output for vstart.sh already states that the -x
>> flag disables authx (which is not the case at present, but is after this patch
>> is applied).
>>
>> I've attached a patch to vstart that 1) changes the mention of authx to cephx
>> for consistency and 2) defaults vstart.sh to using cephx with the -x flag now
>> serving to disable cephx.
> Sounds like a good change, but let's make -x do nothing and -X disable
> cephx, so that existing habitual typing of -x doesn't lead to failure.
>
> Also, we should fix the auth none usage at some point.  :)
>
> sage


[-- Attachment #2: vstart.sh.diff --]
[-- Type: text/x-patch, Size: 935 bytes --]

diff --git a/src/vstart.sh b/src/vstart.sh
index 7aaad49..0b24e44 100755
--- a/src/vstart.sh
+++ b/src/vstart.sh
@@ -21,7 +21,7 @@ ip=""
 nodaemon=0
 smallmds=0
 overwrite_conf=1
-cephx=0
+cephx=1 #turn cephx on by default
 
 MON_ADDR=""
 
@@ -43,7 +43,8 @@ usage=$usage"\t--nodaemon: use ceph-run as wrapper for mon/osd/mds\n"
 usage=$usage"\t--smallmds: limit mds cache size\n"
 usage=$usage"\t-m ip:port\t\tspecify monitor address\n"
 usage=$usage"\t-k keep old configuration files\n"
-usage=$usage"\t-x disable authx\n"
+usage=$usage"\t-x enable cephx (on by default)\n"
+usage=$usage"\t-X disable cephx\n"
 usage=$usage"\t-o config\t\t add extra config parameters to mds section\n"
 
 usage_exit() {
@@ -117,7 +118,10 @@ case $1 in
 	    shift
 	    ;;
     -x )
-	    cephx=1
+	    cephx=1 # this is on be default, flag exists for historical consistency
+	    ;;
+    -X )
+	    cephx=0
 	    ;;
     -k )
 	    overwrite_conf=0

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

* Re: Proposed change to vstart.sh
  2012-10-22 15:13   ` Joe Buck
@ 2012-10-22 16:08     ` Sam Lang
  2012-10-22 16:14       ` Yehuda Sadeh
  2012-10-22 16:35       ` Joe Buck
  0 siblings, 2 replies; 14+ messages in thread
From: Sam Lang @ 2012-10-22 16:08 UTC (permalink / raw)
  To: Joe Buck; +Cc: ceph-devel

On 10/22/2012 10:13 AM, Joe Buck wrote:
> On 10/21/2012 02:35 PM, Sage Weil wrote:

>> Also, we should fix the auth none usage at some point.  :)

I made some changes a while back to fix the auth none problems with 
vstart 
(https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c). 
  The -x help text inversion was a bug on my part.

Joe what errors do you get with auth none?  I'm able to do vstart.sh -n 
-l (without the -x/-X changes) successfully.

-sam

>>
>> sage
>


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

* Re: Proposed change to vstart.sh
  2012-10-22 16:08     ` Sam Lang
@ 2012-10-22 16:14       ` Yehuda Sadeh
  2012-10-22 16:19         ` Sam Lang
  2012-10-22 16:35       ` Joe Buck
  1 sibling, 1 reply; 14+ messages in thread
From: Yehuda Sadeh @ 2012-10-22 16:14 UTC (permalink / raw)
  To: Sam Lang; +Cc: Joe Buck, ceph-devel

On Mon, Oct 22, 2012 at 9:08 AM, Sam Lang <sam.lang@inktank.com> wrote:
> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>
>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>
>
>>> Also, we should fix the auth none usage at some point.  :)
>
>
> I made some changes a while back to fix the auth none problems with vstart
> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
> The -x help text inversion was a bug on my part.
>

By the way, I think those changes broke the use of CEPH_BIN env variable.

Yehuda

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

* Re: Proposed change to vstart.sh
  2012-10-22 16:14       ` Yehuda Sadeh
@ 2012-10-22 16:19         ` Sam Lang
  2012-10-22 16:28           ` Yehuda Sadeh
  0 siblings, 1 reply; 14+ messages in thread
From: Sam Lang @ 2012-10-22 16:19 UTC (permalink / raw)
  To: Yehuda Sadeh; +Cc: Joe Buck, ceph-devel

On 10/22/2012 11:14 AM, Yehuda Sadeh wrote:
> On Mon, Oct 22, 2012 at 9:08 AM, Sam Lang <sam.lang@inktank.com> wrote:
>> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>>
>>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>>
>>
>>>> Also, we should fix the auth none usage at some point.  :)
>>
>>
>> I made some changes a while back to fix the auth none problems with vstart
>> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
>> The -x help text inversion was a bug on my part.
>>
>
> By the way, I think those changes broke the use of CEPH_BIN env variable.

I may not be using CEPH_BIN as intended then.  What is CEPH_BIN supposed 
to point to?

I usually setup out-of-tree builds, and point CEPH_BIN at the src dir there:

<in ceph dir>
mkdir build
cd build
../configure ...
make
CEPH_BIN=$PWD/src
../src/vstart.sh ...

-sam

>
> Yehuda
>


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

* Re: Proposed change to vstart.sh
  2012-10-22 16:19         ` Sam Lang
@ 2012-10-22 16:28           ` Yehuda Sadeh
  2012-10-23 11:46             ` Sam Lang
  0 siblings, 1 reply; 14+ messages in thread
From: Yehuda Sadeh @ 2012-10-22 16:28 UTC (permalink / raw)
  To: Sam Lang; +Cc: Joe Buck, ceph-devel

On Mon, Oct 22, 2012 at 9:19 AM, Sam Lang <sam.lang@inktank.com> wrote:
> On 10/22/2012 11:14 AM, Yehuda Sadeh wrote:
>>
>> On Mon, Oct 22, 2012 at 9:08 AM, Sam Lang <sam.lang@inktank.com> wrote:
>>>
>>> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>>>
>>>>
>>>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>>>
>>>
>>>
>>>>> Also, we should fix the auth none usage at some point.  :)
>>>
>>>
>>>
>>> I made some changes a while back to fix the auth none problems with
>>> vstart
>>>
>>> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
>>> The -x help text inversion was a bug on my part.
>>>
>>
>> By the way, I think those changes broke the use of CEPH_BIN env variable.
>
>
> I may not be using CEPH_BIN as intended then.  What is CEPH_BIN supposed to
> point to?
>
> I usually setup out-of-tree builds, and point CEPH_BIN at the src dir there:
>
> <in ceph dir>
> mkdir build
> cd build
> ../configure ...
> make
> CEPH_BIN=$PWD/src
> ../src/vstart.sh ...
>
CEPH_BIN should point at the built binaries. I usually set up out of
tree builds also, and point CEPH_BIN at the make install target, which
should also work. Maybe vstart.sh misuses it (e.g., looks at CEPH_BIN
for some other dependency).

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

* Re: Proposed change to vstart.sh
  2012-10-22 16:08     ` Sam Lang
  2012-10-22 16:14       ` Yehuda Sadeh
@ 2012-10-22 16:35       ` Joe Buck
  2012-10-22 16:40         ` Sage Weil
  2012-10-22 17:54         ` Sam Lang
  1 sibling, 2 replies; 14+ messages in thread
From: Joe Buck @ 2012-10-22 16:35 UTC (permalink / raw)
  To: ceph-devel

Sam,

Here's the last few lines printed when I start vstart.sh

./vstart.sh: 397: ./vstart.sh: btrfs: not found
add osd0 7cf25a23-32dd-4b82-b9d4-d514eb857d02
2012-10-22 09:31:46.788605 7ff87bb4e780 -1 unable to authenticate as 
client.admin
2012-10-22 09:31:46.790370 7ff87bb4e780 -1 ceph_tool_common_init failed.

I'm invoking vstart.sh like so (my version has the patch I sent out this 
morning applied):
./vstart.sh -d -n -l -X

The line in vstart.sh that seems to tank is:

$SUDO $CEPH_ADM osd create $uuid

-Joe Buck

On 10/22/2012 09:08 AM, Sam Lang wrote:
> On 10/22/2012 10:13 AM, Joe Buck wrote:
>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>
>>> Also, we should fix the auth none usage at some point.  :)
>
> I made some changes a while back to fix the auth none problems with 
> vstart 
> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c). 
>  The -x help text inversion was a bug on my part.
>
> Joe what errors do you get with auth none?  I'm able to do vstart.sh 
> -n -l (without the -x/-X changes) successfully.
>
> -sam
>
>>>
>>> sage
>>
>


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

* Re: Proposed change to vstart.sh
  2012-10-22 16:35       ` Joe Buck
@ 2012-10-22 16:40         ` Sage Weil
  2012-10-23  5:22           ` Dan Mick
  2012-10-22 17:54         ` Sam Lang
  1 sibling, 1 reply; 14+ messages in thread
From: Sage Weil @ 2012-10-22 16:40 UTC (permalink / raw)
  To: Joe Buck; +Cc: ceph-devel

On Mon, 22 Oct 2012, Joe Buck wrote:
> Sam,
> 
> Here's the last few lines printed when I start vstart.sh
> 
> ./vstart.sh: 397: ./vstart.sh: btrfs: not found
> add osd0 7cf25a23-32dd-4b82-b9d4-d514eb857d02
> 2012-10-22 09:31:46.788605 7ff87bb4e780 -1 unable to authenticate as
> client.admin
> 2012-10-22 09:31:46.790370 7ff87bb4e780 -1 ceph_tool_common_init failed.
> 
> I'm invoking vstart.sh like so (my version has the patch I sent out this
> morning applied):
> ./vstart.sh -d -n -l -X
> 
> The line in vstart.sh that seems to tank is:
> 
> $SUDO $CEPH_ADM osd create $uuid

Possibly related: I just pushed a patch to master that enables cephx auth 
by default.  For the -X case we need to put in ceph.conf:

	auth cluster required = 
	auth service required = 

s
> 
> -Joe Buck
> 
> On 10/22/2012 09:08 AM, Sam Lang wrote:
> > On 10/22/2012 10:13 AM, Joe Buck wrote:
> > > On 10/21/2012 02:35 PM, Sage Weil wrote:
> > 
> > > > Also, we should fix the auth none usage at some point.  :)
> > 
> > I made some changes a while back to fix the auth none problems with vstart
> > (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
> > The -x help text inversion was a bug on my part.
> > 
> > Joe what errors do you get with auth none?  I'm able to do vstart.sh -n -l
> > (without the -x/-X changes) successfully.
> > 
> > -sam
> > 
> > > > 
> > > > sage
> > > 
> > 
> 
> --
> 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] 14+ messages in thread

* Re: Proposed change to vstart.sh
  2012-10-22 16:35       ` Joe Buck
  2012-10-22 16:40         ` Sage Weil
@ 2012-10-22 17:54         ` Sam Lang
  2012-10-22 18:07           ` Joe Buck
  1 sibling, 1 reply; 14+ messages in thread
From: Sam Lang @ 2012-10-22 17:54 UTC (permalink / raw)
  To: Joe Buck; +Cc: ceph-devel

On 10/22/2012 11:35 AM, Joe Buck wrote:
> Sam,
>
> Here's the last few lines printed when I start vstart.sh
>
> ./vstart.sh: 397: ./vstart.sh: btrfs: not found
> add osd0 7cf25a23-32dd-4b82-b9d4-d514eb857d02
> 2012-10-22 09:31:46.788605 7ff87bb4e780 -1 unable to authenticate as
> client.admin
> 2012-10-22 09:31:46.790370 7ff87bb4e780 -1 ceph_tool_common_init failed.
>
> I'm invoking vstart.sh like so (my version has the patch I sent out this
> morning applied):
> ./vstart.sh -d -n -l -X
>
> The line in vstart.sh that seems to tank is:
>
> $SUDO $CEPH_ADM osd create $uuid
>

Do you have a keyring file in: /etc/ceph/keyring?
-sam

> -Joe Buck
>
> On 10/22/2012 09:08 AM, Sam Lang wrote:
>> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>>
>>>> Also, we should fix the auth none usage at some point.  :)
>>
>> I made some changes a while back to fix the auth none problems with
>> vstart
>> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
>>  The -x help text inversion was a bug on my part.
>>
>> Joe what errors do you get with auth none?  I'm able to do vstart.sh
>> -n -l (without the -x/-X changes) successfully.
>>
>> -sam
>>
>>>>
>>>> sage
>>>
>>
>
> --
> 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] 14+ messages in thread

* Re: Proposed change to vstart.sh
  2012-10-22 17:54         ` Sam Lang
@ 2012-10-22 18:07           ` Joe Buck
  0 siblings, 0 replies; 14+ messages in thread
From: Joe Buck @ 2012-10-22 18:07 UTC (permalink / raw)
  Cc: ceph-devel

I do, but for a different install. Given that vstart.sh uses the local 
ceph.conf (in src/), I figured it would use the keyring generated in 
the same directory. Is this not the case?

-Joe Buck

On Mon 22 Oct 2012 10:54:23 AM PDT, Sam Lang wrote:
> On 10/22/2012 11:35 AM, Joe Buck wrote:
>> Sam,
>>
>> Here's the last few lines printed when I start vstart.sh
>>
>> ./vstart.sh: 397: ./vstart.sh: btrfs: not found
>> add osd0 7cf25a23-32dd-4b82-b9d4-d514eb857d02
>> 2012-10-22 09:31:46.788605 7ff87bb4e780 -1 unable to authenticate as
>> client.admin
>> 2012-10-22 09:31:46.790370 7ff87bb4e780 -1 ceph_tool_common_init failed.
>>
>> I'm invoking vstart.sh like so (my version has the patch I sent out this
>> morning applied):
>> ./vstart.sh -d -n -l -X
>>
>> The line in vstart.sh that seems to tank is:
>>
>> $SUDO $CEPH_ADM osd create $uuid
>>
>
> Do you have a keyring file in: /etc/ceph/keyring?
> -sam
>
>> -Joe Buck
>>
>> On 10/22/2012 09:08 AM, Sam Lang wrote:
>>> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>>>
>>>>> Also, we should fix the auth none usage at some point.  :)
>>>
>>> I made some changes a while back to fix the auth none problems with
>>> vstart
>>> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
>>>
>>>  The -x help text inversion was a bug on my part.
>>>
>>> Joe what errors do you get with auth none?  I'm able to do vstart.sh
>>> -n -l (without the -x/-X changes) successfully.
>>>
>>> -sam
>>>
>>>>>
>>>>> sage
>>>>
>>>
>>
>> --
>> 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] 14+ messages in thread

* Re: Proposed change to vstart.sh
  2012-10-22 16:40         ` Sage Weil
@ 2012-10-23  5:22           ` Dan Mick
  0 siblings, 0 replies; 14+ messages in thread
From: Dan Mick @ 2012-10-23  5:22 UTC (permalink / raw)
  To: Sage Weil; +Cc: Joe Buck, ceph-devel


> Possibly related: I just pushed a patch to master that enables cephx auth
> by default.  For the -X case we need to put in ceph.conf:
>
> 	auth cluster required =
> 	auth service required =

This was not added, and thus vstart.sh -X is currently broken.

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

* Re: Proposed change to vstart.sh
  2012-10-22 16:28           ` Yehuda Sadeh
@ 2012-10-23 11:46             ` Sam Lang
  0 siblings, 0 replies; 14+ messages in thread
From: Sam Lang @ 2012-10-23 11:46 UTC (permalink / raw)
  To: Yehuda Sadeh; +Cc: Joe Buck, ceph-devel

On 10/22/2012 11:28 AM, Yehuda Sadeh wrote:
> On Mon, Oct 22, 2012 at 9:19 AM, Sam Lang <sam.lang@inktank.com> wrote:
>> On 10/22/2012 11:14 AM, Yehuda Sadeh wrote:
>>>
>>> On Mon, Oct 22, 2012 at 9:08 AM, Sam Lang <sam.lang@inktank.com> wrote:
>>>>
>>>> On 10/22/2012 10:13 AM, Joe Buck wrote:
>>>>>
>>>>>
>>>>> On 10/21/2012 02:35 PM, Sage Weil wrote:
>>>>
>>>>
>>>>
>>>>>> Also, we should fix the auth none usage at some point.  :)
>>>>
>>>>
>>>>
>>>> I made some changes a while back to fix the auth none problems with
>>>> vstart
>>>>
>>>> (https://github.com/ceph/ceph/commit/0f7c516f3e1f37c5869f8fbff67f53ca0c90568c).
>>>> The -x help text inversion was a bug on my part.
>>>>
>>>
>>> By the way, I think those changes broke the use of CEPH_BIN env variable.
>>
>>
>> I may not be using CEPH_BIN as intended then.  What is CEPH_BIN supposed to
>> point to?
>>
>> I usually setup out-of-tree builds, and point CEPH_BIN at the src dir there:
>>
>> <in ceph dir>
>> mkdir build
>> cd build
>> ../configure ...
>> make
>> CEPH_BIN=$PWD/src
>> ../src/vstart.sh ...
>>
> CEPH_BIN should point at the built binaries. I usually set up out of
> tree builds also, and point CEPH_BIN at the make install target, which
> should also work. Maybe vstart.sh misuses it (e.g., looks at CEPH_BIN
> for some other dependency).

It was previously doing ./init-ceph (which only worked if run from the 
ceph srcdir), and now does $CEPH_BIN/init-ceph, which breaks when you 
point CEPH_BIN at the make install target.

My goal with that change was to be able to run vstart.sh from outside 
the src dir (namely from the build dir).  To do that though, I think we 
would need to turn it into a autoconf generated file (vstart.sh.in -> 
vstart.sh).  That doesn't seem worth the trouble.  I'll put the 
./init-ceph back in.

-sam

>


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

end of thread, other threads:[~2012-10-23 11:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-21 21:31 Proposed change to vstart.sh Joe Buck
2012-10-21 21:35 ` Sage Weil
2012-10-22  6:05   ` Dan Mick
2012-10-22 15:13   ` Joe Buck
2012-10-22 16:08     ` Sam Lang
2012-10-22 16:14       ` Yehuda Sadeh
2012-10-22 16:19         ` Sam Lang
2012-10-22 16:28           ` Yehuda Sadeh
2012-10-23 11:46             ` Sam Lang
2012-10-22 16:35       ` Joe Buck
2012-10-22 16:40         ` Sage Weil
2012-10-23  5:22           ` Dan Mick
2012-10-22 17:54         ` Sam Lang
2012-10-22 18:07           ` Joe Buck

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.