Varnish config fails due to illegal characters

Bug #1203630 reported by Marco Ceppi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
varnish (Juju Charms Collection)
Fix Released
High
Unassigned

Bug Description

Using 1.11.3 of Juju core, adding a relation between varnish and my-discourse varnish reported 503 errors, attempting to restart varnish produces this error:

 * Stopping HTTP accelerator varnishd [OK ]
 * Starting HTTP accelerator varnishd [fail]
Message from VCC-compiler:
Identifier 'my-discourse0' contains illegal characters, use [0-9a-zA-Z_] only.
('input' Line 1 Pos 9)
backend my-discourse0 {
--------#############--

Running VCC-compiler failed, exit 1

To avoid this, I believe all - should be converted to _ which varnish accepts. In juju core _ is an illegal charm name, so this shouldn't produce any conflicts.

marco@home:~$ juju deploy varnish a_varnish
error: invalid service name "a_varnish"

Marco Ceppi (marcoceppi)
Changed in varnish (Juju Charms Collection):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Jay R. Wren (evarlast) wrote :
Changed in varnish (Juju Charms Collection):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.