Bug 1599289
Summary: | [OSP13] selinux policy does not allow create instance on nfs /var/lib/nova/instances | |||
---|---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Martin Schuppert <mschuppe> | |
Component: | openstack-tripleo-heat-templates | Assignee: | Martin Schuppert <mschuppe> | |
Status: | CLOSED ERRATA | QA Contact: | Archit Modi <amodi> | |
Severity: | high | Docs Contact: | ||
Priority: | high | |||
Version: | 13.0 (Queens) | CC: | agurenko, aschultz, jschluet, lhh, lmiccini, mbooth, mburns, mgrepl, mschuppe, msufiyan, pablo.iranzo, pkundal | |
Target Milestone: | z3 | Keywords: | Triaged, ZStream | |
Target Release: | 13.0 (Queens) | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | openstack-tripleo-heat-templates-8.0.4-23.el7ost | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | ||
Clone Of: | 1598396 | |||
: | 1601399 (view as bug list) | Environment: | ||
Last Closed: | 2018-11-13 22:27:09 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1598396 |
Comment 1
Martin Schuppert
2018-07-09 12:23:41 UTC
It sounds like the wrong label is being used for the NFS mount: system_u:object_r:nfs_t:s0 should have access. My guess is that the mountpoint is mounted with a -ocontext=... that breaks things. So, the virt_use_nfs boolean, which is turned on by openstack-selinux, should cover this use case. Granting svirt_t generic access to write over nova_var_lib_t isn't ideal. (In reply to Lon Hohberger from comment #2) > It sounds like the wrong label is being used for the NFS mount: > > system_u:object_r:nfs_t:s0 should have access. My guess is that the > mountpoint is mounted with a -ocontext=... that breaks things. > > So, the virt_use_nfs boolean, which is turned on by openstack-selinux, > should cover this use case. Granting svirt_t generic access to write over > nova_var_lib_t isn't ideal. yes, right the default in THT is set to nova_var_lib_t in [1]. I'll move this to THT and submit a patch to have nfs_t as the default. [1] https://github.com/openstack/tripleo-heat-templates/blob/master/puppet/services/nova-compute.yaml#L68 *** Bug 1625539 has been marked as a duplicate of this bug. *** 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, 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/RHBA-2018:3587 |