Bug 1260632 - Storage node resource is not available
Storage node resource is not available
Product: RHQ Project
Classification: Other
Component: Storage Node (Show other bugs)
Unspecified Unspecified
unspecified Severity high (vote)
: ---
: RHQ 4.14
Assigned To: John Sanda
Filip Brychta
Depends On:
Blocks: CVE-2015-0225
  Show dependency treegraph
Reported: 2015-09-07 07:53 EDT by Filip Brychta
Modified: 2015-11-04 17:20 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2015-11-04 17:20:47 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Filip Brychta 2015-09-07 07:53:10 EDT
Description of problem:
RHQ Storage Node is not available after installation even though cassandra process is running.
agent.log contains:
2015-09-07 07:33:43,664 WARN  [ResourceContainer.invoker.daemon-1] (org.rhq.plugins.jmx.JMXServerComponent)- Failed to connect to ResourceType[id=0, name=RHQ Storage Node, plugin=RHQStorage, category=Server][RHQ Storage Node(fbr-rhq-test3.bc.jonqe.lab.eng.bos.redhat.com)]: Could not connect [service:jmx:rmi:///jndi/rmi://fbr-rhq-test3.bc.jonqe.lab.eng.bos.redhat.com:7299/jmxrmi] org.mc4j.ems.connection.EmsConnectException: IOException: Check service availability

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. install rhq
2. navigate to RHQ Storage Node resource

Actual results:
Resource is down no child resources are discovered

Expected results:
The resource is up

Additional info:
I'm not sure if this is related but I noticed following exception in server.log from completely different setup (it's not visible on clean installation and I don't have repro steps):
12:25:07,026 ERROR [org.rhq.enterprise.server.storage.StorageNodeOperationsHandlerBean] (EJB default - 1) Deployment has been aborted due to failed operation [Announce] on Resource[id=10005, uuid=f6123e50-67db-4945-8048-65ef279d688f, type={RHQStorage}RHQ Storage Node, key=RHQ Storage Node(auto-rhq.bc.jonqe.lab.eng.bos.redhat.com), name=RHQ Storage Node(auto-rhq.bc.jonqe.lab.eng.bos.redhat.com), parent=auto-rhq.bc.jonqe.lab.eng.bos.redhat.com, version=4.14.0-SNAPSHOT]: java.lang.NullPointerException
        at org.rhq.plugins.cassandra.util.KeyspaceService.loadBean(KeyspaceService.java:150)
        at org.rhq.plugins.cassandra.util.KeyspaceService.takeSnapshot(KeyspaceService.java:109)
        at org.rhq.plugins.storage.StorageNodeComponent.createSnapshots(StorageNodeComponent.java:380)
        at org.rhq.plugins.storage.StorageNodeComponent.announce(StorageNodeComponent.java:326)
        at org.rhq.plugins.storage.StorageNodeComponent.invokeOperation(StorageNodeComponent.java:143)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocation.call(ResourceContainer.java:759)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
Comment 1 Filip Brychta 2015-09-07 07:53:50 EDT
Java version: openJDK 1.7.0_65
Comment 2 John Sanda 2015-09-08 16:41:35 EDT
The Storage Node discovery component needs to make sure that the connectorAddress property uses I have made the changes and pushed to master.

commit hash: bd316143
Comment 3 John Sanda 2015-09-08 22:37:20 EDT
Filip, can you retest this as soon as possible? This blocks bug 1208181. I do not want to merge the changes into the release branch until you have verified in master. Thanks.
Comment 4 Jason Shepherd 2015-11-04 17:20:47 EST
Fixed as part of RHSA-2015:1947

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