[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-ha-dev
Subject: [Linux-ha-dev] [PATCH] named RA: support IPv6
From: Junko IKEDA <tsukishima.ha () gmail ! com>
Date: 2011-12-13 7:32:07
Message-ID: CAB49TtRvaAzj-RHWtK_q_oPZkt2KooCZ1zvz_fHn-WFL70yqxw () mail ! gmail ! com
[Download RAW message or body]
Hi Serge,
We are now investigating the support status of ocf RAs,
and this is the issue for named.
Here is the example output of host command;
# host www.kame.net
www.kame.net is an alias for orange.kame.net.
orange.kame.net has address 203.178.141.194
orange.kame.net has IPv6 address 2001:200:dff:fff1:216:3eff:feb1:44d7
named_monitor() searches its named server with $OCF_RESKEY_monitor_response.
I'm not familiar with named's behavior,
is it possible to set IPv6 to $OCF_RESKEY_monitor_response?
If $OCF_RESKEY_monitor_response has IPv6 address,
the following syntax can not hit the result, right?
named_monitor()
output=`$OCF_RESKEY_host $OCF_RESKEY_monitor_request $OCF_RESKEY_monitor_ip`
if [ $? -ne 0 ] || ! echo $output | grep -q '.* has address
'"$OCF_RESKEY_monitor_response"
Would you please give me some advice?
Regards,
Junko IKEDA
NTT DATA INTELLILINK CORPORATION
["named_ipv6.patch" (application/octet-stream)]
diff --git a/heartbeat/named b/heartbeat/named
index c11b4e5..444a0c8 100755
--- a/heartbeat/named
+++ b/heartbeat/named
@@ -274,7 +274,7 @@ named_monitor() {
output=`$OCF_RESKEY_host $OCF_RESKEY_monitor_request $OCF_RESKEY_monitor_ip`
- if [ $? -ne 0 ] || ! echo $output | grep -q '.* has address '"$OCF_RESKEY_monitor_response"
+ if [ $? -ne 0 ] || ! echo $output | egrep -q '.* has |IPv6 address '"$OCF_RESKEY_monitor_response"
then
ocf_log err "named didn't answer properly for $OCF_RESKEY_monitor_request."
ocf_log err "Expected: $OCF_RESKEY_monitor_response."
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic