Bug 1507438 - not able to deploy new rhvh host when "/tmp" is mounted with "noexec" option
Summary: not able to deploy new rhvh host when "/tmp" is mounted with "noexec" option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.1.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Dana
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-30 09:25 UTC by Marian Jankular
Modified: 2020-12-14 13:32 UTC (History)
18 users (show)

Fixed In Version: rhvm-4.4.0-0.31
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-08-04 13:16:05 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4594531 0 None None None 2019-11-19 03:59:12 UTC
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:16:42 UTC

Description Marian Jankular 2017-10-30 09:25:36 UTC
Description of problem:
after applying DISA STIG PCI-DSS audit rules on rhvh it is not possible to add this host to manager

Version-Release number of selected component (if applicable):
rhvh 4.1.6 and most probably versions before

How reproducible:
everytime

Steps to Reproduce:
1. install rhvh
2. create thin lv for /tmp and mount it with "noexec" option
3. try to add host from manager

Actual results:
2017-10-30 05:02:59,163-04 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (VdsDeploy) [2986cfa7] Error during deploy dialog
2017-10-30 05:02:59,171-04 ERROR [org.ovirt.engine.core.bll.hostdeploy.VdsDeployBase] (org.ovirt.thread.pool-6-thread-7) [2986cfa7] Error during host 10.37.192.203 install
2017-10-30 05:02:59,211-04 ERROR [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (org.ovirt.thread.pool-6-thread-7) [2986cfa7] EVENT_ID: VDS_INSTALL_IN_PROGRESS_ERROR(511), Correlation ID: 2986cfa7, Call Stack: null, Custom ID: null, Custom Event ID: -1, Message: Failed to install Host noexechost. Unexpected error during execution: bash: /tmp/ovirt-nFmb9TnASj/ovirt-host-deploy: Permission denied


Expected results:
host will be added

Additional info:
is it possible to make host compliant and move the deploy scritps to different location?

Comment 1 Ryan Barry 2017-10-30 12:46:26 UTC
This should also be reproducible on RHEL hosts. ovirt-host-deploy uses /tmp on both variants. Changing component.

Comment 2 Sandro Bonazzola 2017-10-30 12:50:36 UTC
Moving to infra team for review.
Martin, what do you think?

Comment 3 Martin Perina 2017-11-01 12:57:29 UTC
Targeting to 4.3 as it's planned to evaluate those security standards during 4.3 planning

Comment 4 Daniel Gur 2019-08-28 13:12:56 UTC
sync2jira

Comment 5 Daniel Gur 2019-08-28 13:17:09 UTC
sync2jira

Comment 8 Martin Perina 2020-04-03 11:24:35 UTC
Moving to MODIFIED as ansible is using /root directory to store temporary data including executed scripts

Comment 11 Petr Matyáš 2020-04-16 16:26:54 UTC
Verified on ovirt-engine-4.4.0-0.32.master.el8ev.noarch

Machine with noexec /tmp (and /home) can be added as a host.

Comment 15 errata-xmlrpc 2020-08-04 13:16:05 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), and where to find the updated
files, follow the link below.

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

https://access.redhat.com/errata/RHSA-2020:3247


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