Bug 785705

Summary: [ovirt-dwh] - create_db.sh asks for password twice
Product: [Retired] oVirt Reporter: David Botzer <dbotzer>
Component: ovirt-engine-dwhAssignee: Yaniv Lavi <ylavi>
Status: CLOSED NOTABUG QA Contact: David Botzer <dbotzer>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: acathrow, iheim, pstehlik, yeylon, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-24 10:28:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description David Botzer 2012-01-30 12:15:07 UTC
Description of problem:
The script should dropdb if exists and recreate it, though it should use the ~/.pgpass file that holds the user postgres password

Version-Release number of selected component (if applicable):
ovirt-engine-3.0.0_0001-1.4, ovier-dwh 3.0.0 

How reproducible:
Always

Steps to Reproduce:
1.create setup with ovirt_history DB
2.run the script /ovirt-dwh/data-warehouse/historydbscripts_postgres/create_db.sh
  
Actual results:
Asks password twice - 1.for dropdb & 2.for create db

Expected results:
Should not ask for any password.

Additional info:

Comment 1 Yaniv Lavi 2012-04-24 10:28:14 UTC
Please setup a .pspass file to prevent password prompt.



Yaniv