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.