Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-2676

Cannot specify raw IPv6 Address for XDCR

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3.0, 2.3.0-beta
    • 2.3.1
    • None
    • 15: Blogs, future fixes, autom, 17: Automation, future fixes
    • 1

    Description

      Operator through at least builds leading to 2.3.0 do not allow for IPv6 in [ ], as IPv6 was not a feature previously. While it'd be preferred to use DNS to handle resolution and that works with IPv6, there may be some narrow cases where a raw addresses is needed. This has already been requested.

      Request is that we add support for this.

      Attachments

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

        Activity

          Simon Murray, since this is in CRD, I guess one workaround would be to identify the CRD update for the user?

          That also raises another question of whether or not we expect people to apply new CRD in patch releases. Thinking through this, the general answer should probably be no, but it might be acceptable if it's a validation bug, as in this case. I think generally a user shouldn't have to apply new CRD with a micro release, but may want to in order to handle a bug.

          ingenthr Matt Ingenthron added a comment - Simon Murray , since this is in CRD, I guess one workaround would be to identify the CRD update for the user? That also raises another question of whether or not we expect people to apply new CRD in patch releases. Thinking through this, the general answer should probably be no, but it might be acceptable if it's a validation bug, as in this case. I think generally a user shouldn't have to apply new CRD with a micro release, but may want to in order to handle a bug.

          Workaround from Release Notes:

          Summary: Currently, it is not possible to specify a raw IPv6 Address for XDCR.
          This will be fixed in the next Operator release, and will include an update to the CRD. As a workaround to support XDCR to an IPv6 endpoint, you will need to remove the XDCR hostname rules from the CouchbaseCluster custom resource.

          Run the kubectl edit command:

          $ kubectl edit crd couchbaseclusters.couchbase.com
          

          Then, remove pattern from the yaml:

          xdcr:
            hostname:
              description: Hostname is the connection string to use to connect the remote cluster.
              pattern: ^((couchbase|couchbases|http|https)://)?[0-9a-zA-Z\-\.]+(:\d+)?(\?network=[^&]+)?$
          

          Note that removing pattern will disable any validation on this field (i.e. if an invalid hostname is provided it won’t be validated). Contact the Couchbase Support team for further help on this workaround.

          James Flather James Flather added a comment - Workaround from Release Notes : Summary: Currently, it is not possible to specify a raw IPv6 Address for XDCR. This will be fixed in the next Operator release, and will include an update to the CRD. As a workaround to support XDCR to an IPv6 endpoint, you will need to remove the XDCR hostname rules from the CouchbaseCluster custom resource. Run the kubectl edit command: $ kubectl edit crd couchbaseclusters.couchbase.com Then, remove pattern from the yaml: xdcr: hostname: description: Hostname is the connection string to use to connect the remote cluster. pattern: ^((couchbase|couchbases|http|https)://)?[0-9a-zA-Z\-\.]+(:\d+)?(\?network=[^&]+)?$ Note that removing pattern will disable any validation on this field (i.e. if an invalid hostname is provided it won’t be validated). Contact the Couchbase Support team for further help on this workaround.

          Build couchbase-operator-2.3.1-105 contains couchbase-operator commit 80c5dc0 with commit message:
          K8S-2676 - Cannot specify raw IPv6 address for xdcr hostname

          build-team Couchbase Build Team added a comment - Build couchbase-operator-2.3.1-105 contains couchbase-operator commit 80c5dc0 with commit message: K8S-2676 - Cannot specify raw IPv6 address for xdcr hostname

          People

            justin.ashworth Justin Ashworth
            ingenthr Matt Ingenthron
            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