Bug 651138 - [abrt] firstaidkit-engine-0.2.17-1.fc14: openscap_api.py:548:init:AssertionError: Benchmark loading failed: /usr/share/openscap/scap-xccdf.xml
Summary: [abrt] firstaidkit-engine-0.2.17-1.fc14: openscap_api.py:548:init:AssertionEr...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firstaidkit
Version: 14
Hardware: i686
OS: Unspecified
low
medium
Target Milestone: ---
Assignee: Martin Sivák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c4801ef7
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-08 21:22 UTC by AndyE
Modified: 2010-12-03 10:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2010-12-03 10:11:18 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (1.33 KB, text/plain)
2010-11-08 21:22 UTC, AndyE
no flags Details

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


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