We would like to auto-generate the username and database for the legacy mysql relations if the config values for them are empty.
There is a divergence in logic between the mysql and mysql-root legacy relation implementations. Furthermore, some of the files and methods reference osm_mysql (instead of mysql_root)
Solution
Auto-generate username and database if config values for these options are empty (port over logic from the vm operator)
Add missing logic in both mysql and mysql_root to make their logic as similar as possible. Rename osm_mysql to mysql_root
Issue
mysql
andmysql-root
legacy relation implementations. Furthermore, some of the files and methods referenceosm_mysql
(instead ofmysql_root
)Solution
mysql
andmysql_root
to make their logic as similar as possible. Renameosm_mysql
tomysql_root