Two Telegraf charms on one machine fails install hook!
Bug #1736895 reported by
Sebastien
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Telegraf Charm |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
I deployed two charms on the same machine and wanted to add Telegraf to both the charms. The second charms always fails to open_port (line 196) since that port is already opened on that machine. The quick workaround I found was first closing the port since that will not give an error even if the port is already closed. Otherwise there should be a check if the port is already opened but I haven't found anything useful in the charmhelpers at the moment.
To post a comment you must log in.
I'm pretty sure this is WONTFIX. Even if Juju allowed one unit on the machine to break isolation and use resorces grabbed by another unit (the port), you can still only have one telegraf daemon listening on the port. There will also be clashes with the two charms (each unaware of the other) clobbering the other's configuration files.
While it is possible to smoosh multiple charms onto a single machine, it has never been recommended for this sort of reason. In some cases it was necessary, but the charms to separate lxd containers on the machine is a better and more reliable approach.