[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16475066#comment-16475066 ] ASF subversion and git services commented on GEODE-5085: Commit 3c9cc64ca28d5533c1c5e8f66cb245a1b0ee9f81 in geode's branch refs/heads/support/9.5 from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=3c9cc64 ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 (cherry picked from commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1) > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.6.0, 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Overrid
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461423#comment-16461423 ] ASF subversion and git services commented on GEODE-5085: Commit 8a05aa063224c549599dbe23d7331ea3b473981e in geode's branch refs/heads/develop from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=8a05aa0 ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 (cherry picked from commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1) > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.6.0, 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override >
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461407#comment-16461407 ] ASF subversion and git services commented on GEODE-5085: Commit 8a05aa063224c549599dbe23d7331ea3b473981e in geode's branch refs/heads/master from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=8a05aa0 ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 (cherry picked from commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1) > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.6.0, 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override >
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16446326#comment-16446326 ] ASF subversion and git services commented on GEODE-5085: Commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1 in geode's branch refs/heads/feature/transcoding_experiments from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=08ec4af ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.6.0, 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProper
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16444296#comment-16444296 ] ASF subversion and git services commented on GEODE-5085: Commit 8a05aa063224c549599dbe23d7331ea3b473981e in geode's branch refs/heads/release/1.6.0 from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=8a05aa0 ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 (cherry picked from commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1) > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override >
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443583#comment-16443583 ] ASF subversion and git services commented on GEODE-5085: Commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1 in geode's branch refs/heads/feature/GEODE-4624 from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=08ec4af ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Fix For: 1.7.0 > > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProperties() { > if (d
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16443207#comment-16443207 ] ASF subversion and git services commented on GEODE-5085: Commit 08ec4af911baa9eaca05f2aaf5d021618734bfe1 in geode's branch refs/heads/develop from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=08ec4af ] GEODE-5085 authentication failure when auto-reconnecting Modified auto-reconnect to gather the security properties from the DistributionConfig and to use the non-parsed values of properties instead of the parsed versions. Modified unit tests to gather the security properties and use the non-parsed values when deciding whether to create a new distributed system. Added a security manager to all of the ReconnectDUnitTest test cases. This closes #1807 > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Attachments: geode-server-context.xml > > Time Spent: 20m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProperties() { > if (dsProperties == null) { > dsPropertie
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16441119#comment-16441119 ] ASF subversion and git services commented on GEODE-5085: Commit 2c28e0a4b894611e0c61a742030e0eb1d377e462 in geode's branch refs/heads/feature/GEODE-5085 from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=2c28e0a ] GEODE-5085 authentication failure when auto-reconnecting Reverting getSecurityProps() to return the converted internal form of property values. The security service expects these to be in this form and not the external form. My change caused a handful of security tests to fail. Added toSecurityProperties() in Config.java and converted InternalDistributedSystem.reconnect() to use this and toProperties() to get the external form of properties in order to build the new DistributionConfig to feed the reconnecting system. > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProperties() { > if (dsPropertie
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16440497#comment-16440497 ] Dharam Thacker commented on GEODE-5085: --- Thanks Bruce! Could we try to include this in Geode 1.6.0 as it's critical one? It's breaking few critical apps with latest gemfire 9.4.0 as well which was build using Apache geode 1.5.0. Thanks, Dharam > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Assignee: Bruce Schuchardt >Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProperties() { > if (dsProperties == null) { > dsProperties = new Properties(); > dsProperties.put(MAX_WAIT_TIME_RECONNECT, "2"); > dsProperties.put(ENABLE_NETWORK_PARTITION_DETECTION, "true"); > dsProperties.put(DISABLE_AUTO_RECONNECT, "false"); > dsProperties.put(ENABLE_CLUSTER_CONFIGURATION, "false"); > dsProperties.put(LOCATORS, "localHost[" + locatorPort + "]"); > dsProperties.put(MCAST_PORT, "0"); > dsProperties.put(MEMBER_TIMEOUT, "1000"); > dsProperties.put(LOG_LEVEL, LogWriterUtils.getDUnitLogL
[jira] [Commented] (GEODE-5085) authentication failure when auto-reconnecting
[ https://issues.apache.org/jira/browse/GEODE-5085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16440092#comment-16440092 ] ASF subversion and git services commented on GEODE-5085: Commit 75ccfede2e559596cd6e0aedcf4b7e181e954920 in geode's branch refs/heads/feature/GEODE-5085 from [~bschuchardt] [ https://gitbox.apache.org/repos/asf?p=geode.git;h=75ccfed ] GEODE-5085 authentication failure when auto-reconnecting Added DistributionConfig security properties to the props used to reconnect to the distributed system. Modified the getSecurityProps implementation to stop sharing the internal state of the configuration object and to convert values into external form. Security-log-level, for instance, was a number instead of the corresponding level name. Added a security manager to all of the ReconnectDUnitTest test cases. > authentication failure when auto-reconnecting > - > > Key: GEODE-5085 > URL: https://issues.apache.org/jira/browse/GEODE-5085 > Project: Geode > Issue Type: Bug > Components: membership, security >Reporter: Bruce Schuchardt >Priority: Major > > I added a security manager to ReconnectDUnitTest.testReconnectWithQuorum() > and got a failure to authenticate during the reconnect attempt. > {noformat} > [vm3] [warn 2018/04/16 10:37:17.773 PDT tid=92] Exception > occurred while trying to connect the system during reconnect > [vm3] org.apache.geode.security.AuthenticationRequiredException: Failed to > find credentials from [10.118.20.59(16110:locator):32770] > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.attemptToJoin(GMSJoinLeave.java:452) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.membership.GMSJoinLeave.join(GMSJoinLeave.java:338) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.join(GMSMembershipManager.java:658) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.joinDistributedSystem(GMSMembershipManager.java:747) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.Services.start(Services.java:191) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.GMSMemberFactory.newMembershipManager(GMSMemberFactory.java:106) > [vm3] at > org.apache.geode.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:90) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1027) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.(ClusterDistributionManager.java:1061) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager.create(ClusterDistributionManager.java:554) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:762) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:354) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:340) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:334) > [vm3] at > org.apache.geode.distributed.DistributedSystem.connect(DistributedSystem.java:211) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.reconnect(InternalDistributedSystem.java:2732) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.tryReconnect(InternalDistributedSystem.java:2558) > [vm3] at > org.apache.geode.distributed.internal.InternalDistributedSystem.disconnect(InternalDistributedSystem.java:1040) > [vm3] at > org.apache.geode.distributed.internal.ClusterDistributionManager$DMListener.membershipFailure(ClusterDistributionManager.java:4030) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.uncleanShutdown(GMSMembershipManager.java:1554) > [vm3] at > org.apache.geode.distributed.internal.membership.gms.mgr.GMSMembershipManager.lambda$forceDisconnect$1(GMSMembershipManager.java:2561) > [vm3] at java.lang.Thread.run(Thread.java:748) > {noformat} > The security manager settings were added to getDistributedSystemProperties(): > {code} > @Override > public Properties getDistributedSystemProperties() { > if (dsProperties == null) { > dsProperties = new Properties(); > dsProperties.put(MAX_WAIT_TIME_RECONNECT, "2"); > dsProperties.put(ENABLE_NETWORK_PARTITION_DETECTION, "true"); > dsP