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

Alternative port for kv service rejected on non-kv node

    XMLWordPrintable

Details

    • Untriaged
    • 1
    • Unknown

    Description

      I'm trying to set an alternative port for each node in a cluster to ensure that sdk bootstrapping can occur regardless of which node is selected.  Problem is, that when a node is running only the query service, an alternate port kv cannot be provided. 

      Attempts to set the kv & query port actually returns a 200 OK response:

       curl -v -X PUT -u Administrator:- http://test-couchbase-cluster-0002.test-couchbase-cluster.default.svc:8091/node/controller/setupAlternateAddresses/external -d hostname=172.18.0.2 -d kv=9000 -d n1ql=9050
      ...
      * Mark bundle as not supporting multiuse
      < HTTP/1.1 200 OK
      

       

      But only the n1ql port is set, not kv:

       {"services":{"mgmt":8091,"mgmtSSL":18091,"n1ql":8093,"n1qlSSL":18093},"hostname":"test-couchbase-cluster-0002.test-couchbase-cluster.default.svc","alternateAddresses":{"external":{"hostname":"172.18.0.2","ports":{"n1ql":9050}}}}

       

      Maybe this is expected behavior, although it can be misleading with a 200 response being returned?

      Attachments

        Issue Links

          For Gerrit Dashboard: MB-49376
          # Subject Branch Project Status CR V

          Activity

            People

              sumedh.basarkod Sumedh Basarkod (Inactive)
              tommie Tommie McAfee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty