Get allowed hosts ignores prefix
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
High
|
Unassigned | ||
MySQL InnoDB Cluster Charm |
Fix Released
|
High
|
Unassigned | ||
MySQL Router Charm |
New
|
Undecided
|
Unassigned |
Bug Description
The current implementation of get_allowed_hosts [0] is prefix unaware and assumes the database name as the prefix:
# First check for setting with prefix, then without
for attr in ["%s_hostname" % (database), 'hostname']:
if hosts:
This can lead to missing allowed_hosts if the prefix is not the database name and the address is different than private-address. i.e. potentially in IPv6 scenarios.
TRIAGE:
Make get_allowed_hosts prefix aware.
Bonus: Make mysql-router set private-address to match.
Bonus bonus: Make mysql-router send *all* potential addresses that the client might use. This can be a json encoded list.
[0] https:/
Changed in charm-mysql-innodb-cluster: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → David Ames (thedac) |
milestone: | none → 21.01 |
Changed in charm-helpers: | |
status: | Triaged → In Progress |
Changed in charm-mysql-innodb-cluster: | |
milestone: | 21.01 → none |
Charm helpers pull request: https:/ /github. com/juju/ charm-helpers/ pull/531