Varnish config fails due to illegal characters
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"
Changed in varnish (Juju Charms Collection): | |
importance: | Undecided → High |
status: | New → Confirmed |
Changed in varnish (Juju Charms Collection): | |
status: | Confirmed → Fix Released |
https:/ /code.launchpad .net/~evarlast/ charms/ precise/ varnish/ hyphen- to-underscore/ +merge/ 226734