Bug 904791

Summary: Pgpass file is not handled correctly on cleanup operation
Product: Red Hat Enterprise Virtualization Manager Reporter: Alex Lourie <alourie>
Component: ovirt-engine-setupAssignee: Alex Lourie <alourie>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, dyasny, iheim, mgoldboi, oramraz, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: sf-6 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: 915537    

Description Alex Lourie 2013-01-27 15:06:46 UTC
Description of problem:

engine-cleanup would clean the /etc/ovirt-engine/.pgpass and leave it empty. This will cause the repeated engine-cleanup run to request user password.

Patch upstream: http://gerrit.ovirt.org/#/c/11113/

Comment 2 Ilanit Stein 2013-03-21 13:03:35 UTC
Verified on sf-10:

[root@istein-32 ~]# engine-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 ovirt-engine service...                        [ DONE ]
Removing Database...                                    [ DONE ]
Removing CA...                                          [ DONE ]
Stopping engine-notifierd service...                    [ DONE ]

Cleanup finished successfully!
Cleanup log available at /var/log/ovirt-engine/engine-cleanup_2013_03_21_15_01_11.log
DB Backup available at /var/lib/ovirt-engine/backups/tmp2AjuAV.sql
[root@istein-32 ~]# engine-cleanup

Error: DB password file was not found on this system. Verify that this system was previously installed and that there's a password file at /etc/ovirt-engine/.pgpass or /root/.pgpass
Error: Cleanup failed.
please check log at /var/log/ovirt-engine/engine-cleanup_2013_03_21_15_01_27.log

Comment 3 Itamar Heim 2013-06-11 08:34:42 UTC
3.2 has been released

Comment 4 Itamar Heim 2013-06-11 08:34:43 UTC
3.2 has been released

Comment 5 Itamar Heim 2013-06-11 08:34:48 UTC
3.2 has been released

Comment 6 Itamar Heim 2013-06-11 08:43:40 UTC
3.2 has been released