Bug 1744027
| Summary: | [downstream clone - 4.3.6] [RFE] Warn if SELinux is disabled when upgrading RHV-H | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | RHV bug bot <rhv-bugzilla-bot> |
| Component: | imgbased | Assignee: | Yuval Turgeman <yturgema> |
| Status: | CLOSED ERRATA | QA Contact: | Yaning Wang <yaniwang> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.3.4 | CC: | cshao, dfediuck, lsvaty, mavital, mtessun, nlevy, pelauter, qiyuan, sbonazzo, schandle, weiwang, yaniwang, yturgema |
| Target Milestone: | ovirt-4.3.6 | Keywords: | FutureFeature, ZStream |
| Target Release: | 4.3.6 | Flags: | lsvaty:
testing_plan_complete-
|
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | imgbased-1.1.10 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | 1724102 | Environment: | |
| Last Closed: | 2019-10-10 15:37:21 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Node | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1724102 | ||
| Bug Blocks: | |||
|
Description
RHV bug bot
2019-08-21 07:25:37 UTC
Nijin, can you share the use case for having selinux disabled? (Originally by Sandro Bonazzola) Asking because selinux should be enforcing there according to bug #1349241 (Originally by Sandro Bonazzola) Also, Nijin, is this a beta system? I see imgbased 1.1.5 but in RHV 4.3 GA we shipped 1.1.7 and upgrade from beta to GA is not supported. That said, upgrade with selinux disbaled should work since we fixed it in bug #1542833 so we need to reproduce on supported configuration. (Originally by Sandro Bonazzola) (In reply to Sandro Bonazzola from comment #2) > Asking because selinux should be enforcing there according to bug #1349241 I already asked the customer but doesn't get a response. However, now we are trying to upgrade with SELinux enabled but getting some other errors which we are currently troubleshooting. (In reply to Sandro Bonazzola from comment #3) > Also, Nijin, is this a beta system? I see imgbased 1.1.5 but in RHV 4.3 GA > we shipped 1.1.7 and upgrade from beta to GA is not supported. > That said, upgrade with selinux disbaled should work since we fixed it in > bug #1542833 so we need to reproduce on supported configuration. Sorry about that. Looks like I reproduced in an old beta server. However, I just tried to upgrade from 4.2 to 4.3 and can clearly reproduce it with mentioned reproducer steps. It fails when it tries to create the directory "/tmp/mnt.WHo1r/sys/fs/selinux". Attaching the imgbased.log. (Originally by Nijin Ashok) Honestly a RHV-H should always have selinux in enforcing. If a customer disables it, upgrade *should* fail from my pov, as it really weakens security. In addition there is no reason for disabling selinux. So in case we don't fail the upgrade, we should ensure that we enable selinux (enforcing) at the very minimum. Every boot of a RHV-H system should automatically check if selinux is in enforcing and put it in enforcing in case it is not. If customers want to run with less security they can still use a RHEL based installation. The RHV-H should not allow a setup with selinux disabled. (Originally by Martin Tessun) This is something the RHV Upgrade Helper (https://access.redhat.com/labs/rhvupgradehelper/) should call out SELinux status as a requirement. We cannot just fail an upgrade without giving customers the chance to remediate any issues. (Originally by Peter Lauterbach) upgrade from rhvh-4.2.8.5-0.20190416.0 to rhvh-4.3-20190821.0.el7_7 steps: 1. install rhvh 4.2 2. disable selinux 3. upgrade to rhvh 4.3 actual results: upgrade is success 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/RHSA-2019:3011 |