Bug 976790

Summary: rhqctl upgrade with migrator doesn't work
Product: [JBoss] JBoss Operations Network Reporter: Armine Hovsepyan <ahovsepy>
Component: UpgradeAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: high Docs Contact:
Priority: unspecified    
Version: JON 3.2CC: mfoley, snegrea
Target Milestone: ER01   
Target Release: JON 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 951619    
Attachments:
Description Flags
rhqctl_upgrade_oracle.log
none
rhqctl_upgrade_postgres.log none

Description Armine Hovsepyan 2013-06-21 13:15:56 UTC
Description of problem:
rhqctl upgrade with migrator doesn't work

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

How reproducible:
always

Steps to Reproduce:
1. install rhq server 4.5.1
2. run ./rhq-server-4.8.0-SNAPSHOT/bin/rhqctl upgrade --from-server-dir /home/hudson/rhq-server-4.5.1 --run-data-migrator do-it
3.

Actual results:
postgres -> http://d.pr/f/Kvkf
oralce -> http://d.pr/f/Aswx

Expected results:
postgres- > migration works with default parameters
oracle -> config params used in rhq-data-migrator.sh should be acceptable for upgrade and migrator should work

Additional info:

Comment 1 Stefan Negrea 2013-06-28 20:36:22 UTC
Updated the code to use the connection url from rhq-server.properties. For oracle the code should not rely in individual properties to generate a connection url since a lot of the properties are marked with "unused" in the configuration file.

Also updated the code to use the rhq-server.properties file implicitly.


Please retest.

Comment 2 Armine Hovsepyan 2013-07-01 11:09:46 UTC
ClassCastException while running upgrade with migration without params and with 
param estimate -> http://d.pr/f/rtG4

version: 2390  jenkins master build

Comment 3 Stefan Negrea 2013-07-01 14:15:20 UTC
Update the code one more time. The Cassandra driver had a different expectation for the seed list argument. Please retest.

Comment 4 Armine Hovsepyan 2013-07-02 17:12:57 UTC
checked for both postgres and oracle migration with upgrade.
please get attached logs of verification.

thank you.

Comment 5 Armine Hovsepyan 2013-07-02 17:13:39 UTC
Created attachment 767883 [details]
rhqctl_upgrade_oracle.log

Comment 6 Armine Hovsepyan 2013-07-02 17:14:01 UTC
Created attachment 767884 [details]
rhqctl_upgrade_postgres.log