Bug 1583241
Summary: | setroubleshoot-server dies trying to open SELinux policy file /sys/fs/selinux/policy | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Renaud Métrich <rmetrich> |
Component: | setroubleshoot | Assignee: | Vit Mojzis <vmojzis> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.5 | CC: | lvrabec, mezhang, mmalik, nduffy, plautrba, vmojzis |
Target Milestone: | rc | Keywords: | AutoVerified |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | setroubleshoot-3.2.30-6.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-08-06 13:00:39 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Renaud Métrich
2018-05-28 14:22:48 UTC
I guess you can't avoid some kind of backtrace on one or other side in these situations. But we could race to who will get the file first during pre-defined timeout like this: diff --git a/framework/src/setroubleshoot/server.py b/framework/src/setroubleshoot/server.py index e320ae2..b491578 100755 --- a/framework/src/setroubleshoot/server.py +++ b/framework/src/setroubleshoot/server.py @@ -698,8 +698,18 @@ def goodbye(database): audit2why.finish() def RunFaultServer(timeout=10): - # FIXME - audit2why.init() + + signal.alarm(timeout) + while True: + try: + audit2why.init() + signal.alarm(0) + break + except ValueError as e: + if "Device or resource busy" in str(e): + continue + raise e + global host_database, analysis_queue, email_recipients signal.signal(signal.SIGHUP, sighandler) 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/RHBA-2019:2168 |