mysql 8.0.19-0ubuntu4 has new permissions requirements
Bug #1873331 reported by
David Ames
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Committed
|
Critical
|
David Ames | ||
MySQL InnoDB Cluster Charm |
Fix Released
|
Critical
|
David Ames |
Bug Description
Mysql router is unable to bootstrap due to missing permissions:
ERROR juju-log Failed to bootstrap mysqlrouter: Error: Error executing MySQL query "select cluster_type from mysql_innodb_
mysql 8.0.19-0ubuntu4 is a recent update.
Changed in charm-mysql-innodb-cluster: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
assignee: | nobody → David Ames (thedac) |
Changed in charm-mysql-innodb-cluster: | |
status: | Confirmed → In Progress |
Changed in charm-mysql-innodb-cluster: | |
milestone: | none → 20.05 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
The view mysql_innodb_ cluster_ metadata. v2_this_ instance references performance_ schema. global_ variables which the mysqlrouter user does not have permissions for.
v2_this_instance | CREATE ALGORITHM=UNDEFINED DEFINER= `clusteruser` @`10.5. 0.4` SQL SECURITY INVOKER VIEW `v2_this_instance` AS select `i`.`cluster_id` AS `cluster_ id`,`i` .`instance_ id` AS `instance_ id`,`c` .`cluster_ name` AS `cluster_ name`,` c`.`cluster_ type` AS `cluster_type` from (`v2_instances` `i` join `clusters` `c` on((`i` .`cluster_ id` = `c`.`cluster_id`))) where (`i`.`mysql_ server_ uuid` = (select convert( `performance_ schema` .`global_ variables` .`VARIABLE_ VALUE` using ascii) from `performance_ schema` .`global_ variables` where (`performance_ schema` .`global_ variables` .`VARIABLE_ NAME` = 'server_uuid'))) | utf8mb4 | utf8mb4_0900_ai_ci |
Adding charmhelpers to the bug. Needs: "GRANT SELECT ON performance_ schema. global_ variables"