[Varnish] #1767: configtest is broken in 4.1

Varnish varnish-bugs at varnish-cache.org
Fri Jul 24 15:15:10 CEST 2015


#1767: configtest is broken in 4.1
----------------------+-----------------------
 Reporter:  lkarsten  |      Owner:
     Type:  defect    |     Status:  new
 Priority:  normal    |  Milestone:
Component:  build     |    Version:  4.1.0-TP1
 Severity:  normal    |   Keywords:
----------------------+-----------------------
 In master/4.1, we seem to bind to the listening ports even when we're just
 parsing the configuration. This behaviour has changed since 4.0.

 This affects how the "configtest" functionality of the init script works.

 {{{
 root at sierra:~# /opt/varnish/sbin/varnishd -a :80 -C \
   -f /etc/varnish/default.vcl -n /tmp
 Error: Could not bind to address :80: Address already in use
 root at sierra:~# varnishd -V
 varnishd (varnish-trunk revision 6179e31)
 }}}

 Expected: -C does not depend on a local listening port, and should do its
 thing without trying to bind to any ports.

 Workaround: removing any -a entries in the command line seem to fix it.

 {{{
 root at sierra:~# /opt/varnish/sbin/varnishd -f /etc/varnish/default.vcl -n
 /tmp -C
 (this works, C-code is output)

 root at sierra:~# /opt/varnish/sbin/varnishd -f /etc/varnish/default.vcl -n
 /tmp
 Error: Could not bind to address *:80: Address already in use
 (as expected)
 }}}

 Teaching the different init scripts how to parse and filter the contents
 of $DAEMON_ARGS feels like the wrong solution.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1767>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list