Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-50736

[tools] server-readd failed to add back node with secure connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • Morpheus
    • 7.1.0
    • tools
    • None
    • Centos 7
    • Untriaged
    • 1
    • No
    • Tools 2022-Jan, Tools 2022-Feb

    Description

      Install Couchbase server 7.1.0-2179 on 5 centos 7 servers
      Add 4 nodes to node 224 using CLI
      Remove node 239 and rebalance
      Create default bucket.
      Hard failover node 227
      Run recovery on node 227 with option delta recovery
      Add node 227 back to cluster. Failed to add node back.

      In build 1038, we could add this node back using non secure connection as mention in ticket MB-50720

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.225:18091                            --server-add-username=Administrator                            --server-add-password=password  --no-ssl-verify
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.226:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify 
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.227:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify
      SUCCESS: Server added
      [root@s44015 ~]# 
      [root@s44015 ~]# 
      [root@s44015 ~]#  /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.239:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify 
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli rebalance -c http://localhost -u Administrator -p password --server-remove=172.23.121.239:8091
      SUCCESS: Rebalance complete
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli bucket-create -c http://localhost -u Administrator -p password --bucket=default --bucket-type=couchbase --bucket-ramsize=200 --bucket-replica=1 --wait
      SUCCESS: Bucket created
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli failover -c http://localhost -u Administrator -p password --server-failover=172.23.121.227:8091 --hard 
      SUCCESS: Server failed over
      [root@s44015 ~]#  /opt/couchbase/bin/couchbase-cli recovery -c http://localhost -u Administrator -p password --server-recovery=172.23.121.227:8091 --recovery-type=delta
      SUCCESS: Servers recovered
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-readd -c https://localhost:18091  -u Administrator -p password --server-add=https://172.23.121.227:18091 --no-ssl-verify 
      DEPRECATED: Please use the recovery command instead
      ERROR: Server not found https://172.23.121.227:18091
      [root@s44015 ~]# 
      
      

      In build 7.1.0-1038

      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.225:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify 
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.226:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify 
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.227:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify
      SUCCESS: Server added
      [root@s44015 ~]#  /opt/couchbase/bin/couchbase-cli server-add -c https://localhost:18091 -u Administrator -p password --server-add=https://172.23.121.239:18091                            --server-add-username=Administrator                            --server-add-password=password                            --no-ssl-verify 
      SUCCESS: Server added
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli rebalance -c http://localhost -u Administrator -p password --server-remove=172.23.121.239:8091
      Rebalancing                                                                                                                                                                                                                 
      Bucket: 00/00 ()                                                                                                                                                                                            0 docs remaining
      [==================================================================================================================================================================================================================] 100.00%
      SUCCESS: Rebalance complete
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli bucket-create -c http://localhost -u Administrator -p password --bucket=default --bucket-type=couchbase --bucket-ramsize=200 --bucket-replica=1 --wait
      SUCCESS: Bucket created
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli failover -c http://localhost -u Administrator -p password --server-failover=172.23.121.227:8091 --hard 
      SUCCESS: Server failed over
      [root@s44015 ~]#  /opt/couchbase/bin/couchbase-cli recovery -c http://localhost -u Administrator -p password --server-recovery=172.23.121.227:8091 --recovery-type=delta
      SUCCESS: Servers recovered
      [root@s44015 ~]# /opt/couchbase/bin/couchbase-cli server-readd -c http://localhost:8091  -u Administrator -p password --server-add=172.23.121.227:8091 --no-ssl-verify
      DEPRECATED: Please use the recovery command instead
      SUCCESS: Servers recovered
      [root@s44015 ~]# 
      

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              thuan Thuan Nguyen
              thuan Thuan Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty