Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Dev

BasicSanityCheck fails in lha-2.1

 

 

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded


kskmori at intellilink

Jul 29, 2008, 4:03 AM

Post #1 of 3 (223 views)
Permalink
BasicSanityCheck fails in lha-2.1

Dejan,

BasicSanityCheck fails by the permission test of RA
because ocf-tester returns an error at below (line 175)
if nobody user was not allowed to login.

su nobody $agent $action > /dev/null

[root[at]cupertino]# su nobody /usr/lib/ocf/resource.d/heartbeat/Dummy meta-data
This account is currently not available.
[root[at]cupertino]# grep nobody /etc/passwd
nobody:x:99:99:Nobody:/:/sbin/nologin


How about to use the hacluster user instead as attached?

Thanks,
--
Keisuke MORI
NTT DATA Intellilink Corporation
Attachments: ocf-tester.patch (0.51 KB)


dejanmm at fastmail

Jul 29, 2008, 5:18 AM

Post #2 of 3 (209 views)
Permalink
Re: BasicSanityCheck fails in lha-2.1 [In reply to]

Hi Keisuke-san,

On Tue, Jul 29, 2008 at 08:03:18PM +0900, Keisuke MORI wrote:
> Dejan,
>
> BasicSanityCheck fails by the permission test of RA
> because ocf-tester returns an error at below (line 175)
> if nobody user was not allowed to login.
>
> su nobody $agent $action > /dev/null
>
> [root[at]cupertino]# su nobody /usr/lib/ocf/resource.d/heartbeat/Dummy meta-data
> This account is currently not available.
> [root[at]cupertino]# grep nobody /etc/passwd
> nobody:x:99:99:Nobody:/:/sbin/nologin
>
>
> How about to use the hacluster user instead as attached?

That won't help. nobody was chosen because lrmd runs the
meta-data action as nobody. The problem here is that su(1)
requires a shell whereas lrmd doesn't. It looks like the -s
option could help. Just pushed a patch. Could you please test it
too.

Thanks,

Dejan


> Thanks,
> --
> Keisuke MORI
> NTT DATA Intellilink Corporation
>

Content-Description: ocf-tester.patch
> diff -r a8b2fc037b29 tools/ocf-tester.in
> --- a/tools/ocf-tester.in Thu Jul 17 17:01:29 2008 +0900
> +++ b/tools/ocf-tester.in Tue Jul 29 19:58:04 2008 +0900
> @@ -168,11 +168,11 @@ lrm_test_command() {
>
> test_permissions() {
> action=meta-data
> - msg=${1:-"Testing permissions with uid nobody"}
> + msg=${1:-"Testing permissions with uid @HA_CCMUSER@"}
> if [ $verbose -ne 0 ]; then
> echo $msg
> fi
> - su nobody $agent $action > /dev/null
> + su @HA_CCMUSER@ $agent $action > /dev/null
> }
>
> test_metadata() {

> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/

_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/


kskmori at intellilink

Jul 29, 2008, 7:10 PM

Post #3 of 3 (201 views)
Permalink
Re: BasicSanityCheck fails in lha-2.1 [In reply to]

Hi Dejan,

Dejan Muhamedagic <dejanmm[at]fastmail.fm> writes:
> Hi Keisuke-san,
>
> On Tue, Jul 29, 2008 at 08:03:18PM +0900, Keisuke MORI wrote:
>> Dejan,
>>
>> BasicSanityCheck fails by the permission test of RA
>> because ocf-tester returns an error at below (line 175)
>> if nobody user was not allowed to login.
>>
>> su nobody $agent $action > /dev/null
>>
>> [root[at]cupertino]# su nobody /usr/lib/ocf/resource.d/heartbeat/Dummy meta-data
>> This account is currently not available.
>> [root[at]cupertino]# grep nobody /etc/passwd
>> nobody:x:99:99:Nobody:/:/sbin/nologin
>>
>>
>> How about to use the hacluster user instead as attached?
>
> That won't help. nobody was chosen because lrmd runs the
> meta-data action as nobody. The problem here is that su(1)
> requires a shell whereas lrmd doesn't. It looks like the -s
> option could help. Just pushed a patch. Could you please test it
> too.

That works perfectly!

Thanks,

--
Keisuke MORI
NTT DATA Intellilink Corporation
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Linux-HA dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.