The documented miniumum grants for bootstrap are insufficient
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
Fix Released
|
Critical
|
David Ames | ||
MySQL InnoDB Cluster Charm |
Fix Released
|
Critical
|
David Ames | ||
MySQL Router Charm |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The documented [0] minimum grants for bootstrap are insufficient
GRANT CREATE USER ON *.* TO 'bootstrapuser'@'%' WITH GRANT OPTION;
GRANT SELECT, INSERT, UPDATE, DELETE ON mysql_innodb_
GRANT SELECT ON mysql.user TO 'bootstrapuser'
GRANT SELECT ON performance_
GRANT SELECT ON performance_
Leads to the following error during bootstrap:
# Bootstrapping MySQL Router instance at '/var/lib/
- Creating account(s) (only those that are needed, if any)
Error: Error creating MySQL account for router (GRANTs stage): Error executing MySQL query "GRANT SELECT, EXECUTE ON mysql_innodb_
Since 8.0.19. This worked with 8.0.18.
[0] https:/
TRIAGE: Determine the missing grants
description: | updated |
description: | updated |
Changed in charm-mysql-innodb-cluster: | |
status: | Invalid → Triaged |
importance: | Undecided → Critical |
assignee: | nobody → David Ames (thedac) |
Changed in charm-helpers: | |
status: | Triaged → Fix Committed |
Changed in charm-mysql-innodb-cluster: | |
status: | In Progress → Fix Committed |
Changed in charm-helpers: | |
status: | Fix Committed → Fix Released |
Changed in charm-mysql-innodb-cluster: | |
status: | Fix Committed → Fix Released |
The missing grant is EXECUTE on mysql_innodb_ cluster_ metadata
The line should be: cluster_ metadata. * TO 'mysqlrouteruse r'@'10. 5.0.23' ;
GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE ON mysql_innodb_
This is updated in charm helpers.