Satellite 6.3 demo server... not showing openscap reports

Hi All,

Not sure if you can help me with this one. I’ve been trying to get openscap working for days and ran out of ideas.

Satellite 6.3 server not showing reports.

RHEL 7.5

satellite-installer-6.3.0.12-1.el7sat.noarch
installed foreman RPMS:
foreman-1.15.6.45-1.el7sat.noarch
foreman-proxy-1.15.6.6-1.el7sat.noarch
foreman-selinux-1.15.6.2-1.el7sat.noarch
foreman-installer-katello-3.4.5.32-1.el7sat.noarch
tfm-rubygem-foreman_remote_execution_core-1.0.6-1.fm1_15.el7sat.noarch
rubygem-foreman_scap_client-0.3.0-2.el7sat.noarch
foreman-cli-1.15.6.45-1.el7sat.noarch
tfm-rubygem-foreman-tasks-core-0.1.8-1.fm1_15.el7sat.noarch
foreman-compute-1.15.6.45-1.el7sat.noarch
tfm-rubygem-foreman_docker-3.1.0.3-1.fm1_15.el7sat.noarch
foreman-debug-1.15.6.45-1.el7sat.noarch
foreman-installer-1.15.6.11-1.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_bootdisk-0.1.3.3-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_docker-0.0.6-2.el7sat.noarch
tfm-rubygem-hammer_cli_foreman_tasks-0.0.12-1.fm1_15.el7sat.noarch
tfm-rubygem-foreman_hooks-0.3.14-1.fm1_15.el7sat.noarch
tfm-rubygem-foreman_remote_execution-1.3.7.2-1.fm1_15.el7sat.noarch
tfm-rubygem-foreman_openscap-0.7.13-1.fm1_15.el7sat.noarch
tfm-rubygem-hammer_cli_foreman-0.11.0.6-1.el7sat.noarch
ccicrhelsat1.us.crowncastle.com-foreman-proxy-1.0-1.noarch
tfm-rubygem-foreman_discovery-9.1.5.3-1.fm1_15.el7sat.noarch
foreman-postgresql-1.15.6.45-1.el7sat.noarch
ccicrhelsat1.us.crowncastle.com-foreman-client-1.0-1.noarch
puppet-foreman_scap_client-0.3.16-1.el7sat.noarch

A few minutes after I run smart-proxy-openscap-send

I see the error below in the production.log

2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_user_dropdown.html.erb (1.5ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Read fragment views/tabs_and_title_records-3 (0.0ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_organization_dropdown.html.erb (2.7ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_location_dropdown.html.erb (3.5ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_org_switcher.html.erb (6.6ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (2.5ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (8.7ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (0.6ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (2.6ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (1.5ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (1.1ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_submenu.html.erb (1.7ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Write fragment views/tabs_and_title_records-3 (0.4ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered home/_topbar.html.erb (30.5ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Rendered layouts/base.html.erb (31.3ms)
2018-08-10 06:37:38 45dcf2eb [app] [I] Completed 200 OK in 48ms (Views: 38.4ms | ActiveRecord: 2.4ms)
2018-08-10 06:37:38 88b2ccca [app] [I] Started GET “/javascripts/foreman_openscap/arf_reports.js” for 172.x.x.x at 2018-08-10 06:37:38 -0400
2018-08-10 06:37:38 88b2ccca [app] [F]
| ActionController::RoutingError (No route matches [GET] “/javascripts/foreman_openscap/arf_reports.js”):
| lib/middleware/tagged_logging.rb:18:in `call’

I tried to do a reinstall of tfm-rubygem-foreman_openscap but that did not help.I used commands below.
yum reinstall tfm-rubygem-foreman_openscap

foreman-rake db:migrate
foreman-rake db:seed
service httpd reload

Did you run installer after installing new packages ? If not then you should, and if in case you have upgraded packages then consider to run installer with upgrade flag.

Hi,
for any problems with Sat6, contacting RH support is the standard procedure.

With that being said, failure to fetch the js file is strange, but it does not affect the report uploading. smart-proxy-openscap-send command is used to send openscap reports from proxy spool and will not create any reports on the server if there are none in the spool. The reports end up in spool when smart proxy recieves a report but cannot send it to server due to conectivity problems. There are few debugging steps that you can take:

  1. SSH into a host you want to receive reports from and check /etc/foreman_scap_client/config.yaml, the file content should look something like this.

  2. run foreman_scap_client $policy_id while tailing proxy and server logs, where $policy_id comes from the config.yaml file. Any errors you see should point you closer to the problem.

Hi Ondrej_Prazak,

Thank you for the trouble-shooting information. I will give a try and if it does not help. I’ll contact RH support.

Hi upadhyeammit,

I don’t believe any files were updated.

Thank you.