Bug 625468
Summary: | sealert --analyze together with --service or --browser hangs | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | David Kutálek <dkutalek> |
Component: | setroubleshoot | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | QA Contact: | Milos Malik <mmalik> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.0 | CC: | mgrepl, mmalik, syeghiay |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | setroubleshoot-3.0.38-2.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 09:46:31 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David Kutálek
2010-08-19 14:31:16 UTC
The same result with '-S' option instead of '-b' or '-s'. # sealert -a /var/log/audit/audit.log -S 0% done^CTraceback (most recent call last): File "/usr/lib/python2.6/site-packages/setroubleshoot/analyze.py", line 619, in task new_data = os.read(self.fileno, self.read_size) KeyboardInterrupt ^CTraceback (most recent call last): File "/usr/bin/sealert", line 1000, in <module> do_analyze_logfile(logfile, html) File "/usr/bin/sealert", line 830, in do_analyze_logfile scanner.scan_file() File "/usr/bin/sealert", line 810, in scan_file self.main_loop.run() KeyboardInterrupt # # sealert -a /var/log/audit/audit.log -l 0% done^CTraceback (most recent call last): File "/usr/lib/python2.6/site-packages/setroubleshoot/analyze.py", line 619, in task new_data = os.read(self.fileno, self.read_size) KeyboardInterrupt ^CTraceback (most recent call last): File "/usr/bin/sealert", line 1000, in <module> do_analyze_logfile(logfile, html) File "/usr/bin/sealert", line 830, in do_analyze_logfile scanner.scan_file() File "/usr/bin/sealert", line 810, in scan_file self.main_loop.run() KeyboardInterrupt # sealert -a /var/log/audit/audit.log -H 0% done^CTraceback (most recent call last): File "/usr/lib/python2.6/site-packages/setroubleshoot/analyze.py", line 619, in task new_data = os.read(self.fileno, self.read_size) KeyboardInterrupt ^CTraceback (most recent call last): File "/usr/bin/sealert", line 1000, in <module> do_analyze_logfile(logfile, html) File "/usr/bin/sealert", line 830, in do_analyze_logfile scanner.scan_file() File "/usr/bin/sealert", line 810, in scan_file self.main_loop.run() KeyboardInterrupt # I would prefer to push off setroubleshoot to see how well the redesign in Fedora 15 goes, and then update to that package in 6.2. I would prefer to push off setroubleshoot to see how well the redesign in Fedora 15 goes, and then update to that package in 6.2. Fixed in setroubleshoot-3.0.31-1.el6 Clearing qa_ack, setroubleshoot has been removed from 6.2 approved list. Ok, the problem is also the new setroubleshoot does not have this ability. I think we could add it but I believe is too late for RHEL6.2. So I would just add a "fix" which will say "do not use -a or --analyze option with other options" Something like if sys.argv.count('-a') > 0: if valid_opts.count(sys.argv[-1]) == 0: last = True + else: + print >> sys.stderr, "-a or --analyze option can not be used with an other option" + usage() + sys.exit(3) (In reply to comment #13) > Ok, the problem is also the new setroubleshoot does not have this ability. I > think we could add it but I believe is too late for RHEL6.2. > > So I would just add a "fix" which will say "do not use -a or --analyze option > with other options" Not ideal, but still better than hang. If closing bug this way, please fill new one requesting at least -a and -b working together (seems to me usefull). Fixed in setroubleshoot-3.0.38-2.el6 David, I agree with you and I will open a new bug on RHEL6.3. 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/RHBA-2011-1509.html |