Bug 996194 - Default user/password is not working during installation when overwriting database (rhq.autoinstall.database=overwrite)
Default user/password is not working during installation when overwriting dat...
Status: NEW
Product: RHQ Project
Classification: Other
Component: Installer (Show other bugs)
4.8
Unspecified Unspecified
medium Severity high (vote)
: ---
: ---
Assigned To: RHQ Project Maintainer
Mike Foley
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-12 11:40 EDT by Filip Brychta
Modified: 2014-03-28 09:42 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Filip Brychta 2013-08-12 11:40:59 EDT
Description of problem:
$Summary

Version-Release number of selected component (if applicable):
Version: 4.9.0-SNAPSHOT
Build Number: 34e1c7b

How reproducible:
Always

Steps to Reproduce:
1. clean machine
2. unzip rhq-server-4.9.0-SNAPSHOT.zip
3. cd rhq-server-4.9.0-SNAPSHOT/bin/
4. change line rhq.autoinstall.database in rhq-server.properties to rhq.autoinstall.database=overwrite
5. ./rhqctl install

Actual results:
11:12:02,020 ERROR [org.rhq.enterprise.server.installer.InstallerServiceImpl] Could not complete Cassandra schema installation: Authentication error on host /10.16.23.173: Username and/or password are incorrect: java.lang.RuntimeException: com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /10.16.23.173: Username and/or password are incorrect
	at org.rhq.cassandra.schema.VersionManager.drop(VersionManager.java:200) [rhq-cassandra-schema-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.cassandra.schema.SchemaManager.drop(SchemaManager.java:99) [rhq-cassandra-schema-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.enterprise.server.installer.InstallerServiceImpl.prepareDatabase(InstallerServiceImpl.java:486) [rhq-installer-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.enterprise.server.installer.InstallerServiceImpl.install(InstallerServiceImpl.java:258) [rhq-installer-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:115) [rhq-installer-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.enterprise.server.installer.Installer.main(Installer.java:56) [rhq-installer-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_24]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.6.0_24]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.6.0_24]
	at java.lang.reflect.Method.invoke(Method.java:616) [rt.jar:1.6.0_24]
	at org.jboss.modules.Module.run(Module.java:262) [jboss-modules.jar:1.2.0.CR1]
	at org.jboss.modules.Main.main(Main.java:329) [jboss-modules.jar:1.2.0.CR1]
Caused by: com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /10.16.23.173: Username and/or password are incorrect
	at com.datastax.driver.core.Connection.initializeTransport(Connection.java:168) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Connection.<init>(Connection.java:129) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Connection.<init>(Connection.java:56) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Connection$Factory.open(Connection.java:412) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:205) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:168) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:81) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:644) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Cluster$Manager.access$100(Cluster.java:586) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Cluster.<init>(Cluster.java:69) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Cluster.buildFrom(Cluster.java:96) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at com.datastax.driver.core.Cluster$Builder.build(Cluster.java:567) [cassandra-driver-core-1.0.2-rhq-1.2.4.jar:]
	at org.rhq.cassandra.util.ClusterBuilder.build(ClusterBuilder.java:101) [rhq-cassandra-util-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.cassandra.schema.AbstractManager.initClusterSession(AbstractManager.java:118) [rhq-cassandra-schema-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.cassandra.schema.AbstractManager.initClusterSession(AbstractManager.java:99) [rhq-cassandra-schema-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	at org.rhq.cassandra.schema.VersionManager.drop(VersionManager.java:195) [rhq-cassandra-schema-4.9.0-SNAPSHOT.jar:4.9.0-SNAPSHOT]
	... 11 more


Expected results:
installation is completed without errors
Comment 1 Filip Brychta 2014-03-28 09:42:30 EDT
Hit similar issue on JON 3.2.0.GA. Using the same scenario, following err is thrown:

09:01:27,984 ERROR [org.rhq.cassandra.schema.VersionManager] Storage cluster schema not installed. Please re-run the server installer to install the storage cluster schema properly.
09:01:27,985 INFO  [org.rhq.cassandra.schema.VersionManager] Completed storage schema compatibility check.
09:01:27,987 ERROR [org.rhq.enterprise.server.installer.InstallerServiceImpl] Could not complete storage cluster schema installation: Storage schema is not properly installed. Please re-run the server installer to install storage schema.: java.lang.RuntimeException: org.rhq.cassandra.schema.exception.SchemaNotInstalledException: Storage schema is not properly installed. Please re-run the server installer to install storage schema.
	at org.rhq.cassandra.schema.VersionManager.checkCompatibility(VersionManager.java:286) [rhq-cassandra-schema-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at org.rhq.cassandra.schema.SchemaManager.checkCompatibility(SchemaManager.java:112) [rhq-cassandra-schema-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at org.rhq.enterprise.server.installer.InstallerServiceImpl.prepareDatabase(InstallerServiceImpl.java:557) [rhq-installer-util-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at org.rhq.enterprise.server.installer.InstallerServiceImpl.install(InstallerServiceImpl.java:316) [rhq-installer-util-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at org.rhq.enterprise.server.installer.Installer.doInstall(Installer.java:116) [rhq-installer-util-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at org.rhq.enterprise.server.installer.Installer.main(Installer.java:57) [rhq-installer-util-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
	at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
	at org.jboss.modules.Module.run(Module.java:270) [jboss-modules.jar:1.2.2.Final-redhat-1]
	at org.jboss.modules.Main.main(Main.java:411) [jboss-modules.jar:1.2.2.Final-redhat-1]
Caused by: org.rhq.cassandra.schema.exception.SchemaNotInstalledException: Storage schema is not properly installed. Please re-run the server installer to install storage schema.
	at org.rhq.cassandra.schema.VersionManager.checkCompatibility(VersionManager.java:261) [rhq-cassandra-schema-4.9.0.JON320GA.jar:4.9.0.JON320GA]
	... 11 more

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