Vault service not running and Failed to connect to MySQL

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

  1. i change unknown_config_option = error to unknown_config_option = warning
  2. [metadata_cache:bootstrap] to [metadata_cache:jujuCluster]
  3. [routing:bootstrap_rw] to [routing:jujuCluster_rw]
  4. [routing:bootstrap_ro] to [routing:jujuCluster_ro]
  5. [routing:bootstrap_x_rw] to [routing:jujuCluster_x_rw]
  6. [routing:bootsrap_x_ro] to [routing:jujuCluster_x_ro]
  7. 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