Created attachment 902462 [details]
Description of problem:
Deploying storage node fails with
"InvalidQueryException: unconfigured columnfamily metrics_index"
Version-Release number of selected component (if applicable):
Build Number :
Steps to Reproduce:
1. install rhq server with storage node (./rhqctl install) and start it
2. add another storege node on different host:
a. ./rhqctl install --storage --agent-preference="rhq.agent.server.bind-address=<rhqServerHostIp>"
b. ./rhqctl start
Cluster status of newly installed storage node visible on Administration->Storage Nodes is DOWN and following exception is thrown to server.log:
04:57:55,408 ERROR [org.jboss.as.ejb3.invocation] (EJB default - 10) JBAS014134: EJB Invocation failed on component StorageNodeOperationsHandlerBean for method public abstract void org.rhq.enterprise.server.storage.StorageNodeOperationsHandlerLocal.handlePrepareForBootstrap(org.rhq.core.domain.operation.ResourceOperationHistory): javax.ejb.EJBException: com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured columnfamily metrics_index
server.log and storage logs attached
Additional attempt to deploy given storage node via UI ends with the same exception.
Created attachment 902463 [details]
storage log from rhq server host
Created attachment 902464 [details]
storage log from addional storage host
This is a regression only in master, not in a previous RHQ release. It is due to the schema changes introduced in the jsanda/metrics-schema branch. There is code in StorageNodeOperationsHandlerBean that updates configuration of tables in Cassandra. The code tries to update the metrics_index table which has been dropped .
Fix committed to master.
commit hash: 47454032b6
Build Number :
Bulk close of items fixed in RHQ 4.12
If you think this is not solved, then please open a *new* BZ and link to this one.