Description of problem: RHEVM-Cleanup - Wrong Error print when DB was never installed on the system Version-Release number of selected component (if applicable): RHEVM3.1 Version Si4 How reproducible: Always Steps to Reproduce: 1. Run rhevm-setup and reply on ports questions only 2. Click Ctrl+C (or kill the process) (** In that case DB doesn't exist and was never installed) Actual results: [root@ortal-rhevm2 ~]# rhevm-cleanup WARNING: Executing oVirt Engine cleanup utility. This utility will wipe all existing data including configuration settings, certificates and database. In addition, all existing DB connections will be closed. Would you like to proceed? (yes|no): yes Stopping JBoss service... [ DONE ] Error: Couldn't connect to the database server.Check that connection is working and rerun the cleanup utility Error: Cleanup failed. please check log at /var/log/ovirt-engine/engine-cleanup_2012_05_29_12_46_46.log [root@ortal-rhevm2 ~]# less /var/log/ovirt-engine/engine-cleanup_2012_05_29_12_46_46.log Expected results: Need to print a relevant error print, such as: DB doesn't exist instead of: Couldn't connect to the database server
Fix uploaded for review; http://gerrit.ovirt.org/#/c/5031/
[root@ykaul-rhevm3 si8]# rhevm-cleanup WARNING: Executing oVirt Engine cleanup utility. This utility will wipe all existing data including configuration settings, certificates and database. In addition, all existing DB connections will be closed. Would you like to proceed? (yes|no): y Stopping JBoss service... [ DONE ] Error: Couldn't connect to the database server.Check that connection is working and rerun the cleanup utility Error: Cleanup failed. please check log at /var/log/ovirt-engine/engine-cleanup_2012_07_01_17_17_34.log I don't see a difference between this and the original report - re-opening (SI8)
Was the cleanup utility in the example above run on the clean system where rhevm was never present?
(In reply to comment #3) > Was the cleanup utility in the example above run on the clean system where > rhevm was never present? No, it was present there before, but I cleaned it, hopefully well (including JBoss and postgres removal).
BTW, please fix missing space after period in "server.Check" (part of "Couldn't connect to the database server.Check that connection" ...)
After removal of ~/.pgpass, the error is correct. We assume the existence of ~/.pgpass means a DB exists (which is a naive assumption). Opened another bug - https://bugzilla.redhat.com/show_bug.cgi?id=836807 - asking to remove what we've added to ~/.pgpass Moving this one to VERIFIED.