| Summary: | vdsm installation fails when selinux is disabled | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Ohad Levy <ohadlevy> |
| Component: | vdsm | Assignee: | Dan Kenigsberg <danken> |
| Status: | CLOSED ERRATA | QA Contact: | Jakub Libosvar <jlibosva> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 6.2 | CC: | abaron, acathrow, bazulay, cpelland, dron, iheim, knesenko, sgordon, ykaul |
| Target Milestone: | rc | Keywords: | ZStream |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | v4.9.2-85-g75e97e9 | Doc Type: | Bug Fix |
| Doc Text: |
VDSM previously always attempted to update SELinux attributes, even when SELinux was disabled. This caused the installation to fail.
The installation process has been modified to ensure that SELinux attributes are only modified if SELinux is enabled. This ensures that installation is still able to complete successfully when SELinux is disabled.
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-12-04 18:52:26 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 782100 | ||
Setting severity to high as this is an unexpected behavior introduced in 3.0.0 (0day) while fixing bug 746766.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
VDSM previously always attempted to update SELinux attributes, even when SELinux was disabled. This caused the installation to fail.
The installation process has been modified to ensure that SELinux attributes are only modified if SELinux is enabled. This ensures that installation is still able to complete successfully when SELinux is disabled.
verified on vdsm-4.9.6-4.5.x86_64 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. http://rhn.redhat.com/errata/RHSA-2012-1508.html |
Description of problem: when selinux is disabled (not permissive) vdsm installation fails. How reproducible: 100% Steps to Reproduce: 1. disable selinux in /etc/selinux/config 2.install vdsm via ovirt. 3. Actual results: Sun, 08 Jan 2012 19:31:20 DEBUG handleSSHKey start Sun, 08 Jan 2012 19:31:20 DEBUG handleSSHKey: failed to chmod authorized_keys Traceback (most recent call last): File "/tmp/deployUtil.py", line 602, in handleSSHKey selinux.restorecon(P_ROOT_AUTH_KEYS) File "/usr/lib64/python2.7/site-packages/selinux/__init__.py", line 84, in restorecon status, oldcontext = lgetfilecon(path) Expected results: if selinux is not running, I would not try to change any selinux attributes. Additional info: