Bug #24248
closedRun openscap scan on host error in "No template mapped to feature Run OpenSCAP scan"
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1599414
Description of problem: Clicking on Run openscap scan on host error in "No template mapped to feature Run OpenSCAP scan".
Version-Release number of selected component (if applicable):
Satellite 6.4 snap 11
How reproducible: always
Steps to Reproduce:
1. Navigate to Hosts -> All hosts
2. Click on any host to see details.
3. Click on Run OpenSCAP scan from dropdown near "schedule remote job"
Actual results:
Error on UI showing Oops, we're sorry but something went wrong ERF42-5962 [Foreman::Exception]: No template mapped to feature Run OpenSCAP scan
and production.log showed
2018-07-09T13:21:40 [W|app|b8014] Action failed
Foreman::Exception: ERF42-5962 [Foreman::Exception]: No template mapped to feature Run OpenSCAP scan
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.5.3/app/models/job_invocation_composer.rb:285:in `job_template'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.5.3/app/models/job_invocation_composer.rb:246:in `params'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.5.3/app/models/job_invocation_composer.rb:326:in `for_feature'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.5.3/app/controllers/job_invocations_controller.rb:138:in `prepare_composer'
/opt/theforeman/tfm/root/usr/share/gems/gems/foreman_remote_execution-1.5.3/app/controllers/job_invocations_controller.rb:42:in `create'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/abstract_controller/base.rb:186:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/action_controller/metal/rendering.rb:30:in `process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/actionpack-5.1.6/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/opt/theforeman/tfm-ror51/root/usr/share/gems/gems/activesupport-5.1.6/lib/active_support/callbacks.rb:108:in `block in run_callbacks'
/usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
Expected results: Run openscap scan on host should work.
Additional info:
Updated by The Foreman Bot over 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_openscap/pull/339 added
Updated by Ondřej Pražák over 6 years ago
- Subject changed from Run openscap scan on host error in "No template mapped to feature Run OpenSCAP scan" to Run openscap scan on host error in "No template mapped to feature Run OpenSCAP scan"
- Status changed from Ready For Testing to Closed
- Fixed in Releases foreman_openscap 0.10.2 added
Updated by Ondřej Pražák over 6 years ago
- Target version set to foreman_openscap 0.10.2