ports not correctly opened after hook failure

Bug #1815437 reported by Junien F
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
charm-haproxy
Fix Released
Undecided
Barry Price

Bug Description

Hi,

If you set services via juju config, and the resulting config fails the check at :

 960 if service_haproxy("check"):

Then haproxy will forget that it has not opened the ports. I think this can be fix easily at :

 934 old_service_ports = get_service_ports()

haproxy should use "opened-ports" here instead of get_service_ports(), which just reads the config and doesn't check which ports are actually opened.

Thanks

Related branches

Barry Price (barryprice)
Changed in charm-haproxy:
assignee: nobody → Barry Price (barryprice)
status: New → Fix Committed
Jamon Camisso (jamon)
Changed in charm-haproxy:
status: Fix Committed → 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.