Bug #73495 MySQL Fabric database permissions need to be more clearly documented
Submitted: 7 Aug 2014 8:27 Modified: 8 Aug 2014 6:36
Reporter: Andrew Morgan Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.4.4 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[7 Aug 2014 8:27] Andrew Morgan
Description:
Fabric uses the same user/password to access the backing store, each of the instances which are defined as part of HA groups, and for replication.

The docs ( http://dev.mysql.com/doc/mysql-utilities/1.4/en/fabric-create-user.html ) suggest the following permissions:
CREATE USER 'fabric'@'localhost' IDENTIFIED BY 'secret';
GRANT ALL ON *.* TO 'fabric'@'localhost';
The problem with those permissions is that it only works if all of your MySQL instances are on 'localhost' and the fabric manger is on 'localhost'.

Fabric uses the same user to initiate replication from one instance to another, so a dependency is created whereby all permutations of server<->client must be accounted for in the grants.

The simplest solution is something like this:

CREATE USER 'fabric'@'10.1.2.%' IDENTIFIED BY 'foo';

This particular dependency isn't explained in the docs and leaves people scratching their head when they add a host to a group, promote it as master, then add a slave to the group and get a permissions error from the slave.

The docs on user permissions and replication need to be expanded to illustrate this multi-way dependency.

I'm not aware of this dependency being explained in the mysqlfailover docs either, customers must just be using 'replication'@'%'

How to repeat:
Attempt to follow current instructions in a multi-host environment

Suggested fix:
Update documentation with a multi-host example.
[8 Aug 2014 6:36] Mats Kindahl
Thank you for the bug report. Verified as described.
[5 Nov 2015 21:43] Philip Olson
Posted by developer:
 
Fabric v1.4 (and its docs) are no longer maintained, but the user and permission system was rewritten in 1.5.5+ and 1.6.2+, and here are those docs:

http://dev.mysql.com/doc/mysql-fabric/1.6/en/fabric-create-user.html

However, because they still only refer to localhost, this bug remains open, and a related todo was created.
[6 Jul 2017 19:19] Bugs System
Status updated to 'Won't fix' (Fabric is now covered under Oracle Lifetime Sustaining Support)