Bug 974934 - Disable Selinux will cause unexpected error.
Disable Selinux will cause unexpected error.
Product: oVirt
Classification: Community
Component: ovirt-node (Show other bugs)
Unspecified Linux
unspecified Severity medium
: ---
: ---
Assigned To: Joey Boggs
Depends On:
  Show dependency treegraph
Reported: 2013-06-17 03:47 EDT by Yaning Wang
Modified: 2013-11-28 08:51 EST (History)
10 users (show)

See Also:
Fixed In Version: ovirt-node-3.0.3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-11-28 08:51:19 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Yaning Wang 2013-06-17 03:47:44 EDT
Description of problem:

When use `edit-node` to install additional package into ovirt-node image and selinux in `disable` state.

A `OSError` will occur and block the operation.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:

1. 'SELINUX=DISABLED' in /etc/sysconfig/selinux
2. $ edit-node --repo=repo --install=some-package ovirt-node.iso

Actual results:

OSError will occur.

Expected results:

`selinux.security_getenforce()` this fucntion will throw OSError when selinux disabled. I think this error should be captured and give appropriate warning message instead breaking the process, in some case user need to disable the selinux.

Additional info:
Comment 1 haiyang,dong 2013-06-17 04:54:42 EDT
Catch the OSError when Set "SELinux" disabled:
Comment 2 Fabian Deutsch 2013-11-28 08:51:19 EST
This should be fixed in recent edit-node versions

Note You need to log in before you can comment on or make changes to this bug.