[ https://issues.apache.org/jira/browse/GEODE-1548?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15536803#comment-15536803 ]
ASF GitHub Bot commented on GEODE-1548: --------------------------------------- Github user kirklund commented on a diff in the pull request: https://github.com/apache/incubator-geode/pull/248#discussion_r81402616 --- Diff: geode-core/src/test/java/org/apache/geode/management/internal/security/JavaRmiServerNameJunitTest.java --- @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ + +package org.apache.geode.management.internal.security; + +import static org.apache.geode.distributed.ConfigurationProperties.*; +import static org.junit.Assert.*; + +import java.util.Properties; + +import org.junit.Test; +import org.junit.experimental.categories.Category; + +import org.apache.geode.cache.CacheFactory; +import org.apache.geode.internal.AvailablePort; +import org.apache.geode.test.junit.categories.UnitTest; + +@Category(UnitTest.class) --- End diff -- Since this test is testing more than one class (it's creating a Cache and using networking resources), it should have @Category(IntegrationTest.class). > jmx-manager-hostname-for-clients not honored > -------------------------------------------- > > Key: GEODE-1548 > URL: https://issues.apache.org/jira/browse/GEODE-1548 > Project: Geode > Issue Type: Bug > Components: gfsh, management > Reporter: Swapnil Bawaskar > Assignee: Jared Stewart > > While running Geode on AWS, found that {{jmx-manager-hostname-for-clients}} > is not being honored resulting in not being able to connect to gfsh from > outside AWS. > I started a locator in AWS with the following command: > {noformat} > gfsh>start locator --name=locator > --J=-Dgemfire.jmx-manager-hostname-for-clients=<public_ip> > --hostname-for-clients=<public_ip> > {noformat} > When trying to connect to this locator from my laptop I get the following > error: > {noformat} > gfsh>connect --locator=52.41.104.182[10334] > Connecting to Locator at [host=52.41.104.182, port=10334] .. > Connecting to Manager at > [host=ec2-52-41-104-182.us-west-2.compute.amazonaws.com, port=1099] .. > Could not connect to : > [host=ec2-52-41-104-182.us-west-2.compute.amazonaws.com, port=1099]. Failed > to retrieve RMIServer stub: javax.naming.CommunicationException [Root > exception is java.rmi.ConnectIOException: error during JRMP connection > establishment; nested exception is: > java.net.SocketException: Connection reset] > {noformat} > Note that gfsh is trying to connect to the public dns for the instance, not > using the {{jmx-manager-hostname-for-clients}} property provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)