Bug 1586011 - ovirt-engine-provisiondb should not try to connect to databases
Summary: ovirt-engine-provisiondb should not try to connect to databases
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-dwh
Classification: oVirt
Component: Setup
Version: 4.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.2.4
: 4.2.4.2
Assignee: Yedidyah Bar David
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks: 1558812 1581854 1631202
TreeView+ depends on / blocked
 
Reported: 2018-06-05 10:10 UTC by Yedidyah Bar David
Modified: 2018-12-10 09:24 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-dwh-4.2.4.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-26 08:40:02 UTC
oVirt Team: Integration
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 91948 0 master MERGED packaging: Do not connect to databases if provisioning a db 2020-07-27 23:09:23 UTC
oVirt gerrit 91950 0 ovirt-engine-dwh-4.2 MERGED packaging: Do not connect to databases if provisioning a db 2020-07-27 23:09:23 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.