Bug 974934 - Disable Selinux will cause unexpected error.
Summary: Disable Selinux will cause unexpected error.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-node
Version: unspecified
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Joey Boggs
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-17 07:47 UTC by Yaning Wang
Modified: 2013-11-28 13:51 UTC (History)
10 users (show)

Fixed In Version: ovirt-node-3.0.3
Clone Of:
Environment:
Last Closed: 2013-11-28 13:51:19 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Yaning Wang 2013-06-17 07:47:44 UTC
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:
100%

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 08:54:42 UTC
Catch the OSError when Set "SELinux" disabled:
http://gerrit.ovirt.org/#/c/15786/

Comment 2 Fabian Deutsch 2013-11-28 13:51:19 UTC
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.