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

Error while creating link from IPv4 configured cluster to IPv6 configured cluster.

    XMLWordPrintable

    Details

    • Triage:
      Untriaged
    • Operating System:
      Centos 64-bit
    • Story Points:
      1
    • Is this a Regression?:
      No
    • Sprint:
      CX Sprint 212

      Description

      Steps to reproduce -

      1. setup 2 cluster with hostnames. 1 local analytics cluster configured with IPv4 family and 1 remote data cluster configured with IPv6 family.
      2. create link to remote cluster on local cluster.
      3. Error "CBAS0025: Link authentication failed: java.net.SocketException: Protocol family unavailable" is raised.

        Attachments

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

          Activity

          Hide
          till Till Westmann added a comment -

          IPv6 to IPv4 works.

          Show
          till Till Westmann added a comment - IPv6 to IPv4 works.
          Hide
          michael.blow Michael Blow added a comment -

          Umang, can you try running this test case after setting jvmArgs on the service (i.e. /analytics/config/service endpoint) to {{ -Djava.net.preferIPv4Stack=false }} and restarting the analytics cluster?

          I believe this will enable the scenario, and we can indicate this workaround in the release note.

          Show
          michael.blow Michael Blow added a comment - Umang , can you try running this test case after setting jvmArgs on the service (i.e. /analytics/config/service endpoint) to {{ -Djava.net.preferIPv4Stack=false }} and restarting the analytics cluster? I believe this will enable the scenario, and we can indicate this workaround in the release note.
          Hide
          umang.agrawal Umang added a comment -

          Till Westmann IPv6 to IPv4 works

          Show
          umang.agrawal Umang added a comment - Till Westmann IPv6 to IPv4 works
          Hide
          umang.agrawal Umang added a comment -

          Testcase is working after resetting jvmargs.

          Steps to test -

          1. setup 2 cluster with hostnames. 1 local analytics cluster configured with IPv4 family and 1 remote data cluster configured with IPv6 family.
          2. On local analytics cluster run the following command -

          curl --location --request PUT 'http://secu01.qe.couchbase.com:8095/analytics/config/service' \
          --header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \
          --header 'Content-Type: application/x-www-form-urlencoded' \
          --data-urlencode 'jvmArgs=-Djava.net.preferIPv4Stack=false'
          

          3. restart the couchbase-server
          4. create link to remote cluster on local cluster.
          5. create dataset on local cluster using link in step 4.
          6. connect link.
          7. check for data ingestion.

          Show
          umang.agrawal Umang added a comment - Testcase is working after resetting jvmargs. Steps to test - 1. setup 2 cluster with hostnames. 1 local analytics cluster configured with IPv4 family and 1 remote data cluster configured with IPv6 family. 2. On local analytics cluster run the following command - curl --location --request PUT 'http://secu01.qe.couchbase.com:8095/analytics/config/service' \ --header 'Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data-urlencode 'jvmArgs=-Djava.net.preferIPv4Stack=false' 3. restart the couchbase-server 4. create link to remote cluster on local cluster. 5. create dataset on local cluster using link in step 4. 6. connect link. 7. check for data ingestion.
          Hide
          till Till Westmann added a comment - - edited

          A simpler and more canonical way to set the jvmArgs on the Analytics Service to java.net.preferIPv4Stack=false would be

          curl -u Administrator:password \
                 -X PUT 'http://localhost:8095/analytics/config/service' \
                 --data-urlencode 'jvmArgs=-Djava.net.preferIPv4Stack=false'
          

          This way still needs a restart of the cluster.

          Show
          till Till Westmann added a comment - - edited A simpler and more canonical way to set the jvmArgs on the Analytics Service to java.net.preferIPv4Stack=false would be curl -u Administrator:password \ -X PUT 'http://localhost:8095/analytics/config/service' \ --data-urlencode 'jvmArgs=-Djava.net.preferIPv4Stack=false' This way still needs a restart of the cluster.
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.6.1-9007 contains cbas commit 47de613 with commit message:
          MB-40693: enable IPv4 clusters to connect to IPv6 addresses

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.1-9007 contains cbas commit 47de613 with commit message: MB-40693 : enable IPv4 clusters to connect to IPv6 addresses
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-7.0.0-2970 contains cbas commit 47de613 with commit message:
          MB-40693: enable IPv4 clusters to connect to IPv6 addresses

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-2970 contains cbas commit 47de613 with commit message: MB-40693 : enable IPv4 clusters to connect to IPv6 addresses
          Hide
          umang.agrawal Umang added a comment -

          Verified with couchbase server build 6.6.1-9182 and 7.0.0-3695

          Show
          umang.agrawal Umang added a comment - Verified with couchbase server build 6.6.1-9182 and 7.0.0-3695

            People

            Assignee:
            umang.agrawal Umang
            Reporter:
            umang.agrawal Umang
            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