Red Hat Bugzilla – Bug 866964
rhevm-upgrade and rhevm-cleanup should use backup.sh to backup DB
Last modified: 2014-01-13 19:04:21 EST
Description of problem:
Currently, installation utilities use 'pg_dump' to backup database. They should use a backup.sh script provided by backend instead.
The fix is uploaded for review: http://gerrit.ovirt.org/#/c/10548/
Merged upstream: http://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=commit;h=608957211dc7e7dcdb3777c68bd56b4556e70f26
Please advise how to test that upgrade and rhevm-cleanup uses backup.sh ?
Is it upgrade to SF9 or from SF9 ?
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
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
3.2 has been released