Bug #78676 Mysqlfabric backup user not found error when running shard move/split clone cmds
Submitted: 1 Oct 2015 23:17 Modified: 15 Dec 2015 0:43
Reporter: Andres Eduardo Sanchez Rodriguez Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Fabric: Sharding Severity:S2 (Serious)
Version:1.6.2 OS:Any
Assigned to: CPU Architecture:Any

[1 Oct 2015 23:17] Andres Eduardo Sanchez Rodriguez
Description:
When running shard move/split commands and also server clone commands, and error is prompted stating that backup user is not found in server section:

stderr: Fabric UUID:  baf4ea7e-4203-44be-8f4f-5f9aac0f890c
Time-To-Live: 1

No option 'backup_user' in section: 'servers'

How to repeat:

1.-Configure fabric using basci topology, along with new secure password mgmt feature, set password for server,backup,restore users
2.-Try to do a shard move or split or to run server cloen command as shown below:

2015-10-01 23:55:09.459 FIN Thr{1404} AbstractRunExternal.run: Finished executing: [/usr/bin/mysqlfabric, sharding, split_shard, 1, my_group6, --split_value=C] exitcode 1
2015-10-01 23:55:09.459 SEV Thr{1403} FabricCommand.doCommand: Errorcode 1 when running  fabric script!
stdout: Fabric UUID:  a9d70bc7-13a4-41e4-84e6-596639808765
Time-To-Live: 1

NoOptionError: No option 'backup_user' in section: 'servers'

2015-10-01 23:54:38.609 FIN Thr{1399} AbstractRunExternal.run: Finished executing: [/usr/bin/mysqlfabric, sharding, move_shard, 1, my_group7] exitcode 1
2015-10-01 23:54:38.610 SEV Thr{1394} FabricCommand.doCommand: Errorcode 1 when running  fabric script!
stdout: Fabric UUID:  a9d70bc7-13a4-41e4-84e6-596639808765
Time-To-Live: 1

NoOptionError: No option 'backup_user' in section: 'servers'

01/10 20:09:09.092 FIN Thr{1603} AbstractRunExternal.run: Finished executing: [/usr/bin/mysqlfabric, server, clone, my_group1, viking54:13044] exitcode 1
01/10 20:09:09.092 SEV Thr{1601} FabricCommand.doCommand: Errorcode 1 when running  fabric script!
stdout: Fabric UUID:  baf4ea7e-4203-44be-8f4f-5f9aac0f890c
Time-To-Live: 1

No option 'backup_user' in section: 'servers'

Suggested fix:
Backup user should be found, perhaps it should be searched in fabric state store database instead of cfg file, else an error message should state additional parameter could be used to avoid this error.
[15 Dec 2015 0:43] Philip Olson
Posted by developer:
 
Fixed as of the upcoming MySQL Fabric 1.5.7 / 1.6.3 release, and here's the changelog entry:

When Fabric starts up, the server and backup modules that are not
dynamically loaded are now initialized with the passwords for access. The
authentication information is initialized in the state store before Fabric
is started. Before, some operations would yield the error "NoOptionError:
No option 'backup_user' in section: 'servers'".

Thank you for the bug report.