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

enable_failover_on_data_disk_issues cannot be set to false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • Morpheus
    • master
    • tools
    • Untriaged
    • 1
    • No
    • Low

    Description

      I ran into this while testing MB-50476.
      This bug exists prior to those changes:

      --enable-failover-on-data-disk-issues cannot be disabled by setting it to 0.

      ./install/lib/python/couchbase-cli setting-autofailover --enable-auto-failover 1 --auto-failover-timeout 30 --enable-failover-on-data-disk-issues 0 -c 127.0.0.1:9000 -u Administrator -p asdasd
      ERROR: --failover-data-disk-period must be set when auto-failover on Data Service disk is enabled

      If I specify a --failover-data-disk-period as the error indicates:
      ./install/lib/python/couchbase-cli setting-autofailover --enable-auto-failover 1 --auto-failover-timeout 30 --enable-failover-on-data-disk-issues 0 --failover-data-disk-period 30 -c 127.0.0.1:9000 -u Administrator -p asdasd
      ERROR: --enable-failover-on-data-disk-issues must be set to 1 when auto-failover Data Service disk period has been set

              if ((opts.enable_failover_on_data_disk_issues is None or opts.enable_failover_on_data_disk_issues == "false")
                      and opts.failover_on_data_disk_period):
                  _exit_if_errors(["--enable-failover-on-data-disk-issues must be set to 1 when auto-failover Data"
                                   " Service disk period has been set"])

              if opts.enable_failover_on_data_disk_issues and opts.failover_on_data_disk_period is None:
                  _exit_if_errors(["--failover-data-disk-period must be set when auto-failover on Data Service disk"
                                   " is enabled"])

      The second check should be:
              if opts.enable_failover_on_data_disk_issues == "true" and opts.failover_on_data_disk_period is None:
                  _exit_if_errors(["--failover-data-disk-period must be set when auto-failover on Data Service disk"
                                   " is enabled"])

      As it stands, there is no way to set enable_failover_on_data_disk_issues to "false" with both checks intact.

      Attachments

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

        Activity

          People

            owend Daniel Owen
            neelima.premsankar Neelima Premsankar
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty