Details
Description
steps to reproduce :
install couchbase on node 1
root@plum-016:~# /opt/couchbase/bin/couchbase-cli server-add -c localhost:8091 -u Administrator -p password --server-add=10.3.3.62:8091
ERROR: unable to server-add 10.3.3.62:8091 (400) Bad Request
[u'Prepare join failed. Authentication failed. Verify username and password. Got HTTP status 401 from REST call post to http://10.3.3.62:8091/engageCluster2. Body was: []']
the same thing works from the UI so i think UI is passing some moe info.
install couchbase on node 1
root@plum-016:~# /opt/couchbase/bin/couchbase-cli server-add -c localhost:8091 -u Administrator -p password --server-add=10.3.3.62:8091
ERROR: unable to server-add 10.3.3.62:8091 (400) Bad Request
[u'Prepare join failed. Authentication failed. Verify username and password. Got HTTP status 401 from REST call post to http://10.3.3.62:8091/engageCluster2. Body was: []']
the same thing works from the UI so i think UI is passing some moe info.
in 2,0 user has to provide such info so we need to make these two fields required in couchbase-cli and update the readme section
root@plum-016:~# /opt/couchbase/bin/couchbase-cli server-add -c localhost:8091 -u Administrator -p password --server-add=10.3.3.62:8091 --server-add-username=Administrator --server-add-password=password
SUCCESS: server-add 10.3.3.62:8091
help section which needs to be updated with --server-add-password and --server-add-username
Add a node to a cluster, but do not rebalance:
couchbase-cli server-add -c 192.168.0.1:8091 \
--server-add=192.168.0.2:8091
Add a node to a cluster and rebalance:
couchbase-cli rebalance -c 192.168.0.1:8091 \
--server-add=192.168.0.2:8091
Remove a node from a cluster and rebalance:
couchbase-cli rebalance -c 192.168.0.1:8091 \
--server-remove=192.168.0.2:8091