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

ValueError when enabling N2N encryption with auto-failover on

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • None
    • tools
    • None
    • 7.1.0-1403
    • Untriaged
    • 1
    • Yes

    Description

      When trying to enable N2N encryption and autofailover is still on, we should get a proper error message. Instead getting following:

      # /opt/couchbase/bin/couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
      Traceback (most recent call last):
        File "/opt/couchbase/lib/python/couchbase-cli", line 20, in <module>
          main()
        File "/opt/couchbase/lib/python/couchbase-cli", line 15, in main
          cli.execute(args)
        File "/opt/couchbase/lib/python/cbmgr.py", line 535, in execute
          opts.klass().execute(opts)
        File "/opt/couchbase/lib/python/cbmgr.py", line 133, in decorator
          return fn(self, opts)
        File "/opt/couchbase/lib/python/cbmgr.py", line 4818, in execute
          self._change_encryption(self.rest, 'on', opts.ssl)
        File "/opt/couchbase/lib/python/cbmgr.py", line 4847, in _change_encryption
          _, err = rest.enable_external_listener(host=host, encryption=encryption)
      ValueError: not enough values to unpack (expected 2, got 1)
       

       

      Note that disabling auto-failover, enabling N2N encryption will work as expected:

      # /opt/couchbase/bin/couchbase-cli node-to-node-encryption -c http://localhost:8091 -u Administrator -p password --enable
      Turned on encryption for node: http://172.23.104.91:8091
      Turned on encryption for node: http://172.23.104.92:8091
      SUCCESS: Switched node-to-node encryption on 

      Attachments

        Issue Links

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

          Activity

            People

              pierre.regazzoni Pierre Regazzoni
              pierre.regazzoni Pierre Regazzoni
              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