Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1517708

Summary: Compliance Policy 'show guide' option throws error
Product: Red Hat Satellite Reporter: hprakash
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED DUPLICATE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: mhulan, oprazak
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-27 11:46:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description hprakash 2017-11-27 09:43:21 UTC
Description of problem:

For a compliance policy, the 'Show guide' option throws 500 Internal server error

Version-Release number of selected component (if applicable):
# rpm -qa | grep satellite
satellite-installer-6.3.0.9-1.beta.el7sat.noarch
satellite-common-6.3.0-21.0.beta.el7sat.noarch
tfm-rubygem-foreman_theme_satellite-1.0.4.12-1.el7sat.noarch
satellite-cli-6.3.0-21.0.beta.el7sat.noarch
satellite-6.3.0-21.0.beta.el7sat.noarch
satellite-clone-1.1.4-1.el7sat.noarch

Snap 26


How reproducible:
Always

Steps to Reproduce:
1. Create a policy, webUI->Hosts->Policies->New Compliance Policy
2. Once created, for the created policy click on the 'Show guide' 
3. Above throws error



Actual results:

on webUI error displayed as-
Oops, we're sorry but something went wrong 500 Internal Server Error

Expected results:

Relevant Compliance Policy page should be displayed

Additional info:
/var/log/foreman/production.log says-

2017-11-27 14:52:28 c910f717 [app] [I] Started GET "/compliance/policies/1/parse" for 10.76.0.95 at 2017-11-27 14:52:28 +0530
2017-11-27 14:52:28 41a5d9e6 [app] [I] Current user: admin (administrator)
2017-11-27 14:52:28 c910f717 [app] [I] Processing by PoliciesController#parse as HTML
2017-11-27 14:52:28 c910f717 [app] [I]   Parameters: {"id"=>"1"}
2017-11-27 14:52:28 41a5d9e6 [app] [I] Completed 200 OK in 11ms (Views: 0.2ms | ActiveRecord: 1.0ms)
2017-11-27 14:52:28 c910f717 [app] [I] Current user: admin (administrator)
2017-11-27 14:52:28 c910f717 [app] [W] Action failed
 | RestClient::InternalServerError: 500 Internal Server Error
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:495:in `process_result'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:421:in `block in transmit'
 | /opt/rh/rh-ruby23/root/usr/share/ruby/net/http.rb:853:in `start'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:413:in `transmit'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:176:in `execute'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/request.rb:41:in `execute'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rest-client-1.8.0/lib/restclient/resource.rb:67:in `post'
 | /usr/share/foreman/lib/proxy_api/resource.rb:75:in `post'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman_openscap-0.7.10/app/lib/proxy_api/openscap.rb:28:in `policy_html_guide'

Comment 1 Marek Hulan 2017-11-27 11:46:21 UTC
yet another duplicate of BZ 1513326, check your proxy log but most likely it's old version of openscap, see https://bugzilla.redhat.com/show_bug.cgi?id=1513326#c1 and contact OpenSCAP developers for more details if needed.

*** This bug has been marked as a duplicate of bug 1513326 ***