opened-ports doesn't include ports opened by other charms
Bug #1427770 reported by
Nick Veitch
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Won't Fix
|
Medium
|
Unassigned | ||
juju-core |
Won't Fix
|
Medium
|
Unassigned |
Bug Description
the `opened-ports` hook tool seems like a useful way to avoid conflicts for co-hosted charms (as two charms can't open the same port on the same machine).
However, `opened-ports` only returns ports opened by the current running charm. e.g.
charm# opened-ports <- returns nothing
charm# open-port 8080-8100
error: cannot open 8080-8100/tcp (unit "kafka/0"): conflicts with existing 8080/tcp (unit "mysql/0")
Whilst this behaviour may be justifiable to some degree, it is potentially confusing and seems like an incomplete solution.
tags: | added: charm open-ports |
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in juju-core: | |
status: | Triaged → Won't Fix |
Changed in juju: | |
importance: | Undecided → Medium |
status: | New → Won't Fix |
To post a comment you must log in.
It seems a little strange that opening a port that is already open isn't a no-op. I guess it's because expose works by service name?