[Pacemaker] Trouble with ordering

Serge Dubrouski sergeyfd at gmail.com
Tue Oct 4 01:36:01 UTC 2011


On Mon, Oct 3, 2011 at 7:16 AM, Gerald Vogt <vogt at spamcop.net> wrote:

> On 03.10.11 03:47, Serge Dubrouski wrote:
> >     As I wrote before: you should be able to test this easily by sending
> a
> >     STOP signal to the named process. At least in this situation I see
> that
> >     the "rndc stop" doesn't return before those 60s.
> >
> >
> > Indeed you are right. Thanks for catching. Attached is the patch that
> > fixes this issue. It also makes rndc and host commands configurable.
> >
> > Please take a look at the patch and if it's all right I'll ask pacemaker
> > team to push it into git.
>
> The 2 of the opening <parameters> are too much.
>

Thanks.


>
> In addition, I don't think you can check for name resolution of
> "localhost.localdomain". "localhost.localdomain" is set in /etc/hosts
> but the DNS server doesn't know about domain "localdomain"...
>
>
Usually both localhost and localhost.localdomain are in /etc/hosts but that
doesn't matter because bind never uses it. The difference is that for
"localhost"  bind will try to resolve "localhost.yourdomain" taking
yourdomain from /etc/resolv.conf and for "localhost.localdomain" bind will
try to resolve localdomain. I'm not sure what is more standard to have
localhost in your zone file or to support localdomain as a zone. But for now
let's go your way with simple localhost.

Otherwise, the first test with a stopped named works nicely. The process

is killed in time and restarted... I'll have to do a few more tests.
>
>
Thanks again.


> -Gerald
>
> Patch against your patched version:
>
> *** named.ORIG  2011-10-03 14:28:07.000000000 +0200
> --- named       2011-10-03 15:03:34.000000000 +0200
> ***************
> *** 25,31 ****
>  OCF_RESKEY_named_rootdir_default=""
>  OCF_RESKEY_named_options_default=""
>  OCF_RESKEY_named_keytab_file_default=""
> ! OCF_RESKEY_monitor_request_default="localhost.localdomain"
>  OCF_RESKEY_monitor_response_default="127.0.0.1"
>  OCF_RESKEY_monitor_ip_default="127.0.0.1"
>
> --- 25,31 ----
>  OCF_RESKEY_named_rootdir_default=""
>  OCF_RESKEY_named_options_default=""
>  OCF_RESKEY_named_keytab_file_default=""
> ! OCF_RESKEY_monitor_request_default="localhost"
>  OCF_RESKEY_monitor_response_default="127.0.0.1"
>  OCF_RESKEY_monitor_ip_default="127.0.0.1"
>
> ***************
> *** 80,86 ****
>  <content type="string" default="${OCF_RESKEY_named_default}" />
>  </parameter>
>
> - <parameters>
>  <parameter name="rndc" unique="0" required="0">
>  <longdesc lang="en">
>  Path to the rndc command.
> --- 80,85 ----
> ***************
> *** 89,95 ****
>  <content type="string" default="${OCF_RESKEY_rndc_default}" />
>  </parameter>
>
> - <parameters>
>  <parameter name="host" unique="0" required="0">
>  <longdesc lang="en">
>  Path to the host command.
> --- 88,93 ----
>
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs:
> http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
>



-- 
Serge Dubrouski.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20111003/ed90ce13/attachment.htm>


More information about the Pacemaker mailing list