Bug 952781 - Cassandra daemon resource not-available/inactive in server gui
Summary: Cassandra daemon resource not-available/inactive in server gui
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Operations Network
Classification: JBoss
Component: Plugin -- Other
Version: JON 3.2
Hardware: i686
OS: Linux
unspecified
high
Target Milestone: ---
: JON 3.2.0
Assignee: Stefan Negrea
QA Contact: Mike Foley
URL:
Whiteboard:
Depends On:
Blocks: 951619
TreeView+ depends on / blocked
 
Reported: 2013-04-16 16:52 UTC by Armine Hovsepyan
Modified: 2015-09-03 00:01 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-06-26 09:34:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
agent_log.txt (3.11 KB, text/plain)
2013-04-16 16:52 UTC, Armine Hovsepyan
no flags Details
cassandra_deamon.png (135.11 KB, image/png)
2013-04-16 16:54 UTC, Armine Hovsepyan
no flags Details
cassandra_daemon_agent.log (3.03 KB, text/plain)
2013-04-19 14:12 UTC, Armine Hovsepyan
no flags Details
agent.log (9.44 KB, text/x-log)
2013-08-26 09:29 UTC, Armine Hovsepyan
no flags Details
cassandra-nonAvail.png (143.98 KB, image/png)
2013-08-26 09:30 UTC, Armine Hovsepyan
no flags Details
cassandra_avail (231.03 KB, image/png)
2014-06-26 09:43 UTC, Armine Hovsepyan
no flags Details

Description Armine Hovsepyan 2013-04-16 16:52:29 UTC
Created attachment 736454 [details]
agent_log.txt

Description of problem:
Cassandra Storage installer - Cassandra daemon resource not-available/inactive (clustered mode) in server-gui - also having exception in agent.log

Version-Release number of selected component (if applicable):
build 145 (jnekins cassandra-backend)

How reproducible:


Steps to Reproduce:
1. Run storage installer in two machines and connect them from cassandra.yaml
2. start cassandra server on both machines
3. run rhq-server.console
4. run rhq-installer
5. download and install rhq-agent from server gui

  or follow test case #https://tcms.engineering.redhat.com/case/251800/?from_plan=8763

Actual results:
Cassandra daemon resource not-available/inactive  in server-gui - also having exception in agent.log

Expected results:
Cassandra daemon resource available/active  in server-gui 
no exception in agent.log

Additional info:
fragment from agent log is attached
screenshot is attached

Comment 1 Armine Hovsepyan 2013-04-16 16:54:22 UTC
Created attachment 736455 [details]
cassandra_deamon.png

Comment 2 John Sanda 2013-04-16 18:42:17 UTC
I can see from the agent log that the problem is a ClassNotFoundException in the Cassandra plugin. This is causing discovery to fail. The problem may just be that the datastax driver is not packaged in the plugin JAR. I am changing the component from installer to plugins and reassigning to Stefan since he is currently working on the plugin.

Comment 3 Stefan Negrea 2013-04-17 14:29:56 UTC
Updated packaging configuration in the plugin pom. The datastax driver was included in dev-container builds but not in regular builds. The datastax driver is now packaged correctly. 

Please retest the issue.


Branch commit:
https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?h=feature/cassandra-backend&id=9f365968bb69ed7b6700beaea1910ee53ea6501b

Comment 4 Armine Hovsepyan 2013-04-19 14:11:46 UTC
reopened.

the issue is still visible for jenkins build 164.

please get error fragment from log attached.

Comment 5 Armine Hovsepyan 2013-04-19 14:12:22 UTC
Created attachment 737629 [details]
cassandra_daemon_agent.log

Comment 6 John Sanda 2013-04-19 19:45:49 UTC
I just checked and we are packaging the Cassandra driver in the plugin JAR's lib folder; however, we are not packaging the driver's runtime dependencies, of which there are several. These should be the same libraries that are being packaged in the JBoss module for the driver which is deployed at <RHQ_SERVER_HOME/modules/com/datastax/cassandra/cassandra-driver-core/main/. I will update the plugin build to include these additional libraries.

Comment 7 John Sanda 2013-04-20 14:52:33 UTC
I am changing the summary text of this bug to better reflect the issue.

Comment 8 John Sanda 2013-04-20 14:58:42 UTC
I have updated the plugin so that the it now includes the driver's runtime dependencies. One other change was required. The default port on which Cassandra listens for CQL clients is 9042. The storage installer however assigns a value of 9142 by default. I added a new property to the plugin configuration of the CassandraDaemon resource type named "Native Transport Port". 

**NOTE** - You will have to change this property to 9142 or whatever value you use with the storage installer.

I decided to leave the default value for the plugin configuration property as 9042 since that is the out of box default for Cassandra. When we implement the storage plugin (which will extend the Cassandra plugin), we will have its defaults match up with the defaults used by the storage installer.

feature/cassandra-backend commit hash: b756b8d0d73

Comment 9 John Sanda 2013-04-22 15:41:45 UTC
Moving back to ON_DEV since this failed QE testing.

Comment 10 John Sanda 2013-04-22 15:45:35 UTC
I verified in the QE environment that the resource component is using the correct port for CQL connections; however, it is trying to connect over localhost. We need to be using the same address/hostname (or hostname that resolves to the address) that is set for the rpc_address property in cassandra.yaml. I see the same problem with cqlsh which tries to connect over localhost by default. In general the hostname used for the rpc_address property should match the resource key of the platform.

Comment 11 Stefan Negrea 2013-05-02 16:30:20 UTC
Update the code to retrieve listen_address from cassandra.yaml file. The problem should now be solved.

Comment 12 Armine Hovsepyan 2013-05-03 19:26:14 UTC
verified  - jenkins build 192

thank you.

Comment 13 Armine Hovsepyan 2013-08-26 09:28:48 UTC
reopened.

bug is visible for rhq 49 build:4c959e4

please get agent.log attached.

Comment 14 Armine Hovsepyan 2013-08-26 09:29:38 UTC
Created attachment 790359 [details]
agent.log

Comment 15 Armine Hovsepyan 2013-08-26 09:30:09 UTC
Created attachment 790360 [details]
cassandra-nonAvail.png

Comment 17 Stefan Negrea 2014-06-04 15:37:42 UTC
The logs point to an old implementation of the plugins that Cassandra servers. Please sure you use the latest Cassandra and RHQ Storage plugins. Also make sure that the server is actually up and running when executing this test. Otherwise it will be reported down.

Comment 18 Armine Hovsepyan 2014-06-26 09:34:59 UTC
the issue was visible in the old plugin implementation and was fixed in 3.2.0 - closing as current release.

Comment 19 Armine Hovsepyan 2014-06-26 09:43:04 UTC
Created attachment 912390 [details]
cassandra_avail

Comment 20 Larry O'Leary 2014-06-26 16:21:47 UTC
Marking target as 3.2 so that it is clear that this was never an actual product bug.

As this "bug" never existed in JBoss ON, we shouldn't be marking it as resolved in a later release.

A resolved bug (CURRENTRELEASE) means that a bug was found in a previous release and then fixed in a later release. In this case, the bug was never found in a release (i.e. reported version is the same as the release version).


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