Created attachment 921812 [details]
Description of problem:
[AS7] app is not discovered if two versions are installed simultaneously
Version-Release number of selected component (if applicable):
RHQ 4.13 master
Steps to Reproduce:
1. install jon (rhqctl install --start) with rhq.as7.VersionedSubsystemDiscovery.pattern enabled
2. install 2 versions of the same app simultaneously to EAP6
No all is discovered
either app with biggest version is discovered and active, or, meaningful log is logged telling how to get app discovered.
This is expected behavior. We don't discover either versioned app if they both resolve to the same logical app. This is to protect the user, really, because in this situation it would appear they intend to have two separate apps.
You should see in your agent log a WARN level message:
"Discovered multiple resources with resource key [XYZ]. This is not allowed
and they will be removed from discovery. This is typically caused by having
multiple versions of the same Deployment deployed. To solve the problem
either remove all but one version of the problem deployment or disable
versioned deployment handling by setting
for the agent."
As long as you see this message it's working as expected and is not a bug.
Lack of test case: I've had a expected result as app with biggest version is discovered.
Closing as not a bug.