Bug #72037 Contradictory error message when adding a server to a group

Submitted: 14 Mar 2014 16:30
Reporter: Alfranio Tavares Correia Junior Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Fabric Severity:S3 (Non-critical)
Version:1.4.0 OS:Any
Assigned to: CPU Architecture:Any

[14 Mar 2014 16:30] Alfranio Tavares Correia Junior
Description:
When you try to add a server that does not have a user with the appropriate privileges to be managed by Fabric the following error is printed out:

DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'user'@'localhost' (using password: NO)", 1045)

The message though is contradictory as Fabric manages to connect to the server. The problem here is that there is no user with the appropriate privileges.

How to repeat:
1 - Configure an invalid user (e.g. user) in the "servers" section.

2 - Start Fabric.

3 - Create a group (e.g. my_group).

4 - Try to add a server to the group as follows:

$ mysqlfabric group add my_group localhost:13001

Procedure :
{ uuid        = 1d22728f-5b06-4551-96d6-a09ab012a312,
  finished    = True,
  success     = False,
  return      = DatabaseError: ("Cannot connect to the server. Error 1045 (28000): Access denied for user 'alfranio'@'localhost' (using password: NO)", 1045),
  activities  = 
}

Suggested fix:
Improve the error message.
[6 Jul 2017 19:19] Bugs System
Status updated to 'Won't fix' (Fabric is now covered under Oracle Lifetime Sustaining Support)

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.049 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.