Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1174667

Summary: engine-setup unconditionally enables the engine if ran on dwh/reports host
Product: Red Hat Enterprise Virtualization Manager Reporter: Yedidyah Bar David <didi>
Component: ovirt-engineAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.5.0CC: bazulay, didi, gklein, lsurette, pstehlik, rbalakri, Rhev-m-bugs, sbonazzo, sherold, yeylon, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: ZStream
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1181586 (view as bug list) Environment:
Last Closed: 2016-03-11 07:35:04 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: 1181586    

Description Yedidyah Bar David 2014-12-16 10:02:21 UTC
Description of problem:


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


How reproducible:

always

Steps to Reproduce:
1. install and setup engine on machine A
2. install and setup dwh (or reports, or both) on machine B
3. install engine on machine B
4. Run engine-setup

Actual results:

it will automatically enable the engine without asking 'Configure engine?'.

Expected results:

At least ask, better prevent.

Additional info:

Current code [1] (simplified a bit for bugzilla) is:

        if engine_enabled is None:
            if not engine_db_is_new:
                engine_enabled = True
            else:
                ask

When step 4 above is ran:
- engine_enabled is none (not set anywhere, defaults to none)
- engine_db_is_new is False, because the previous run (step 2) already connected to it, checked that it's not new, and kept the answer in the postinstall file

We need to somehow identify the current situation (engine _is_ enabled, but on a remote host) and prevent configuring it. I do not think it's a reasonable flow to add an engine after dwh (or reports) is already set up with remote engine, even though it might work in principle (and discussed and rejected during the design discussions for dwh/reports on separate hosts).

[1] packaging/setup/plugins/ovirt-engine-setup/ovirt-engine/core/misc.py:_customization