Bug 651138

Summary: [abrt] firstaidkit-engine-0.2.17-1.fc14: openscap_api.py:548:init:AssertionError: Benchmark loading failed: /usr/share/openscap/scap-xccdf.xml
Product: [Fedora] Fedora Reporter: AndyE <badandye>
Component: firstaidkitAssignee: Martin Sivák <msivak>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 14CC: joel.granados, mbarabas, msivak, pvrabec
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:c4801ef7
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-03 10:11:18 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:
Attachments:
Description Flags
File: backtrace none

Description AndyE 2010-11-08 21:22:36 UTC
abrt version: 1.1.13
architecture: i686
cmdline: /usr/bin/python -tt /usr/bin/firstaidkit -g gtk
component: firstaidkit
executable: /usr/bin/firstaidkit
kernel: 2.6.35.6-45.fc14.i686
package: firstaidkit-engine-0.2.17-1.fc14
reason: openscap_api.py:548:init:AssertionError: Benchmark loading failed: /usr/share/openscap/scap-xccdf.xml
release: Fedora release 14 (Laughlin)
time: 1289251270
uid: 500

backtrace
-----
openscap_api.py:548:init:AssertionError: Benchmark loading failed: /usr/share/openscap/scap-xccdf.xml

Traceback (most recent call last):
  File "/usr/share/firstaidkit/frontend/frontend_gtk.py", line 71, in worker
    self._tasker.run()
  File "/usr/lib/python2.7/site-packages/pyfirstaidkit/interpret.py", line 158, in run
    != "False")):
  File "/usr/lib/python2.7/site-packages/pyfirstaidkit/plugins.py", line 676, in autorun
    for (step, rv) in p: #autorun all the needed steps
  File "/usr/lib/python2.7/site-packages/pyfirstaidkit/plugins.py", line 280, in next
    self.call(func)
  File "/usr/lib/python2.7/site-packages/pyfirstaidkit/plugins.py", line 168, in call
    r = getattr(self, step)()
  File "/usr/share/firstaidkit/plugins/openscap_plugin.py", line 56, in prepare
    self._objs = openscap.xccdf.init(self._xccdf)
  File "/usr/lib/python2.7/site-packages/openscap_api.py", line 548, in init
    assert benchmark.instance != None, "Benchmark loading failed: %s" % (f_XCCDF,)
AssertionError: Benchmark loading failed: /usr/share/openscap/scap-xccdf.xml

Local variables in innermost frame:
paths: {}
benchmark: <Oscap Object of type 'XCCDF Benchmark' at 0xa40e8cc>
self: <Oscap Object of type 'XCCDF Class' at 0xa407e0c>
f_XCCDF: '/usr/share/openscap/scap-xccdf.xml'
path: '/usr/share/openscap/scap-xccdf.xml'
dirname: '/usr/share/openscap'

How to reproduce
-----
1. run firstaidkit gui
2. check "run interactive, verbose and experimental features"
3. select Security audit and then start

Comment 1 AndyE 2010-11-08 21:22:38 UTC
Created attachment 458897 [details]
File: backtrace

Comment 2 Maros Barabas 2010-11-24 11:52:11 UTC
Assertion error will be fixed to raise exception.

Loading benchmark problem can be caused by non-existence of benchmark file. Please check if /usr/share/openscap/scap-xccdf.xml exists or if openscap-utils package is installed properly and please add openscap-utils package as requirement for firstaidkit-plugin-openscap or add condition of existence of this file.

Maros

Comment 3 Peter Vrabec 2010-12-03 10:11:18 UTC
fixed in openscap-0.6.5-1.fc14
https://admin.fedoraproject.org/updates/openscap-0.6.5-1.fc14