Bug 1946502 - engine-setup on a separate {dwh, websocket-proxy, grafana) machine fails
Summary: engine-setup on a separate {dwh, websocket-proxy, grafana) machine fails
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.EngineCommon
Version: 4.4.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.4.6
: 4.4.6.3
Assignee: Yedidyah Bar David
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-04-06 09:23 UTC by Yedidyah Bar David
Modified: 2021-05-06 12:14 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.4.6.3
Clone Of:
Environment:
Last Closed: 2021-05-06 12:14:10 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.4+
mjurasek: blocker-
sbonazzo: devel_ack+
gdeolive: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 114130 0 master MERGED packaging: setup: Initialize env[SELINUX_BOOLEANS] 2021-04-07 09:40:32 UTC

Description Yedidyah Bar David 2021-04-06 09:23:41 UTC
Description of problem:

On a machine not having the package ovirt-engine-setup-plugin-ovirt-engine installed, engine-setup fails with:

===========================================================================
2021-03-18 23:34:10,976+0700 DEBUG otopi.context context._executeMethod:145 method exception

Traceback (most recent call last):

  File "/usr/lib/python3.6/site-packages/otopi/context.py", line 132, in _executeMethod

    method['method']()

  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine-common/apache/selinux.py", line 40, in _misc

    osetupcons.SystemEnv.SELINUX_BOOLEANS

KeyError: 'OVESETUP_SYSTEM/selinuxBooleans'

2021-03-18 23:34:10,977+0700 ERROR otopi.context context._executeMethod:154 Failed to execute stage 'Misc configuration': 'OVESETUP_SYSTEM/selinuxBooleans'
===========================================================================

This was reported on [1] by Nur Imam Febrianto. Thanks for the report.

It was caused by the patch for bug 1903052.

I think either of these workarounds should work, didn't test them:

1. engine-setup --otopi-environment=OVESETUP_SYSTEM/selinuxBooleans=multi-str:\

The shell will prompt with '> '. Just press Enter.

2. Install the package ovirt-engine-setup-plugin-ovirt-engine. Run engine-setup. If/when prompted, asking "Configure Engine on this host (Yes, No) [Yes]:', reply 'No'.

[1] https://lists.ovirt.org/archives/list/users@ovirt.org/thread/5RRBUIFJHJ4MJKYC2GQRMHACHEHIAWAF/

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

How reproducible:
I think always, didn't try myself

Steps to Reproduce:
1. Install ovirt-engine-setup-plugin-ovirt-engine-common, plus whatever other setup packages needed/wanted, but do not install ovirt-engine-setup-plugin-ovirt-engine
2. Run engine-setup
3.

Actual results:
Fails as above

Expected results:
Succeeds

Additional info:

Comment 1 RHEL Program Management 2021-04-07 08:41:46 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 2 Guilherme Santos 2021-05-05 13:47:14 UTC
Verified on:
ovirt-engine-setup-plugin-ovirt-engine-common-4.4.6.6-0.10.el8ev.noarch

Steps:
description's

Results:
engine-setup succeeds as expected

Comment 3 Sandro Bonazzola 2021-05-06 12:14:10 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.6 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.