Hide Forgot
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:
Setting severity to high as this is an unexpected behavior introduced in 3.0.0 (0day) while fixing bug 746766.
http://gerrit.ovirt.org/1022
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