Bug 1801129

Summary: separate dwh setup: No such file or directory: '/usr/share/ovirt-engine/selinux'
Product: [oVirt] ovirt-engine Reporter: Yedidyah Bar David <didi>
Component: Setup.EngineCommonAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.0CC: bugs, dfodor, lleistne, mtessun
Target Milestone: ovirt-4.4.0Flags: pm-rhel: ovirt-4.4+
mtessun: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:02:09 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:

Description Yedidyah Bar David 2020-02-10 10:29:40 UTC
Description of problem:

Setting up dwh on a separate machine fails with:

[ ERROR ] Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/share/ovirt-engine/selinux'

setup log has:

2020-02-10 11:28:49,782+0200 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-common/base/system/selinux.py", line 89, in _misc
    for f in listdir(selinux_dir):
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/ovirt-engine/selinux'
2020-02-10 11:28:49,785+0200 ERROR otopi.context context._executeMethod:154 Failed to execute stage 'Misc configuration': [Errno 2] No such file or directory: '/usr/share/ovirt-engine/selinux'

This is because /usr/share/ovirt-engine/selinux is packaged in 'ovirt-engine'. It should be in setup-base or setup-engine-common.

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

Current master

How reproducible:
Always

Steps to Reproduce:
1. Install and setup an engine on machine A
2. Install dwh on machine B
3. Run engine-setup on B

Actual results:
Fails

Expected results:
Succeeds

Additional info:

Comment 1 Yedidyah Bar David 2020-02-23 08:02:06 UTC
This does not affect 4.3, it was introduced by patches for ansible-runner (for bug 1759143).

Comment 2 Guilherme Santos 2020-03-18 15:12:22 UTC
Verified on:
ovirt-engine-setup-base-4.4.0-0.25.master.el8ev.noarch
ovirt-engine-dwh-4.4.0-1.el8ev.noarch

Steps:
1. Install and setup an engine on machine A
2. On machine B, install ovirt-engine-dwh-setup
3. # ll -d /usr/share/ovirt-engine/selinux
4. engine-setup on machine B

Results:
- Directory present
- Setup finish successfully

Comment 3 Sandro Bonazzola 2020-05-20 20:02:09 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

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