Description of problem: I am running 2 standalone instances of EAP6 on same host. They are incorrectly detected in discovery queue and afterwards after import too. Version-Release number of selected component (if applicable): Version: 4.4.0-SNAPSHOT Build Number: e13fc86 EAP6.Beta1 How reproducible:always Steps to Reproduce: My setup: /eap6-standalone1 - has serverName="standalone1" in configuration - admin console listens on 9990 /eap6-standalone2 - has serverName="standalone2" in configuration - admin console listens on 19990 1. start both instances on same host 2. run manual discovery 3. import both instances Actual results: In discovery queue, there are 2 EAP6 servers detected, having /eap6-standalone1 and /eap6-standalone2 as 'Resource Key' (AS7_HOME) but are both called standalone1 After importing both servers, they both have 'Connection Settings' configured as standalone1 - i.e. port 19990 is not detected. This also means that standalone1 resource is doubled - once I deploy something one one of them it appears on both. Expected results: Both servers are correctly detected and are correctly treated Additional info:
priority=high, blocks 707223, target release = 3.1 per BZ triage (crouch, asantos, loleary, mfoley)
What is the command line to start them?
http://git.fedorahosted.org/git/?p=rhq/rhq.git;a=commitdiff;h=ef0c9d96 may fix this. Libor, can you give it another try with the latest plugin code?
Ian, I am not sure whether your patch fixes this BZ, but I'll definitely try it on tomorrows master build. I start both EAPs by simply running ./standalone.sh Key setting in standalone.xml for portshifting is here: <socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:10000}"> note that 10000 is not default, it is my offset.
that port-offset=... is a new option that we need to implement. we can detect the default and from command line, but not the fallback
port-offset attribute was indeed added in 7.1.1 (or after 7.1.CR1B) master 249e20180843f3d0c6
verified on Version: 4.4.0-SNAPSHOT Build Number: 559098b
Bulk close of old bugs in VERIFIED state.