Failing tests on OSX

İsmail Dönmez ismail at namtrac.org
Mon Jan 17 20:47:20 CET 2011


Hi;

Tested using OSX 10.6.6 and Varnish 2.1.4 release. Two tests are failing;

tests/a00004.vtc

Error log is;

#### top  macro def tmpdir=/tmp/vtc.33934.6b8b4567
#### top  macro def bad_ip=10.255.255.255
#    top  TEST tests/a00004.vtc starting
#    top  TEST dual shared server HTTP transactions
##   s1   Starting server
#### s1   macro def s1_addr=127.0.0.1
#### s1   macro def s1_port=54466
#### s1   macro def s1_sock=127.0.0.1 54466
#    s1   Listen on 127.0.0.1 54466
##   c1   Starting client
##   s1   Started on 127.0.0.1 54466
###  s1   Iteration 0
##   c2   Starting client
##   c1   Waiting for client
###  c1   Connect to 127.0.0.1 54466
###  c2   Connect to 127.0.0.1 54466
###  c1   Connected to 127.0.0.1 54466 fd is 4
###  c2   Connected to 127.0.0.1 54466 fd is 5
###  s1   rxreq
#### c1   txreq| PUT /foo HTTP/1.0\r\n
#### c1   txreq| \r\n
#### c2   txreq| PUT /foo HTTP/1.0\r\n
#### c2   txreq| \r\n
---- c1   Write failed: Broken pipe

Sometimes c2 fails with the same error.


tests/c00005.vtc

Error log is;


---- v1   FAIL VCL does not compile
#### top  macro def tmpdir=/tmp/vtc.14805.6b8b4567
#### top  macro def bad_ip=10.255.255.255
#    top  TEST tests/c00005.vtc starting
#    top  TEST Test simple ACL
##   s1   Starting server
#### s1   macro def s1_addr=127.0.0.1
#### s1   macro def s1_port=53086
#### s1   macro def s1_sock=127.0.0.1 53086
#    s1   Listen on 127.0.0.1 53086
##   s1   Started on 127.0.0.1 53086
##   v1   Launch
###  v1   CMD: cd ../varnishd && ./varnishd -d -d -n
/tmp/vtc.14805.6b8b4567/v1 -p auto_restart=off -p
syslog_cli_traffic=off -a '127.0.0.1:0' -S
/tmp/vtc.14805.6b8b4567/v1/_S -M '127.0.0.1 53087' -P
/tmp/vtc.14805.6b8b4567/v1/varnishd.pid
-sfile,/tmp/vtc.14805.6b8b4567/v1,10M  -p vcl_trace=on
###  v1   debug| storage_file: filename:
/tmp/vtc.14805.6b8b4567/v1/varnish.8L0ttO size 10 MB.\n
###  v1   debug| Creating new SHMFILE\n
###  v1   debug| Varnish on Darwin,10.6.0,i386,-sfile,-hcritbit\n
###  v1   debug| 200 230     \n
###  v1   debug| -----------------------------\n
###  v1   debug| Varnish HTTP accelerator CLI.\n
###  v1   debug| -----------------------------\n
###  v1   debug| Darwin,10.6.0,i386,-sfile,-hcritbit\n
###  v1   debug| \n
###  v1   debug| Type 'help' for command list.\n
###  v1   debug| Type 'quit' to close CLI session.\n
###  v1   debug| Type 'start' to launch worker process.\n
###  v1   debug| \n
###  v1   CLI connection fd = 5
###  v1   CLI RX  107
#### v1   CLI RX| cgvegwfwlmpryzghgzpdxhtknbgiijwl\n
#### v1   CLI RX| \n
#### v1   CLI RX| Authentication required.\n
#### v1   CLI TX| auth
758b3e7662c9f2c102219616d4b7a4074a15049b945efe0a97fd5de4de7f2836\n
###  v1   CLI RX  200
#### v1   CLI RX| -----------------------------\n
#### v1   CLI RX| Varnish HTTP accelerator CLI.\n
#### v1   CLI RX| -----------------------------\n
#### v1   CLI RX| Darwin,10.6.0,i386,-sfile,-hcritbit\n
#### v1   CLI RX| \n
#### v1   CLI RX| Type 'help' for command list.\n
#### v1   CLI RX| Type 'quit' to close CLI session.\n
#### v1   CLI RX| Type 'start' to launch worker process.\n
#### v1   CLI TX| vcl.inline vcl1 "backend s1 { .host = \"127.0.0.1\";
.port = \"53086\"; }\n\n\tacl acl1 {\n\t\t\"localhost\";\n\t}\n\n\tsub
vcl_recv {\n\t\tif (client.ip ~ acl1) {\n\t\t\tset req.url =
\"/\";\n\t\t}\n\t}\n"
###  v1   CLI RX  106
#### v1   CLI RX| Message from VCC-compiler:\n
#### v1   CLI RX| DNS lookup(localhost): nodename nor servname
provided, or not known\n
#### v1   CLI RX| (input Line 4 Pos 17)\n
#### v1   CLI RX|                 "localhost";\n
#### v1   CLI RX| ----------------###########-\n
#### v1   CLI RX| Running VCC-compiler failed, exit 1\n
#### v1   CLI RX| VCL compilation failed
---- v1   FAIL VCL does not compile

Looks like a DNS failure but I made sure "localhost" resolves to
127.0.0.1 correctly.

Regards,
ismail




More information about the varnish-misc mailing list