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':