Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-3106

REST API endpoint /servers returns private IP address instead of hostname-for-clients param

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      Starting a single server with,

      gfsh> start server --name=rest-server --start-rest-api=true --http-service-port=8080 --hostname-for-clients=%public_ip_addr%

      will launch a server.

      http://%public_ip_addr%:8080/gemfire-api/v1/ping returns "HTTP 200 OK" as expected, and http://%public_ip_addr%:8080/gemfire-api/v1 successfully lists all regions.

      http://%public_ip_addr%:8080/gemfire-api/v1/servers will return the [ "http://%private-ip%:8080" ]

      The documentation states "Setting a specific hostname-for-clients causes server locators to use this value when telling clients how to connect to this cache server. This is useful in the case where the cache server may refer to itself with one hostname, but the clients need to use a different hostname to find the cache server."

      The /servers endpoint should be returning the hostname-for-clients param (in this case, %public_ip_addr%) as that is how clients will connect to those servers, rather than the internal/private IP address.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mkalinowski Matt Kalinowski
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: