Bug 1586011

Summary: ovirt-engine-provisiondb should not try to connect to databases
Product: [oVirt] ovirt-engine-dwh Reporter: Yedidyah Bar David <didi>
Component: SetupAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: high Docs Contact:
Priority: high    
Version: 4.2.0CC: bugs, didi, lsvaty, sradco
Target Milestone: ovirt-4.2.4Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Target Release: 4.2.4.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-dwh-4.2.4.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:40:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1558812, 1581854, 1631202    

Description Yedidyah Bar David 2018-06-05 10:10:58 UTC
Description of problem:

We recently changed ovirt-engine-provisiondb to use the common plugins instead of having its own copies.

dwh's common plugins try to connect to the databases (engine and dwh) and fail if they fail. They should not try to do that if we run provisiondb.

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

Current master and current 4.2.4 (not released yet)

How reproducible:

Always

Steps to Reproduce:
1. engine-setup; engine-backup --mode=backup --file=f1 --log=l1; engine-cleanup
2. systemctl stop rh-postgresql95-postgresql.service; rm -rf /var/opt/rh/rh-postgresql95/lib/pgsql/data
3. engine-backup --mode=restore --file=f1 --log=r1 --provision-all-databases --no-restore-permissions

Actual results:

Fails with:

FATAL: Provisioning database 'engine' failed, please check the log for details

Expected results:

Should succeed

Additional info:

Comment 1 Yaniv Kaul 2018-06-07 09:45:37 UTC
Severity is missing?

Comment 2 Lucie Leistnerova 2018-06-19 06:02:26 UTC
engine-backup restored engine database from empty postgres directory and service not running

verified in ovirt-engine-setup-4.2.4.4-0.1.el7_3.noarch

Comment 3 Sandro Bonazzola 2018-06-26 08:40:02 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.