[
https://issues.apache.org/jira/browse/GEODE-3106?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matt Kalinowski updated GEODE-3106:
-----------------------------------
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.
was:
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 as
that is how clients will connect to those servers, rather than the
internal/private IP address.
> REST API endpoint /servers returns private IP address instead of
> hostname-for-clients param
> -------------------------------------------------------------------------------------------
>
> Key: GEODE-3106
> URL: https://issues.apache.org/jira/browse/GEODE-3106
> Project: Geode
> Issue Type: Bug
> Components: client/server, general, rest (admin)
> Reporter: Matt Kalinowski
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)