Reusing a frontend name with 2 units causes failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-haproxy |
Confirmed
|
Low
|
Unassigned |
Bug Description
With 2 haproxy units, attempting to update from this services config:
- service_name: haproxy_service
service_host: "0.0.0.0"
service_port: 80
service_options: [option httpchk GET /, balance leastconn, maxconn 10000]
server_options: check inter 10000 rise 2 fall 5 maxconn 512
To this one:
- service_name: haproxy_service
service_host: "0.0.0.0"
service_port: 443
crts: [DEFAULT]
service_options: [option httpchk GET /, balance leastconn, maxconn 10000]
server_options: check inter 10000 rise 2 fall 5 maxconn 512
- service_name: secure-redirect
service_host: "0.0.0.0"
service_port: 80
led to a messed up `/etc/haproxy/
With only 1 haproxy unit, everything worked as expected.
I discovered this can be avoided by simply using a new name for the new HTTPS service (e.g. "https_service"), rather than reusing "haproxy_service". However, I assume getting into the above state isn't the intended functionality.
description: | updated |
description: | updated |
description: | updated |
Changed in charm-haproxy: | |
status: | Incomplete → New |
Changed in charm-haproxy: | |
importance: | Undecided → Low |
status: | New → Confirmed |
The paste link is 404 - can you share simple steps to reproduce, e.g. a juju deploy + config