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

able to set --recovery-type=delta for node that has been failovered with --force

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Critical
    • 3.0
    • 3.0
    • tools
    • Security Level: Public
    • None
    • 3.0.0-747
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      http://qa.sc.couchbase.com/job/centos_x64--00_02-graceful-failover-cli/1/consoleFull

      ./testrunner -i /tmp/gracefulfailover-cli.ini get-logs=True,get-delays=true,GROUP=GRACEFUL,upr=True -t clitest.couchbase_clitest.CouchbaseCliTest.testAddRemoveNodesWithRecovery,nodes_add=1,nodes_rem=0,nodes_failover=1,nodes_readd=1,nodes_recovery=0,GROUP=GRACEFUL

      steps:
      1)2 nodes in cluster
      2) force failover 1 node
      3) end then try to set --recovery-type=delta for failovered node
      [2014-05-28 05:53:01,954] - [remote_util:1461] INFO - running command.raw on 172.23.106.45: /opt/couchbase/bin/couchbase-cli server-add --cluster=localhost -u Administrator -p password --server-add=172.23.106.46:8091 --server-add-username=Administrator --server-add-password=password
      [2014-05-28 05:53:07,153] - [remote_util:1490] INFO - command executed successfully
      [2014-05-28 05:53:07,154] - [remote_util:1404] INFO - SUCCESS: server-add 172.23.106.46:8091
      [2014-05-28 05:53:07,154] - [remote_util:1461] INFO - running command.raw on 172.23.106.45: /opt/couchbase/bin/couchbase-cli rebalance --cluster=localhost -u Administrator -p password
      [2014-05-28 05:53:07,872] - [remote_util:1490] INFO - command executed successfully
      [2014-05-28 05:53:07,873] - [remote_util:1404] INFO - INFO: rebalancing .
      [2014-05-28 05:53:07,873] - [remote_util:1404] INFO - SUCCESS: rebalanced cluster
      [2014-05-28 05:53:07,873] - [remote_util:1461] INFO - running command.raw on 172.23.106.45: /opt/couchbase/bin/couchbase-cli bucket-create --cluster=localhost -u Administrator -p password --bucket=default --bucket-type=couchbase --bucket-port=11211 --bucket-ramsize=200 --bucket-replica=1 --wait
      [2014-05-28 05:53:14,253] - [remote_util:1490] INFO - command executed successfully
      [2014-05-28 05:53:14,254] - [remote_util:1404] INFO - ...SUCCESS: bucket-create
      [2014-05-28 05:53:14,254] - [couchbase_clitest:444] INFO - failover node 172.23.106.46
      [2014-05-28 05:53:14,254] - [remote_util:1461] INFO - running command.raw on 172.23.106.45: /opt/couchbase/bin/couchbase-cli failover --cluster=localhost -u Administrator -p password --server-failover=172.23.106.46:8091 --force
      [2014-05-28 05:53:14,939] - [remote_util:1490] INFO - command executed successfully
      [2014-05-28 05:53:14,940] - [remote_util:1404] INFO - SUCCESS: failover ns_1@172.23.106.46
      [2014-05-28 05:53:14,941] - [remote_util:1461] INFO - running command.raw on 172.23.106.45: /opt/couchbase/bin/couchbase-cli recovery --cluster=localhost -u Administrator -p password --server-recovery=172.23.106.46:8091 --recovery-type=delta
      [2014-05-28 05:53:15,177] - [remote_util:1490] INFO - command executed successfully
      [2014-05-28 05:53:15,178] - [remote_util:1404] INFO - SUCCESS: setRecoveryType for node ns_1@172.23.106.46

      Expectations:

      cli_command = "recovery"
      for num in xrange(nodes_failover):
      #negative case will try recovery when nodes failovered
      options = "--server-recovery=

      {0}:8091 --recovery-type=delta".format(self.servers[nodes_add - nodes_rem - num].ip)
      output, error = remote_client.execute_couchbase_cli(cli_command=cli_command, options=options, cluster_host="localhost", user="Administrator", password="password")
      self.assertEqual("ERROR: unable to setRecoveryType for node ns_1@{0}

      (400) Bad Request".format(self.servers[nodes_add - nodes_rem - num].ip), output[0])
      self.assertEqual("

      {u'otpNode': u\"invalid node name or node can't be used for delta recovery\"}

      ", output[1])

      I saw it on earlier version, seems to me it is a regression

      Attachments

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

        Activity

          People

            alkondratenko Aleksey Kondratenko (Inactive)
            andreibaranouski Andrei Baranouski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty