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

couchbase-cli: collect-logs-status reports status as 'cancelled' instead of 'completed'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • 7.2.1
    • 7.2.1
    • ns_server
    • Enterprise edition 7.2.1-5902
    • Untriaged
    • Linux x86_64
    • 0
    • Unknown

    Description

       

      Steps:

      • 2 node cluster
      • Bring down one of the node using 'service couchbase-server stop'
      • Start cbcollect using the cli command on the active node (using --all-nodes)

      root@sa1716-deb10:~# /opt/couchbase/bin/couchbase-cli collect-logs-start -c 172.23.108.67:8091 -u Administrator -p password --all-nodes
      SUCCESS: Log collection started

      • Wait for cbcollect to complete

      Observation:

      After completion, collection status is reported as 'cancelled' instead of 'completed' since one of the node is already unreachable and reported as 'failed' as expected.

      root@sa1716-deb10:~# /opt/couchbase/bin/couchbase-cli collect-logs-status -c 172.23.108.67:8091 -u Administrator -p password
      Status: cancelled
      Details:
          Node: ns_1@172.23.108.67
          Status: collected
           path : /opt/couchbase/var/lib/couchbase/tmp/collectinfo-2023-08-06T073636-ns_1@172.23.108.67.zip
          Node: ns_1@172.23.108.68
          Status: failed
      

      Expected behavior:

      Need to report such condition as 'completed'

      UI status for the same case:

       

      Attachments

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

        Activity

          People

            ashwin.govindarajulu Ashwin Govindarajulu
            ashwin.govindarajulu Ashwin Govindarajulu
            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