Bug 1801129 - separate dwh setup: No such file or directory: '/usr/share/ovirt-engine/selinux'
Summary: separate dwh setup: No such file or directory: '/usr/share/ovirt-engine/selinux'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Setup.EngineCommon
Version: 4.4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Yedidyah Bar David
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-02-10 10:29 UTC by Yedidyah Bar David
Modified: 2021-08-30 12:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-05-20 20:02:09 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.4+
mtessun: planning_ack+
sbonazzo: devel_ack+
lleistne: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 106873 0 master MERGED spec: Move selinux from engine to setup-base 2020-05-13 15:42:03 UTC

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.


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