[Pacemaker] Trouble with ordering

Gerald Vogt vogt at spamcop.net
Mon Oct 3 13:16:28 UTC 2011


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.

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"...

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.

-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 ----




More information about the Pacemaker mailing list