I fix the problem go to the lxd container you install mysql-router then open the conf file in /var/lib/mysql/vault-mysql-router/mysqlrouter.conf
- i change unknown_config_option = error to unknown_config_option = warning
- [metadata_cache:bootstrap] to [metadata_cache:jujuCluster]
- [routing:bootstrap_rw] to [routing:jujuCluster_rw]
- [routing:bootstrap_ro] to [routing:jujuCluster_ro]
- [routing:bootstrap_x_rw] to [routing:jujuCluster_x_rw]
- [routing:bootsrap_x_ro] to [routing:jujuCluster_x_ro]
- remove the last [metadata_cache:jujuCluster]
Because the default cluster name is jujuCluster not bootstrap then restart the service for every mysql-router then it works