Bug 948053 - Discovery changes existing EAP 6 host controller resource version identifier to EAP null
Summary: Discovery changes existing EAP 6 host controller resource version identifier ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- JBoss EAP 6
Version: JON 3.1.2
Hardware: All
OS: All
unspecified
medium
Target Milestone: ER01
: JON 3.2.0
Assignee: Thomas Segismont
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-03 21:02 UTC by Larry O'Leary
Modified: 2018-12-01 15:58 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-01-02 20:36:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Screenshot showing version in inventory server page (28.41 KB, image/png)
2013-04-03 21:50 UTC, Larry O'Leary
no flags Details
Screenshot showing version in resource detail page (66.85 KB, image/png)
2013-04-03 21:50 UTC, Larry O'Leary
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 913764 0 unspecified CLOSED [as7] Version identifier of EAP resource changes depending on run state of EAP 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 969120 0 unspecified CLOSED AS7 plugin discovery attempts connection with incorrect credentials if resource productType != JBossProductType.AS 2021-02-22 00:41:40 UTC
Red Hat Knowledge Base (Solution) 343433 0 None None None Never

Internal Links: 913764 969120

Description Larry O'Leary 2013-04-03 21:02:42 UTC
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]

Comment 1 Larry O'Leary 2013-04-03 21:07:04 UTC
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.

Comment 2 Larry O'Leary 2013-04-03 21:50:01 UTC
Created attachment 731388 [details]
Screenshot showing version in inventory server page

Comment 3 Larry O'Leary 2013-04-03 21:50:35 UTC
Created attachment 731389 [details]
Screenshot showing version in resource detail page

Comment 5 Thomas Segismont 2013-08-05 13:15:20 UTC
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.

Comment 6 Jakub Cechacek 2013-11-19 15:41:08 UTC
Verified 3.2.0.ER5

Comment 7 Larry O'Leary 2013-11-19 19:34:42 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.