Bug with child resources never appearing
genman Feb 9, 2012 4:26 AMI have a resource (basically a JMXServerComponent) where RHQ seems to 'discover' the MBean components but they never appear in the Inventory.
First some logs:
DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Discovering MBean resources with object name query template: hadoop:service=NameNode,na me=FSNamesystemState DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Found [1] mbeans for query [hadoop:service=NameNode,name=FSNamesystemState]. DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- [1] services have been added DEBUG [InventoryManager.discovery-1] (inventory.InventoryManager)- Discovery for [FSNamesystemState] resources completed in [2] ms DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Parent [Resource[id=0, type=FSNamesystemState, key=hadoop:name=FSNamesystemState,service=NameNode, name =NameNode Filesystem State, parent=NameNode]] must be imported/commited before service scan can run. DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Running service scan on parent resource [Resource[id=18523, type=NameNode, key=NameNode:/usr/lib/hadoop -0.20, name=NameNode, parent=vg61l01ad-hadoop002.apple.com]] looking for children of type [ResourceType[id=0, category=Service, name=NameNodeActivity, plugin=hadoop]] DEBUG [InventoryManager.discovery-1] (inventory.InventoryManager)- Executing discovery for [NameNodeActivity] Resources... DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Discovering MBean resources with object name query template: hadoop:service=NameNode,na me=NameNodeActivity DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Found [1] mbeans for query [hadoop:service=NameNode,name=NameNodeActivity]. DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- [1] services have been added DEBUG [InventoryManager.discovery-1] (inventory.InventoryManager)- Discovery for [NameNodeActivity] resources completed in [3] ms DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Parent [Resource[id=0, type=NameNodeActivity, key=hadoop:name=NameNodeActivity,service=NameNode, name=h adoop:name=NameNodeActivity,service=NameNode, parent=NameNode]] must be imported/commited before service scan can run. DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Running service scan on parent resource [Resource[id=18523, type=NameNode, key=NameNode:/usr/lib/hadoop -0.20, name=NameNode, parent=vg61l01ad-hadoop002.apple.com]] looking for children of type [ResourceType[id=0, category=Service, name=NameNodeInfo, plugin=hadoop]] DEBUG [InventoryManager.discovery-1] (inventory.InventoryManager)- Executing discovery for [NameNodeInfo] Resources... DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Discovering MBean resources with object name query template: hadoop:service=NameNode,na me=NameNodeInfo DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- Found [0] mbeans for query [hadoop:service=NameNode,name=NameNodeInfo]. DEBUG [ResourceDiscoveryComponent.invoker.daemon-3] (jmx.MBeanResourceDiscoveryComponent)- [0] services have been added DEBUG [InventoryManager.discovery-1] (inventory.InventoryManager)- Discovery for [NameNodeInfo] resources completed in [1] ms DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Parent [Resource[id=0, type=NameNodeActivity, key=hadoop:name=NameNodeActivity,service=NameNode, name=h adoop:name=NameNodeActivity,service=NameNode, parent=NameNode]] must be imported/commited before service scan can run. DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Parent [Resource[id=0, type=FSNamesystemState, key=hadoop:name=FSNamesystemState,service=NameNode, name =NameNode Filesystem State, parent=NameNode]] must be imported/commited before service scan can run. DEBUG [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Runtime discovery scan took 592 ms. INFO [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Scanned [1] servers and found [2] total descendant Resources. TRACE [InventoryManager.discovery-1] (inventory.RuntimeDiscoveryExecutor)- Runtime report contains 3 Resources with a size of 594461 bytes
You can see the agent sees them and sends to the server.
I don't see anything logged on the server as an error or warning. I don't see anything added to the database.
I also observe the following: I changed my plugin definition for the JMXServer to 'singleton' but the Inventory pane shows a group of resources still. This is probably unrelated, but I'd like to fix that. How is singleton treated or stored internally?
I guess I need to know where to look before filling out a bug report or fixing the issue.
Any ideas?