Fan network's subnets not allowed to connect to database
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MySQL InnoDB Cluster Charm |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
Hi,
Full juju status: https:/
Bundle: https:/
I am currently running a mysql/keystone/
I am using fan-networking for this deployment.
Mysql runs on top of LXCs whereas keystone / vault / horizon may run on top of lxcs or directly on VMs. However, units running on VMs directly cannot connect to the mysql cluster running on top of LXC + FAN net.
These routers get stuck in:
keystone-
With following flags are present in the unit above:
charm.installed
charm.is-
charm.mysqlrout
charms.
charms.
charms.
charms.
db-router.available
db-router.connected
endpoint.
endpoint.
endpoint.
endpoint.
endpoint.
keystone-
shared-db.available
Looking into mysql router code, this is the line it gets stuck:
And indeed, the cmd generated above uses a fan-networking IP:
sudo /usr/bin/
full command + output:
https:/
Whereas the relation between mysql cluster and that same unit shows:
https:/
Which shows ingress-address seen by mysql-innodb-
That actually exposes another issue, in which mysql-innodb-
Mysql cluster charm should expose an option to add subnets to this access list, e.g.:
$ juju config mysql-innodb-
description: | updated |
summary: |
- Need manual action/option to add subnets to allowlist: fan networking is - not added + Fan network's subnets not allowed to connect to database |
If I replace --report-host by its FAN IP, I get:
# sudo /usr/bin/ mysqlrouter --user mysql --name keystone- mysql-router --bootstrap mysqlrouteruser :<PASSWORD> @252.153. 13.224 --directory /var/lib/ mysql/keystone- mysql-router --conf-use-sockets --conf-bind-address 127.0.0.1 --report-host 252.153.11.1 --conf-base-port 3306 --disable-rest --force r'@'252. 153.11. 1' (using password: YES) (1045)
Error: Unable to connect to the metadata server: Error connecting to MySQL server at 252.153.13.224:0: Access denied for user 'mysqlrouteruse
Seems mysql cluster is not accepting clients coming from different subnets.