Bug #83344 cluster.rejoinInstance ignores password parameter

Submitted: 12 Oct 2016 14:16 Modified: 13 Oct 2016 13:11
Reporter: Eduardo Alapisco Arambula Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Document Store: MySQL Shell Severity:S3 (Non-critical)
Version:MySQL Shell 1.0.6-fb2 Development Previe OS:Oracle Linux (7)
Assigned to: CPU Architecture:Any

[12 Oct 2016 14:16] Eduardo Alapisco Arambula
Description:
method call "cluster.rejoinInstance()"  ignores the password parameter when provided and waits for user input 

How to repeat:
Created 2 local instances , a cluster, and removed one of them from the cluster , using the following commands :

dba.deploySandboxInstance(17500, {sandboxDir:"/export/home/tmp/james/logs/results_adminApiBasic_2016-10-12_06h39/run/sandbox",portx:12500, password: "myPassword"});
dba.deploySandboxInstance(17501, {sandboxDir:"/export/home/tmp/james/logs/results_adminApiBasic_2016-10-12_06h39/run/sandbox",portx:12500, password: "myPassword"});
\connect -c root:myPassword@localhost:17500
cluster = dba.createCluster('testCluster');
cluster = dba.getCluster('testCluster');
cluster.addInstance('root@localhost:17501','myPassword');
cluster.removeInstance('localhost:17501')

Now, when I try to use rejoin cluster , it always asks for a password even when provided :

mysql-js> cluster.rejoinInstance("root@localhost:17501", "myPassword");
Please provide the password for 'root@localhost:17501': 

or 

mysql-js> cluster.rejoinInstance("root:myPassword@localhost:17501");
Please provide the password for 'root:myPassword@localhost:17501':
[13 Oct 2016 13:11] MySQL Verification Team
Thank you for the report.

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

Page generated in 0.038 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.