Bug 866964

Summary: rhevm-upgrade and rhevm-cleanup should use backup.sh to backup DB
Product: Red Hat Enterprise Virtualization Manager Reporter: Alex Lourie <alourie>
Component: ovirt-engine-setupAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: David Botzer <dbotzer>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, dyasny, iheim, mgoldboi, pstehlik, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: sf-9 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: 866963, 913524    
Bug Blocks: 917401    

Description Alex Lourie 2012-10-16 12:18:19 UTC
Description of problem:

Currently, installation utilities use 'pg_dump' to backup database. They should use a backup.sh script provided by backend instead.

Comment 3 Alex Lourie 2013-01-01 17:01:07 UTC
The fix is uploaded for review: http://gerrit.ovirt.org/#/c/10548/

Comment 6 David Botzer 2013-03-10 11:24:15 UTC
Please advise how to test that upgrade and rhevm-cleanup uses backup.sh ?

Is it upgrade to SF9 or from SF9 ?

Comment 7 David Botzer 2013-03-24 08:42:19 UTC
Fixed, 3.2/sf9-sf10
I upgraded sf9 to sf10 - checked in ovirt-engine-upgrade_2013_03_24_10_18_32.log
and upgrade uses "backup.sh" - OK
----

2013-03-24 10:18:54::DEBUG::common_utils::435::root:: Executing command --> './backup.sh -u engine -s localhost -p 5432 -d engine -f /var/lib/ovirt-
engine/backups/ovirt-engine_db_backup_2013_03_24_10_18_33.sql' in working directory '/usr/share/ovirt-engine/dbscripts/'
2013-03-24 10:18:55::DEBUG::common_utils::473::root:: output = /usr/share/ovirt-engine/dbscripts /usr/share/ovirt-engine/dbscripts
Backup of database engine to /var/lib/ovirt-engine/backups/ovirt-engine_db_backup_2013_03_24_10_18_33.sql started...
Backup of database engine to /var/lib/ovirt-engine/backups/ovirt-engine_db_backup_2013_03_24_10_18_33.sql completed.
----

I ran rhevm-cleanup on the sf10 - checked in 
engine-cleanup_2013_03_24_10_40_19.log
and cleanup uses "backup.sh"

Cleanup finished successfully!
Cleanup log available at /var/log/ovirt-engine/engine-cleanup_2013_03_24_10_40_19.log
DB Backup available at /var/lib/ovirt-engine/backups/tmpP4Qc_3.sql

Comment 8 Itamar Heim 2013-06-11 09:36:39 UTC
3.2 has been released

Comment 9 Itamar Heim 2013-06-11 09:36:54 UTC
3.2 has been released

Comment 10 Itamar Heim 2013-06-11 09:51:24 UTC
3.2 has been released