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

Unable to set node host name with FQDN

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 5.5.0
    • 5.5.0
    • ns_server
    • Untriaged
    • Unknown

    Description

      I'm using docker and setup IPv6 environment with FQDN

      After installing 5.1.0-1544, I tried to setup host name using REST API through IPv6. If I use IP, then it works, but if I use FQDN, it shows ["Requested name hostname is not allowed: cb1.ipv6.couchbase.com seems to be an IPv4 address or a name that resolves to an IPv4 address. Please use an IPv6 address or a Fully Qualified Domain Name mapped to an IPv6 address."]

      Nslookup of the FQDN resolves like this.

       

      [root@cb1 /]# nslookup cb1.ipv6.couchbase.com
      Server:        172.17.0.2
      Address:    172.17.0.2#53
       
      cb1.ipv6.couchbase.com    has AAAA address 2001:db8:1::242:ac11:3

       

      Setting hostname with IP works

      [root@cb1 /]# curl -6 -u Administrator:password -v -X POST http://cb1.ipv6.couchbase.com:8091/node/controller/rename -d 'hostname=2001:db8:1::242:ac11:3'
      * About to connect() to cb1.ipv6.couchbase.com port 8091 (#0)
      *   Trying 2001:db8:1::242:ac11:3...
      * Connected to cb1.ipv6.couchbase.com (2001:db8:1::242:ac11:3) port 8091 (#0)
      * Server auth using Basic with user 'Administrator'
      > POST /node/controller/rename HTTP/1.1
      > Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==
      > User-Agent: curl/7.29.0
      > Host: cb1.ipv6.couchbase.com:8091
      > Accept: */*
      > Content-Length: 31
      > Content-Type: application/x-www-form-urlencoded
      >
      * upload completely sent off: 31 out of 31 bytes
      < HTTP/1.1 200 OK
      < X-XSS-Protection: 1; mode=block
      < X-Permitted-Cross-Domain-Policies: none
      < X-Frame-Options: DENY
      < X-Content-Type-Options: nosniff
      < Server: Couchbase Server
      < Pragma: no-cache
      < Expires: Thu, 01 Jan 1970 00:00:00 GMT
      < Date: Fri, 15 Dec 2017 06:29:07 GMT
      < Content-Length: 0
      < Cache-Control: no-cache,no-store,must-revalidate
      <
      * Connection #0 to host cb1.ipv6.couchbase.com left intact

       

      However, setting hostname using FQDN does not work. Please note that curl can resolve FQDN.

      [root@cb1 /]# curl -6 -u Administrator:password -v -X POST http://cb1.ipv6.couchbase.com:8091/node/controller/rename -d 'hostname=cb1.ipv6.couchbase.com'
      * About to connect() to cb1.ipv6.couchbase.com port 8091 (#0)
      *   Trying 2001:db8:1::242:ac11:3...
      * Connected to cb1.ipv6.couchbase.com (2001:db8:1::242:ac11:3) port 8091 (#0)
      * Server auth using Basic with user 'Administrator'
      > POST /node/controller/rename HTTP/1.1
      > Authorization: Basic QWRtaW5pc3RyYXRvcjpwYXNzd29yZA==
      > User-Agent: curl/7.29.0
      > Host: cb1.ipv6.couchbase.com:8091
      > Accept: */*
      > Content-Length: 31
      > Content-Type: application/x-www-form-urlencoded
      >
      * upload completely sent off: 31 out of 31 bytes
      < HTTP/1.1 400 Bad Request
      < X-XSS-Protection: 1; mode=block
      < X-Permitted-Cross-Domain-Policies: none
      < X-Frame-Options: DENY
      < X-Content-Type-Options: nosniff
      < Server: Couchbase Server
      < Pragma: no-cache
      < Expires: Thu, 01 Jan 1970 00:00:00 GMT
      < Date: Fri, 15 Dec 2017 06:26:40 GMT
      < Content-Type: application/json
      < Content-Length: 225
      < Cache-Control: no-cache,no-store,must-revalidate
      <
      * Connection #0 to host cb1.ipv6.couchbase.com left intact
      ["Requested name hostname is not allowed: cb1.ipv6.couchbase.com seems to be an IPv4 address or a name that resolves to an IPv4 address. Please use an IPv6 address or a Fully Qualified Domain Name mapped to an IPv6 address.”]

      Attachments

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

        Activity

          People

            jaekwon.park Jae Park [X] (Inactive)
            jaekwon.park Jae Park [X] (Inactive)
            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