Bug 2279464
| Summary: | Instance creation with vTPM fails after restarting nova_virtqemud due to SELinux permission issue | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | yatanaka |
| Component: | openstack-tripleo-heat-templates | Assignee: | OSP Team <rhos-maint> |
| Status: | CLOSED ERRATA | QA Contact: | James Parker <jparker> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 17.1 (Wallaby) | CC: | alifshit, astupnik, bdobreli, bshephar, dhill, jparker, jpichon, kchamart, mariel, mburns, mrunge, parthee, pgodwin |
| Target Milestone: | z4 | Keywords: | Triaged, ZStream |
| Target Release: | 17.1 | Flags: | bdobreli:
needinfo-
|
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Fixed In Version: | openstack-tripleo-heat-templates-14.3.1-17.1.20240919130751.e7c7ce3.el9ost | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-11-21 09:30:22 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: | |||
|
Description
yatanaka
2024-05-07 05:49:20 UTC
Hi, So as you see it's all about /var/log/swtpm location inside the container is labelled incorrectly as "container_ro_file_t" It should be: "container_file_t" I think this is already solved in some update. I'm Ccing a couple of colleagues (Julie and Bogdan) who might know which update it is. Also, this was previously discussed extensively in this bug that I filed in the past: https://bugzilla.redhat.com/show_bug.cgi?id=2093956 -- 'swtpm' binary is denied write/"append" permissions to log files under /var/log/swtpm/ From the SELinux side, as investigated in the other bug Kashyap linked, there isn't much that can be done since svirt_t can already write to container_file_t [1] and as indicated in the description here, once the label is correct the instance can start. It looks like an ordering issue based on which container starts first... A deployment SME should be able to confirm what is going on, and if there was a related patch. [1] https://github.com/redhat-openstack/openstack-selinux/commit/61b604b10af6315bb570b71776b8ccdec884222 Please try the pushed fix 451875 Hello Kashyap & Bogdan, Thanks for the follow-up. I assuming that my customer should be good if the fix is included in 17.1.4 release because they haven't responded since 5th July and support case is auto-closed on 15th July. Regards, Partheeban *** Bug 2250047 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 (Moderate: RHOSP 17.1.4 (openstack-tripleo-heat-templates) security 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-2024:9978 *** Bug 2331316 has been marked as a duplicate of this bug. *** |