OpenSCAP scan on RHEL7 client connected to Red Hat Satellite fails
Issue
OpenSCAP scan on RHEL7 client connected to Red Hat Satellite fails with following error
DEBUG: running: oscap xccdf eval --profile xccdf_org.ssgproject.content_profile_standard --results-arf /tmp/d20240506-22734-54t72y/results.xml /var/lib/openscap/content/96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d.xml
/usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:84:in `run_scan': undefined method `scrub' for #<String:0x00000001d1dfe8> (NoMethodError)
from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:77:in `scan'
from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:50:in `block in run_in_tmpdir'
from /usr/share/ruby/tmpdir.rb:88:in `mktmpdir'
from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:48:in `run_in_tmpdir'
from /usr/share/gems/gems/foreman_scap_client-0.5.2/lib/foreman_scap_client/base_client.rb:21:in `run'
from /usr/share/gems/gems/foreman_scap_client-0.5.2/bin/foreman_scap_client:14:in `<top (required)>'
from /usr/bin/foreman_scap_client:23:in `load'
from /usr/bin/foreman_scap_client:23:in `<main>'
Environment
- Red Hat Satellite 6.x
- Red Hat Enterprise Linux 7.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.