OSDN Git Service

bug fix
author6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 8 Oct 2010 08:38:45 +0000 (08:38 +0000)
committer6638678 <6638678@1ed66053-1c2d-0410-8867-f7571e6e31d3>
Fri, 8 Oct 2010 08:38:45 +0000 (08:38 +0000)
git-svn-id: http://10.144.169.20/repos/um/branches/l7vsd-3.x-ramiel-epoll-cond@10359 1ed66053-1c2d-0410-8867-f7571e6e31d3

test/script/l7directord/l7directord-1-2-44-2.sh
test/script/l7directord/l7directord-1-2-48-2.sh
test/script/l7directord/l7directord-5-3-5.sh
test/script/l7directord/materials/l7directord-help.txt
test/script/l7vsadm/l7vsadm-1-1-2.sh
test/script/l7vsadm/l7vsadm-4-1-20.sh
test/script/virtualservice/virtualservice-1.sh
test/script/virtualservice/virtualservice-12.sh
test/script/virtualservice/virtualservice-26.sh
test/script/virtualservice/virtualservice-27.sh

index 48ada4d..e02f699 100755 (executable)
@@ -3,7 +3,7 @@
 \cp ./materials/l7directord-1-2-44-l7directord.cf ${L7DIRECTORD_CONF_DIR}/l7directord.cf
 
 #test l7directord config file
-RET=`$L7DIRECTORD -t"`
+RET=`$L7DIRECTORD -t`
 if [ $? -ne 0 ]
 then
         echo "Test failed: $L7DIRECTORD -t"
index f2bcf63..900655f 100755 (executable)
@@ -3,7 +3,7 @@
 \cp ./materials/l7directord-1-2-48-l7directord.cf ${L7DIRECTORD_CONF_DIR}/specified.cf
 
 #test l7directord config file
-RET=`$L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf"`
+RET=`$L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf`
 if [ $? -ne 0 ]
 then
         echo "Test failed: $L7DIRECTORD -t ${L7DIRECTORD_CONF_DIR}/specified.cf"
index 9e6769a..1975678 100755 (executable)
@@ -31,7 +31,7 @@ then
         exit 1
 fi
 
-RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50001 -m ip --foo -s wrr -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1. with return: 65280"`
+RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command ./usr/sbin/l7vsadm -A -t 127.0.0.1:50001 -m ip --foo -s wrr -u 0 -b 0.0.0.0:0  -Q 0 -q 0 2>&1. with return: 65280"`
 if [ -z "${RET}" ]
 then
         echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log"
@@ -45,35 +45,4 @@ then
         exit 1
 fi
 
-
-##########
-RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50002 -m sslid -foo -s lc -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1' with return: 65280"`
-if [ -z "${RET}" ]
-then
-        echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log"
-        exit 1
-fi
-
-RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0201\] Failed to add virtual service to l7vsd: .127.0.0.1:50002 sslid ', output: .PARSE ERROR: protocol module argument error(--proto-module): Option error.'"`
-if [ -z "${RET}" ]
-then
-        echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log"
-        exit 1
-fi
-
-###########33
-RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0303\] Failed to command .$L7VSADM -A -t 127.0.0.1:50003 -m sessionless --foo -s rr -u 0 -b 0.0.0.0:0 -Q 0 -q 0 2>&1' with return: 65280"`
-if [ -z "${RET}" ]
-then
-        echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log"
-        exit 1
-fi
-
-RET=`cat ${L7VS_LOG_DIR}/l7directord.log | grep "\[ERR0201\] Failed to add virtual service to l7vsd: .127.0.0.1:50003 sessionless ', output: .PARSE ERROR: protocol module argument error(--proto-module): Option error.'"`
-if [ -z "${RET}" ]
-then
-        echo "Test failed: cat ${L7VS_LOG_DIR}/l7directord.log"
-        exit 1
-fi
-
 exit 0
index b5a685e..371c582 100644 (file)
@@ -42,7 +42,7 @@ O\bOP\bPT\bTI\bIO\bON\bNS\bS
            This is the name for the configuration as specified in the file
            /\b/e\bet\btc\bc/\b/h\bha\ba.\b.d\bd/\b/c\bco\bon\bnf\bf/\b/_\bc_\bo_\bn_\bf_\bi_\bg_\bu_\br_\ba_\bt_\bi_\bo_\bn
 
-       -\b-d\bd  Dont start as daemon. Useful for debugging.
+       -\b-d\bd  Don't start as daemon. Useful for debugging.
 
        -\b-h\bh  Help. Print user manual of l7directord.
 
@@ -158,7 +158,7 @@ S\bSY\bYN\bNT\bTA\bAX\bX
 
        l\blo\bog\bgf\bfi\bil\ble\be =\b= "\b"_\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\bl_\bo_\bg_\bf_\bi_\bl_\be"\b"|syslog_facility
            An alternative logfile might be specified with this directive. If
-           the logfile does not have a leading ’/’, it is assumed to be a
+           the logfile does not have a leading '/', it is assumed to be a
            _\bs_\by_\bs_\bl_\bo_\bg(3) facility name.
 
            The default is to log directly to the file
@@ -210,7 +210,7 @@ S\bSY\bYN\bNT\bTA\bAX\bX
            Indicates the module parameter of l\bl7\b7d\bdi\bir\bre\bec\bct\bto\bor\brd\bd. Here p\bpr\bro\bot\bto\bo-\b-m\bmo\bod\bdu\bul\ble\be
            denotes the protocol module name (For example, pfilter). m\bmo\bod\bdu\bul\ble\be-\b-
            a\bar\brg\bgs\bs denotes the arguments for the protocol module (For example,
-           --pattern-match ’*.html*’).  m\bmo\bod\bdu\bul\ble\be-\b-a\bar\brg\bgs\bs is optional only when set
+           --pattern-match '*.html*').  m\bmo\bod\bdu\bul\ble\be-\b-a\bar\brg\bgs\bs is optional only when set
            s\bse\bes\bss\bsi\bio\bon\bnl\ble\bes\bss\bs, i\bip\bp and s\bss\bsl\bli\bid\bd module to p\bpr\bro\bot\bto\bo-\b-m\bmo\bod\bdu\bul\ble\be.  The last
            argument is optional (For example, --reschedule).
 
@@ -292,8 +292,8 @@ S\bSY\bYN\bNT\bTA\bAX\bX
            regexp may be overridden by an optional per real-server based
            receive regexp.
 
-           For a DNS check this should be any one the A records addresses or
-           any one of the PTR records names.
+           For a DNS check this should be any one the A record's addresses or
+           any one of the PTR record's names.
 
            For a MySQL check, the receive setting is not used.
 
@@ -346,15 +346,15 @@ S\bSY\bYN\bNT\bTA\bAX\bX
 
        r\bre\bea\bal\bld\bdo\bow\bwn\bnc\bca\bal\bll\blb\bba\bac\bck\bk =\b= "\b"_\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\bd_\bo_\bw_\bn_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk"\b"
            If this directive is defined, l\bl7\b7d\bdi\bir\bre\bec\bct\bto\bor\brd\bd automatically calls the
-           executable _\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\bd_\bo_\bw_\bn_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk after a real servers status
+           executable _\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\bd_\bo_\bw_\bn_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk after a real server's status
            changes to down. The first argument to the realdowncallback is the
-           real servers IP-address and port (ip_address:portnumber).
+           real server's IP-address and port (ip_address:portnumber).
 
        r\bre\bea\bal\blr\bre\bec\bco\bov\bve\ber\brc\bca\bal\bll\blb\bba\bac\bck\bk =\b= "\b"_\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\br_\be_\bc_\bo_\bv_\be_\br_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk"\b"
            If this directive is defined, l\bl7\b7d\bdi\bir\bre\bec\bct\bto\bor\brd\bd automatically calls the
-           executable _\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\br_\be_\bc_\bo_\bv_\be_\br_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk after a real servers
+           executable _\b/_\bp_\ba_\bt_\bh_\b/_\bt_\bo_\b/_\br_\be_\ba_\bl_\br_\be_\bc_\bo_\bv_\be_\br_\bc_\ba_\bl_\bl_\bb_\ba_\bc_\bk after a real server's
            status changes to up. The first argument to the realrecovercallback
-           is the real servers IP-address and port (ip_address:portnumber).
+           is the real server's IP-address and port (ip_address:portnumber).
 
        c\bcu\bus\bst\bto\bom\bmc\bch\bhe\bec\bck\bk =\b= "\b"_\bc_\bu_\bs_\bt_\bo_\bm _\bc_\bh_\be_\bc_\bk _\bc_\bo_\bm_\bm_\ba_\bn_\bd"\b"
            If this directive is defined and set c\bch\bhe\bec\bck\bkt\bty\byp\bpe\be to custom,
@@ -450,4 +450,4 @@ A\bAU\bUT\bTH\bHO\bOR\bRS\bS
 
 
 
-perl v5.10.1                      2010-10-07                    L7DIRECTORD(1)
+perl v5.10.1                      2010-10-08                    L7DIRECTORD(1)
index 651c40c..a67a6da 100755 (executable)
@@ -23,7 +23,7 @@ then
         exit 1
 fi
 
-if [ $((TIME1 + 4)) -ne $TIME2 ]
+if [ $((TIME1 + 4)) -gt $TIME2 ]
 then
         echo "Test failed: flock -n -x $L7VSADM l7vsadm"
         exit 1
index 234a165..e9758c6 100755 (executable)
@@ -80,7 +80,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
   -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
   Bypass Settings:
-    Sorry Server                  127.0.0.1:50001
+    Sorry Server                  127.0.0.1:50001 Masq
     Max Connection                0
     Sorry Flag                    off
   SSL Settings:
index 463a4ef..c44de7c 100755 (executable)
@@ -82,20 +82,20 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
   -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
 TCP localhost:40001 sessionless wrr --sorry-uri '/' --statistic 0
   Bypass Settings:
-    Sorry Server                  localhost:50001
+    Sorry Server                  localhost:50001 Masq
     Max Connection                10
     Sorry Flag                    off
   SSL Settings:
     SSL Config File               none
   Logging Settings:
     Access Log                    on
-    Access Log File               deferaccept,cork,quickackoff,nodelay
+    Access Log File               /var/log/l7vs/l7vsd_conn.log
     Access Log Rotate             --ac-rotate-type size --ac-rotate-max-backup-index 12 --ac-rotate-max-filesize 1M
   Socket Settings:
     TCP_DEFER_ACCEPT              enable
     TCP_NODELAY                   enable
     TCP_CORK                      enable
-    TCP_QUICKACK                  enable
+    TCP_QUICKACK                  disable
   Throughput:
     Current Upload / Limit        0.000000 Mbps / 800.000000 Mbps
     Current Download / Limit      0.000000 Mbps / 800.000000 Mbps
index 96cd069..79682b2 100755 (executable)
@@ -167,7 +167,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
   -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
 TCP localhost:40001 ip lc --timeout 3600 --no-reschedule --sorry-uri '/' --statistic 0
   Bypass Settings:
-    Sorry Server                  localhost:50001
+    Sorry Server                  localhost:50001 Masq
     Max Connection                200
     Sorry Flag                    off
   SSL Settings:
index 0e448f1..4237665 100755 (executable)
@@ -82,7 +82,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
   -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
   Bypass Settings:
-    Sorry Server                  127.0.0.1:50001
+    Sorry Server                  127.0.0.1:50001 Masq
     Max Connection                0
     Sorry Flag                    off
   SSL Settings:
index 58ff635..67e0e8a 100755 (executable)
@@ -89,7 +89,7 @@ Prot LocalAddress:Port ProtoMod Scheduler Protomod_opt_string
   -> RemoteAddress:Port           Forward Weight ActiveConn InactConn
 TCP 127.0.0.1:40001 sessionless rr --sorry-uri '/' --statistic 0
   Bypass Settings:
-    Sorry Server                  127.0.0.1:50001
+    Sorry Server                  127.0.0.1:50001 Masq
     Max Connection                0
     Sorry Flag                    off
   SSL Settings: