• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão9f20157953fa9286cc400af2ba10f8bc38a2e800 (tree)
Hora2013-06-25 11:26:10
AutorHiroaki Nakano <nakano.hiroaki@nttc...>
CommiterHiroaki Nakano

Mensagem de Log

RHEL6.1上コンパイルエラー対処

#30993 の対処をいれると、RHEL6.1上では返り値が使われていない
というエラーが出るため、対処。

CHANGESを更新

sample.crmのレビューコメント対応

Signed-off-by: Hiroaki Nakano <nakano.hiroaki@nttcom.co.jp>

Mudança Sumário

Diff

--- a/CHANGES
+++ b/CHANGES
@@ -1,8 +1,19 @@
1-[Sep. 8 2012] 3.1.0-1 HIBARI Michiro
1+[Sep. 8 2012] 3.1.0-1 HIBARI Michiro, Hiroaki Nakano
22 - Add "session_thread_pool_size" option for l7vsadm and l7directord.
33 - Change spec file. Make devel package.
44 - Fixed bug: Evaluated the header section with the body section in HTTP negotiate check.
55 - Add "server_connect_timeout" option at l7vsd.cf.
6+ - #30844 Fixed man isn't installed.
7+ - #30845 Fixed config file of log-rotation isn't installed.
8+ - #30846 Add CRM sample file for Pacemaker.
9+ - #30847 Support cross operation on Pacemaker.
10+ - #30993 Fixed compailing error of gcc4.6.
11+ - #31199 Fixed remaining threads when deleted virtual service.
12+ - #31200 Fixed segmantaion fault when deleted virtual service.
13+ - #31545 Fixed bulding error of boost 1.50 upper.
14+
15+[Dec. 12 2012] 3.0.4-3 Hiroaki Nakano
16+ - Fixed breaking HTTP header over MAX_BUFFER_SIZE on ip module.(#30300 patch)
617
718 [Aug. 30 2012] 3.0.4-2 Hiroaki Nakano
819 - Fixed LogLevel at #29144 patch.
--- a/doc/heartbeat-ra/sample.crm
+++ b/doc/heartbeat-ra/sample.crm
@@ -37,34 +37,34 @@ group grpUltraMonkey \
3737 ### Primitive Configuration ###
3838 primitive prmVIPcheck ocf:heartbeat:VIPcheck \
3939 params \
40- target_ip="" \
40+ target_ip="MODIFY_TARGET_VIP" \
4141 count="1" \
4242 wait="10" \
43- op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s“
43+ op start interval="0s" timeout="90s" on-fail="restart" start_delay="4s"
4444
45-primitive prmVIP1 ocf:heartbeat:IPaddr2 \
45+primitive prmVIP ocf:heartbeat:IPaddr2 \
4646 params \
47- ip="" \
48- nic="" \
49- cidr_netmask="" \
47+ ip="MODIFY_VIP_IP" \
48+ nic="MODIFY_VIP_NIC" \
49+ cidr_netmask="MODIFY_VIP_NETMASK" \
5050 op start interval="0s" timeout="60s" on-fail="restart" \
5151 op monitor interval="10s" timeout="60s" on-fail="restart" \
52- op stop interval="0s" timeout="60s" on-fail="fence"
52+ op stop interval="0s" timeout="60s" on-fail="block"
5353
5454 primitive prmL7directord ocf:heartbeat:L7directord \
5555 op start interval="0s" timeout="60s" on-fail="restart" \
5656 op monitor interval="10s" timeout="60s" on-fail="restart" \
57- op stop interval="0s" timeout="60s" on-fail="fence"
57+ op stop interval="0s" timeout="60s" on-fail="block"
5858
5959 primitive prmL7vsd ocf:heartbeat:L7vsd \
6060 op start interval="0s" timeout="60s" on-fail="restart" \
6161 op monitor interval="10s" timeout="60s" on-fail="restart" \
62- op stop interval="0s" timeout="60s" on-fail="fence"
62+ op stop interval="0s" timeout="60s" on-fail="block"
6363
6464 primitive prmPingd ocf:pacemaker:pingd \
6565 params \
6666 name="default_ping_set" \
67- host_list="" \
67+ host_list="MODIFY_PING_TARGET_IP" \
6868 multiplier="100" \
6969 op start interval="0s" timeout="60s" on-fail="restart" \
7070 op monitor interval="10s" timeout="60s" on-fail="restart" \
@@ -73,7 +73,7 @@ primitive prmPingd ocf:pacemaker:pingd \
7373 primitive prmDiskd ocf:pacemaker:diskd \
7474 params \
7575 name="diskcheck_status_internal" \
76- device="" \
76+ device="MODIFY_TARGET_DISK_DEV" \
7777 interval="10" \
7878 op start interval="0s" timeout="60s" on-fail="restart" \
7979 op monitor interval="10s" timeout="60s" on-fail="restart" \
@@ -83,8 +83,8 @@ primitive prmDiskd ocf:pacemaker:diskd \
8383 # params \
8484 # priority="1" \
8585 # stonith-timeout="40s" \
86-# hostlist="" \
87-# dead_check_target="" \
86+# hostlist="MODIFY_PRYMARY_HOST" \
87+# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \
8888 # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \
8989 # op start interval="0s" timeout="60s" \
9090 # op monitor interval="10s" timeout="60s" \
@@ -92,12 +92,12 @@ primitive prmDiskd ocf:pacemaker:diskd \
9292
9393 #primitive prmStonith1-2 stonith:external/ipmi \
9494 # params \
95-# passwd="" \
96-# ipaddr="" \
95+# passwd="MODIFY_IPMI_PASSWORD" \
96+# ipaddr="MODIFY_IPMI_IP" \
9797 # priority="2" \
98-# userid="" \
99-# hostname="" \
100-# interface="" \
98+# userid="MODIFY_IPMI_USER" \
99+# hostname="MODIFY_PRYMARY_HOST" \
100+# interface="MODIFY_IPMI_INTERFACE" \
101101 # stonith-timeout="60s" \
102102 # op start interval="0s" timeout="60s" \
103103 # op monitor interval="3600s" timeout="60s" \
@@ -107,7 +107,7 @@ primitive prmDiskd ocf:pacemaker:diskd \
107107 # params \
108108 # priority="3" \
109109 # stonith-timeout="600s" \
110-# hostlist="" \
110+# hostlist="MODIFY_PRYMARY_HOST" \
111111 # op start interval="0s" timeout="60s" \
112112 # op monitor interval="3600s" timeout="60s" \
113113 # op stop interval="0s" timeout="60s"
@@ -116,8 +116,8 @@ primitive prmDiskd ocf:pacemaker:diskd \
116116 # params \
117117 # priority="1" \
118118 # stonith-timeout="40s" \
119-# hostlist="" \
120-# dead_check_target="" \
119+# hostlist="MODIFY_SECONDARY_HOST" \
120+# dead_check_target="MODIFY_TARGET_IP MODIFY_TARGET_IP ..." \
121121 # standby_check_command="/usr/sbin/crm_resource -r prmVIP -W | grep -q `hostname`" \
122122 # op start interval="0s" timeout="60s" \
123123 # op monitor interval="10s" timeout="60s" \
@@ -125,12 +125,12 @@ primitive prmDiskd ocf:pacemaker:diskd \
125125
126126 #primitive prmStonith2-2 stonith:external/ipmi \
127127 # params \
128-# passwd="" \
129-# ipaddr="" \
128+# passwd="MODIFY_IPMI_PASSWORD" \
129+# ipaddr="MODIFY_IPMI_IP" \
130130 # priority="2" \
131-# userid="" \
132-# hostname="" \
133-# interface="" \
131+# userid="MODIFY_IPMI_USER" \
132+# hostname="MODIFY_SECONDARY_HOST" \
133+# interface="MODIFY_IPMI_INTERFACE" \
134134 # stonith-timeout="60s" \
135135 # op start interval="0s" timeout="60s" \
136136 # op monitor interval="3600s" timeout="60s" \
@@ -140,21 +140,21 @@ primitive prmDiskd ocf:pacemaker:diskd \
140140 # params \
141141 # priority="3" \
142142 # stonith-timeout="600s" \
143-# hostlist="" \
143+# hostlist="MODIFY_SECONDARY_HOST" \
144144 # op start interval="0s" timeout="60s" \
145145 # op monitor interval="3600s" timeout="60s" \
146146 # op stop interval="0s" timeout="60s"
147147
148148 ### Resource Location ###
149149 location rsc_location-grpUltraMonkey-1 grpUltraMonkey \
150- rule 200: #uname eq \
151- rule 100: #uname eq \
150+ rule 200: #uname eq MODIFY_PRYMARY_HOST \
151+ rule 100: #uname eq MODIFY_SECONDARY_HOST \
152152 rule -INFINITY: not_defined default_ping_set or default_ping_set lt 100 \
153153 rule -INFINITY: not_defined diskcheck_status_internal or diskcheck_status_internal eq ERROR
154154 #location rsc_location-grpStonith1-2 grpStonith1 \
155-# rule -INFINITY: #uname eq
155+# rule -INFINITY: #uname eq MODIFY_PRYMARY_HOST
156156 #location rsc_location-grpStonith2-3 grpStonith2 \
157-# rule -INFINITY: #uname eq
157+# rule -INFINITY: #uname eq MODIFY_SECONDARY_HOST
158158
159159 ### Resource Colocation ###
160160 colocation rsc_colocation-grpUltraMonkey-clnPingd-1 INFINITY: grpUltraMonkey clnPingd
--- a/l7vsd/src/l7vsadm.cpp
+++ b/l7vsd/src/l7vsadm.cpp
@@ -2993,13 +2993,14 @@ bool l7vs::l7vsadm::execute(int argc, char *argv[])
29932993 set_parameter();
29942994
29952995 // Get l7vsadm execute file path from /proc/(pid)/exe (symbolic link)
2996+ ssize_t ret;
29962997 char l7vsadm_file_path[256];
29972998 memset(l7vsadm_file_path, 0, sizeof(l7vsadm_file_path));
2998- readlink("/proc/self/exe", l7vsadm_file_path, sizeof(l7vsadm_file_path));
2999+ ret = readlink("/proc/self/exe", l7vsadm_file_path, sizeof(l7vsadm_file_path));
29993000
30003001 // L7vsadm command conflict check. (Try l7vsadm execute file lock)
30013002 file_lock lock(l7vsadm_file_path, l7vsadm_err);
3002- if (l7vsadm_err) {
3003+ if (l7vsadm_err || ret == -1) {
30033004 std::cerr << "COMMON ERROR: " << l7vsadm_err.get_message() << std::endl;
30043005 Logger::putLogError(LOG_CAT_L7VSADM_COMMON, 2, l7vsadm_err.get_message(), __FILE__, __LINE__);
30053006 return false;