Red Hat Bugzilla – Bug 976814
Cassandra username/password cannot be customized
Last modified: 2013-10-03 10:28:58 EDT
Description of problem:
When the RHQ server installer runs, it creates and/or applies schema updates to the relational database as well as to Cassandra. For Cassandra, one of the first steps involves creating a user (in Cassandra) that the RHQ server will use to authenticate against Cassandra. The username/password for that user are specified by the rhq.cassandra.username and rhq.cassandra.password properties in rhq-server.properties.
The Cassandra schema installation code is using a hard coded value of rhqadmin for both the username and password; consequently, the rhq.cassandra.username and rhq.cassandra.password properties cannot be changed. If the user changes either of those from the default values, then the server will not be able to authenticate against Cassandra and server initialization will subsequently fail.
Following some manual steps the password can be changed after installation. I am going to try to provide a script as well to automate the process until this issue is resolved. Note that these steps are for changing the password only.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
We probably want to support password obfuscation like we do for the oracle/postgres password.
I know that you have already done work on this. Can you make sure we support password obfuscation as we do with the relational database password? And can you also write up some docs for what users will need to do to set and update the password.
The work has been completed for this BZ. The password and username for the storage nodes can be changed before the initial setup. Also, the password is required to be obfuscated in the rhq-server.properties file.
The properties names for the storage cluster have also been changed to rhq.storage.*
An important note, the password and username for the storage cluster can be changed before the installer runs. There is still no automated way of changing this after the installer runs, this has to be done manually.
Build Number: a9245fd
Verified that storage user/password were changed according to rhq-server.properties on the local storage node as well as on the remote storage node which was deployed after the server installation.
Bulk closing of RHQ 4.9 verified items