Description of problem: After an EAP 6 host controller has been added to inventory and has reported its version as EAP 6.0.0.GA or EAP 6.0.1.GA, host controller discovery causes the version identifier to be changed to EAP null if the host controller is not the domain master. Version-Release number of selected component (if applicable): 4.2.0.JON312GA How reproducible: Always Steps to Reproduce: 1. Configure EAP 6.0.1 domain with: Host Controller: master (host-master.xml) Host Controller: slave (host-slave.xml) 2. Start EAP domain. 3. Start JON system. 4. Import EAP host controller master and slave. 5. Set user and password for host controller master (domain controller) and host controller slave. 6. Verify that both master and slave show as available. 7. From the slave's platform, invoke a detail discovery scan. Actual results: Version of existing slave host controller resource changes from "EAP 6.0.1.GA" to "EAP null" and the following INFO messages is logged to the agent log: INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=10005, uuid=8fadf3b1-55a7-4468-9890-dfdacecab137, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/jboss-eap-6.0.1.GA/domain, name=EAP Host Controller (127.0.0.1:19990), parent=localhost.localdomain, version=EAP null]] changed from [EAP 6.0.1.GA] to [EAP null] Expected results: Version should not be changed. Additional info: The initial discovery sets the version correctly but subsequent discovery scans result in the version number being lost and therefore reset to EAP null. Also note that `Product Version` is also becomes empty after the subsequent discovery scan. Initial discovery: DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Executing discovery for [JBossAS7 Host Controller] Resources... DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.core.pluginapi.util.JavaCommandLine)- Parsing JavaCommandLine[arguments=[/etc/alternatives/java_sdk/bin/java, -D[Host Controller], -Dorg.jboss.boot.log.file=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain/log/host-controller.log, -Dlogging.configuration=file:/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain/configuration/logging.properties, -server, -Xms64m, -Xmx512m, -XX:MaxPermSize=256m, -Djava.net.preferIPv4Stack=true, -Dorg.jboss.resolver.warning=true, -Dsun.rmi.dgc.client.gcInterval=3600000, -Dsun.rmi.dgc.server.gcInterval=3600000, -Djboss.modules.system.pkgs=org.jboss.byteman, -Djava.awt.headless=true, -Djboss.domain.default.config=domain.xml, -Djboss.host.default.config=host.xml, -jar, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/jboss-modules.jar, -mp, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.host-controller, -mp, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/modules, --pc-address, 127.0.0.1, --pc-port, 47193, -default-jvm, /etc/alternatives/java_sdk/bin/java, --host-config, host-slave.xml, -Djboss.messaging.cluster.password=secret, -Djboss.management.native.port=19999, -Djboss.management.http.port=19990, -Djboss.domain.master.address=localhost, -Djboss.home.dir=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA], includeSystemPropertiesFromClassArguments=true, shortClassOptionFormat=[WHITESPACE, EQUALS_SIGN], longClassOptionFormat=[WHITESPACE, EQUALS_SIGN]]... DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.ASConnection)- Response to Operation{operation='read-attribute', address=Address{path: }, additionalProperties={name=product-name}} was 401 (Unauthorized) - throwing InvalidPluginConfigurationException... DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Could not get the product info from [127.0.0.1:19990] - probably a connection failure DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Discovered new JBossAS7 Host Controller Resource (key=[/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain], name=[EAP Host Controller (127.0.0.1:19990)], version=[EAP 6.0.1.GA]). DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.core.pluginapi.util.JavaCommandLine)- Parsing JavaCommandLine[arguments=[/etc/alternatives/java_sdk/bin/java, -D[Host Controller], -Dorg.jboss.boot.log.file=/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain/log/host-controller.log, -Dlogging.configuration=file:/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain/configuration/logging.properties, -server, -Xms64m, -Xmx512m, -XX:MaxPermSize=256m, -Djava.net.preferIPv4Stack=true, -Dorg.jboss.resolver.warning=true, -Dsun.rmi.dgc.client.gcInterval=3600000, -Dsun.rmi.dgc.server.gcInterval=3600000, -Djboss.modules.system.pkgs=org.jboss.byteman, -Djava.awt.headless=true, -Djboss.domain.default.config=domain.xml, -Djboss.host.default.config=host.xml, -jar, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/jboss-modules.jar, -mp, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.host-controller, -mp, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/modules, --pc-address, 127.0.0.1, --pc-port, 36216, -default-jvm, /etc/alternatives/java_sdk/bin/java, --host-config, host-master.xml, -Djboss.messaging.cluster.password=secret, -Djboss.home.dir=/opt/jboss/eap/master/jboss-eap-6.0.1.GA, --process-restarted], includeSystemPropertiesFromClassArguments=true, shortClassOptionFormat=[WHITESPACE, EQUALS_SIGN], longClassOptionFormat=[WHITESPACE, EQUALS_SIGN]]... DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.ASConnection)- Response to Operation{operation='read-attribute', address=Address{path: }, additionalProperties={name=product-name}} was 401 (Unauthorized) - throwing InvalidPluginConfigurationException... DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Could not get the product info from [127.0.0.1:9990] - probably a connection failure DEBUG [ResourceDiscoveryComponent.invoker.daemon-2] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Discovered new JBossAS7 Host Controller Resource (key=[/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain], name=[EAP Domain Controller (127.0.0.1:9990)], version=[EAP 6.0.1.GA]). DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Discovery for [JBossAS7 Host Controller] resources completed in [685] ms INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Detected new Server [Resource[id=0, uuid=8fadf3b1-55a7-4468-9890-dfdacecab137, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain, name=EAP Host Controller (127.0.0.1:19990), parent=<null>, version=EAP 6.0.1.GA]] - adding to local inventory... INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Detected new Server [Resource[id=0, uuid=11207331-2558-455b-a3c4-40230d265315, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain, name=EAP Domain Controller (127.0.0.1:9990), parent=<null>, version=EAP 6.0.1.GA]] - adding to local inventory... Subsequent discovery: DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Executing discovery for [JBossAS7 Host Controller] Resources... DEBUG [ResourceDiscoveryComponent.invoker.daemon-5] (rhq.core.pluginapi.util.JavaCommandLine)- Parsing JavaCommandLine[arguments=[/etc/alternatives/java_sdk/bin/java, -D[Host Controller], -Dorg.jboss.boot.log.file=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain/log/host-controller.log, -Dlogging.configuration=file:/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain/configuration/logging.properties, -server, -Xms64m, -Xmx512m, -XX:MaxPermSize=256m, -Djava.net.preferIPv4Stack=true, -Dorg.jboss.resolver.warning=true, -Dsun.rmi.dgc.client.gcInterval=3600000, -Dsun.rmi.dgc.server.gcInterval=3600000, -Djboss.modules.system.pkgs=org.jboss.byteman, -Djava.awt.headless=true, -Djboss.domain.default.config=domain.xml, -Djboss.host.default.config=host.xml, -jar, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/jboss-modules.jar, -mp, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.host-controller, -mp, /opt/jboss/eap/slave/jboss-eap-6.0.1.GA/modules, --pc-address, 127.0.0.1, --pc-port, 47193, -default-jvm, /etc/alternatives/java_sdk/bin/java, --host-config, host-slave.xml, -Djboss.messaging.cluster.password=secret, -Djboss.management.native.port=19999, -Djboss.management.http.port=19990, -Djboss.domain.master.address=localhost, -Djboss.home.dir=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA], includeSystemPropertiesFromClassArguments=true, shortClassOptionFormat=[WHITESPACE, EQUALS_SIGN], longClassOptionFormat=[WHITESPACE, EQUALS_SIGN]]... DEBUG [ResourceDiscoveryComponent.invoker.daemon-5] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Discovered new JBossAS7 Host Controller Resource (key=[/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain], name=[EAP Host Controller (127.0.0.1:19990)], version=[EAP null]). DEBUG [ResourceDiscoveryComponent.invoker.daemon-5] (rhq.core.pluginapi.util.JavaCommandLine)- Parsing JavaCommandLine[arguments=[/etc/alternatives/java_sdk/bin/java, -D[Host Controller], -Dorg.jboss.boot.log.file=/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain/log/host-controller.log, -Dlogging.configuration=file:/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain/configuration/logging.properties, -server, -Xms64m, -Xmx512m, -XX:MaxPermSize=256m, -Djava.net.preferIPv4Stack=true, -Dorg.jboss.resolver.warning=true, -Dsun.rmi.dgc.client.gcInterval=3600000, -Dsun.rmi.dgc.server.gcInterval=3600000, -Djboss.modules.system.pkgs=org.jboss.byteman, -Djava.awt.headless=true, -Djboss.domain.default.config=domain.xml, -Djboss.host.default.config=host.xml, -jar, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/jboss-modules.jar, -mp, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/modules, -jaxpmodule, javax.xml.jaxp-provider, org.jboss.as.host-controller, -mp, /opt/jboss/eap/master/jboss-eap-6.0.1.GA/modules, --pc-address, 127.0.0.1, --pc-port, 36216, -default-jvm, /etc/alternatives/java_sdk/bin/java, --host-config, host-master.xml, -Djboss.messaging.cluster.password=secret, -Djboss.home.dir=/opt/jboss/eap/master/jboss-eap-6.0.1.GA, --process-restarted], includeSystemPropertiesFromClassArguments=true, shortClassOptionFormat=[WHITESPACE, EQUALS_SIGN], longClassOptionFormat=[WHITESPACE, EQUALS_SIGN]]... DEBUG [ResourceDiscoveryComponent.invoker.daemon-5] (rhq.modules.plugins.jbossas7.HostControllerDiscovery)- Discovered new JBossAS7 Host Controller Resource (key=[/opt/jboss/eap/master/jboss-eap-6.0.1.GA/domain], name=[EAP Domain Controller (127.0.0.1:9990)], version=[EAP 6.0.1.GA]). DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Discovery for [JBossAS7 Host Controller] resources completed in [436] ms DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Discovery reported that version of [Resource[id=10005, uuid=8fadf3b1-55a7-4468-9890-dfdacecab137, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain, name=EAP Host Controller (127.0.0.1:19990), parent=localhost.localdomain, version=EAP 6.0.1.GA]] changed from [EAP 6.0.1.GA] to [EAP null] DEBUG [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- New version for [Resource[id=10005, uuid=8fadf3b1-55a7-4468-9890-dfdacecab137, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain, name=EAP Host Controller (127.0.0.1:19990), parent=localhost.localdomain, version=EAP 6.0.1.GA]] (EAP null) was successfully synced to the Server. INFO [InventoryManager.discovery-1] (rhq.core.pc.inventory.InventoryManager)- Version of [Resource[id=10005, uuid=8fadf3b1-55a7-4468-9890-dfdacecab137, type={JBossAS7}JBossAS7 Host Controller, key=/opt/jboss/eap/slave/jboss-eap-6.0.1.GA/domain, name=EAP Host Controller (127.0.0.1:19990), parent=localhost.localdomain, version=EAP null]] changed from [EAP 6.0.1.GA] to [EAP null]
This seems very similar to bug 913764 so I am adding it to the See Also list. However, please note they are not the exact same. Bug 913764 identifies an issue in where the version identifier gets reset to a default when the availability of the resource goes down (assuming the resource is unreachable when discovery is executed). In this case, the resource is reachable and up. It is just that when the resource is a slave host controller, we end up with a NULL version.
Created attachment 731388 [details] Screenshot showing version in inventory server page
Created attachment 731389 [details] Screenshot showing version in resource detail page
Fixed in master (see BZ913764) The version was determined with a call to the http management interface. Now it's all based on file inspection.
Verified 3.2.0.ER5
I don't think we are actually waiting on any info from me. If I am mistaken, please reset the needinfo flag and provide me with a comment describing what it is I need to do.