On 1/8/19 9:05 PM, PiBa-NL wrote:
Hi Frederic,

Op 8-1-2019 om 16:27 schreef Frederic Lecaille:
On 12/15/18 4:52 PM, PiBa-NL wrote:
Hi List, Willy,

Trying to run some existing regtests with added option: option http-use-htx

Using: HA-Proxy version 1.9-dev10-c11ec4a 2018/12/15

I get the below issues sofar:

#### based on /reg-tests/connection/b00000.vtc
Takes 8 seconds to pass, in a slightly modified manor 1.1 > 2.0 expectation for syslog. This surely needs a closer look?
#    top  TEST ./htx-test/connection-b00000.vtc passed (8.490)

#### based on /reg-tests/stick-table/b00001.vtc
Difference here is the use=1 vs use=0 , maybe that is better, but then the 'old' expectation seems wrong, and the bug is the case without htx?

Note that the server s1 never responds.

Furthermore, c1 client is run with -run argument.
This means that we wait for its termination before running accessing CLI.
Then we check that there is no consistency issue with the stick-table:

if the entry has expired we get only this line:

    table: http1, type: ip, size:1024, used:0

if not we get these two lines:

    table: http1, type: ip, size:1024, used:1
    .*    use=0 ...

here used=1 means there is still an entry in the stick-table, and use=0 means it is not currently in use (I guess this is because the client has closed its connection).

I do not reproduce your issue with this script both on Linux and FreeBSD 11 both with or without htx.
Did you try with the 'old' development version (1.9-dev10-c11ec4a 2018/12/15), i think in current version its already fixed see my own test results also below.

No. I have not tested with the previous dev versions.
I wanted to clarify the logic behind the test. I agree perhaps there is
not enough comments in this script.

**** h1    0.0 CLI recv|0x8026612c0: key=127.0.0.1 use=1 exp=0 gpt0=0 gpc0=0 gpc0_rate(10000)=0 conn_rate(10000)=1 http_req_cnt=1 http_req_rate(10000)=1 http_err_cnt=0 http_err_rate(10000)=0
**** h1    0.0 CLI recv|
---- h1    0.0 CLI expect failed ~ "table: http1, type: ip, size:1024, used:(0|1\n0x[0-9a-f]*: key=127\.0\.0\.1 use=0 exp=[0-9]* gpt0=0 gpc0=0 gpc0_rate\(10000\)=0 conn_rate\(10000\)=1 http_req_cnt=1 http_req_rate\(10000\)=1 http_err_cnt=0 http_err_rate\(10000\)=0)\n$"

Regards,

PiBa-NL (Pieter)


I tried again today with both 2.0-dev0-251a6b7 and 1.9.0-8223050 and 1.9-dev10-c11ec4a :

HA-Proxy version 2.0-dev0-251a6b7 2019/01/08 - https://haproxy.org/
## Without HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (0.146)
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc passed (0.127)
0 tests failed, 0 tests skipped, 2 tests passed
## With HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (0.147)
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc passed (0.127)
0 tests failed, 0 tests skipped, 2 tests passed


HA-Proxy version 1.9.0-8223050 2018/12/19 - https://haproxy.org/
## Without HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (0.150)
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc passed (0.128)
0 tests failed, 0 tests skipped, 2 tests passed
## With HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (0.148)
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc passed (0.127)
0 tests failed, 0 tests skipped, 2 tests passed


Ok.


HA-Proxy version 1.9-dev10-c11ec4a 2018/12/15
Copyright 2000-2018 Willy Tarreau <wi...@haproxy.org>
## Without HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (0.146)
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc passed (0.127)
0 tests failed, 0 tests skipped, 2 tests passed
## With HTX
#    top  TEST ./PB-TEST/2018/connection-b00000.vtc passed (8.646)
*    top   0.0 TEST ./PB-TEST/2018/stick-table-b00001.vtc starting
**** h1    0.0 CLI recv|# table: http1, type: ip, size:1024, used:1
**** h1    0.0 CLI recv|0x80262a200: key=127.0.0.1 use=1 exp=0 gpt0=0 gpc0=0 gpc0_rate(10000)=0 conn_rate(10000)=1 http_req_cnt=1 http_req_rate(10000)=1 http_err_cnt=0 http_err_rate(10000)=0
**** h1    0.0 CLI recv|
---- h1    0.0 CLI expect failed ~ "table: http1, type: ip, size:1024, used:(0|1\n0x[0-9a-f]*: key=127\.0\.0\.1 use=0 exp=[0-9]* gpt0=0 gpc0=0 gpc0_rate\(10000\)=0 conn_rate\(10000\)=1 http_req_cnt=1 http_req_rate\(10000\)=1 http_err_cnt=0 http_err_rate\(10000\)=0)\n$"
*    top   0.0 RESETTING after ./PB-TEST/2018/stick-table-b00001.vtc
**   h1    0.0 Reset and free h1 haproxy 92940
#    top  TEST ./PB-TEST/2018/stick-table-b00001.vtc FAILED (0.127) exit=2
1 tests failed, 0 tests skipped, 1 tests passed

With the 'old' 1.9-dev10 version and with HTX i can still reproduce the "passed (8.646)" and "use=1".. But both 1.9.0 and 2.0-dev don't show that behavior. I have not 'bisected' further, but i don't think there is anything to do a.t.m. regarding this old (already fixed) issue.

Good news.

Thanks Pieter.

Regards,

PiBa-NL (Pieter)



Regards.

Fred

Reply via email to