Red Hat Bugzilla – Bug 1022932
engine-setup should not fail if /etc/ovirt-engine/.pgpass exists
Last modified: 2014-01-21 17:26:58 EST
Description of problem:
/etc/ovirt-engine/.pgpass was used by releases up to and including 3.2 to store database access credentials. 3.3 checks this file during upgrade from 3.2, but also on a new setup, if it exists, and fails if the credentials there point to an inaccessible database.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install 3.2
2. run engine-setup
3. Copy /etc/ovirt-engine/.pgpass to a backup elsewhere
5. Install (or upgrade to) 3.3
6. Copy the backup back to /etc/ovirt-engine/.pgpass
7. run engine-setup
engine-setup fails with:
[ ERROR ] Failed to execute stage 'Misc configuration': FATAL: Ident authentication failed for user "engine" FATAL: Ident authentication failed for user "engine"
engine-setup should continue, ignoring this file and creating a new database or connect to an existing one as chosen by the user
This file is cleaned by 3.2's engine-cleanup.
3.3.'s engine-setup used to leave it behind as-is until recently. Now it zeros it.
3.3.'s engine-cleaup does not touch it.
Verified on rhevm3.3 is27, works for >= is24.
reproduced as per description with update from rhevm 3.2 sf22 to rhevm 3.3 is27.
Closing - RHEV 3.3 Released