open_port call should not fail if port is already open by another unit
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
charm-haproxy |
New
|
Undecided
|
Unassigned |
Bug Description
Application can independently call open_port and pass configuration to haproxy charm.
in this case haproxy will generate an error:
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 DEBUG reverseproxy-
2018-09-17 12:56:58 ERROR juju.worker.
in multinode configuration application 'A' and haproxy units on the same node can receive info at different time.
working solution:
1. application 'A' receive info with VIP and call close_port
2. haproxy receive services configuration and call open_port
non-working solution:
1. haproxy receive services configuration and call open_port
2. application 'A' receive info with VIP and call close_port
at step 1 exception is raised...
Is this a case where application 'A' is listening on port 8081, but then you add HA, and so haproxy becomes the one to listen on port 8081 ?