Bug 818479

Summary: RHEVM-Manage-Domains - Missing Details when there is no connection to the DB
Product: Red Hat Enterprise Virtualization Manager Reporter: Ortal <ogvura>
Component: ovirt-engineAssignee: Yaniv Bronhaim <ybronhei>
Status: CLOSED CURRENTRELEASE QA Contact: David Botzer <dbotzer>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, dyasny, iheim, lpeer, pstehlik, Rhev-m-bugs, yeylon, ykaul, yzaslavs
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: infra
Fixed In Version: si16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 20:06:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ortal 2012-05-03 08:28:30 UTC
Description of problem:

RHEVM-Manage-Domains - Missing Details when there is no connection to the DB

Version-Release number of selected component (if applicable):
RHEVM 3.1 Version Si3

How reproducible:
Always

Steps to Reproduce:
1. Run the rhevm-manage-domain utility when connection to the DB is lost.
  
Actual results:

[root@ortal-rhevm3 ~]# engine-manage-domains -action=add -domain=qa.lab.tlv.redhat.com -user=ortal -interactive -addPermissions
Failure while connecting to database. Details:

Expected results:

Missing Details when there is not DB connection.

Comment 1 Yair Zaslavsky 2012-05-09 06:38:28 UTC
I would simply rephrase this to give a more detailed string on what to check (basically, in most cases this is what the PSQL Exception will show anyway in its detailed message).

Comment 2 Yaniv Bronhaim 2012-08-16 06:19:16 UTC
suggest patch: http://gerrit.ovirt.org/#/c/7202/

Comment 5 David Botzer 2012-08-30 13:13:27 UTC
Fixed, 3.1/si16
Message describes as follow:
Local - stop psql service
"
Failure while connecting to database. Details: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
"

Remote - no permissions in pg_hba.conf
"
Failure while connecting to database. Details: FATAL: no pg_hba.conf entry for host "10.35.113.63", user "postgres", database "engine", SSL off
"
Fixed, 3.1/si16