Bug 1490977

Summary: engine-setup fails in dev env except for the first time
Product: [oVirt] ovirt-engine Reporter: jniederm
Component: Setup.EngineAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: high Docs Contact:
Priority: unspecified    
Version: futureCC: bugs, lsvaty
Target Milestone: ovirt-4.2.0Keywords: Regression
Target Release: ---Flags: rule-engine: ovirt-4.2+
rule-engine: blocker+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-20 11:22:15 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:
Attachments:
Description Flags
engine-setup output.log
none
engine-setup.log none

Description jniederm 2017-09-12 16:24:41 UTC
Created attachment 1324965 [details]
engine-setup output.log

Description of problem:
Running ${TARGET}/bin/engine-setup fails if running more that once in developer environment.

Workaround: remove ${TARGET}/etc/ovirt-engine/engine.conf.d/10-setup-database.conf before running ovirt-setup


Version-Release number of selected component (if applicable):
4.2 master, commit 0ae56b88a5

How reproducible:
100%

Steps to Reproduce:
1. Compile engine to a directory further referenced as ${TARGET} 
2. Run ${TARGET}/bin/engine-setup in dev mode
3. Run ${TARGET}/bin/engine-setup in dev mode

Actual results:
engine-setup fails

Expected results:
engine-setup properly configures the engine

Additional info:

Comment 1 jniederm 2017-09-12 16:29:39 UTC
Created attachment 1324966 [details]
engine-setup.log

Comment 2 jniederm 2017-09-12 16:31:09 UTC
Relates to http://lists.ovirt.org/pipermail/devel/2017-September/031313.html discussion.

Comment 3 Red Hat Bugzilla Rules Engine 2017-09-13 05:42:42 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 4 jniederm 2017-09-14 12:27:58 UTC
Verified that engine-setup can be executed twice in row in dev mode on current master (commit 86aaddda83) and with otopi-1.7.2-0.0.master.20170912135518.git85923b3.fc26.noarch

Comment 5 Sandro Bonazzola 2017-12-20 11:22:15 UTC
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.

Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.

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