Red Hat Bugzilla – Bug 1480595
Error on visiting the show guide button for oscap policy
Last modified: 2018-04-22 17:34:52 EDT
Created attachment 1312123 [details]
Description of problem:
Version-Release number of selected component (if applicable):
Satellite 6.3.0 snap 10
Steps to Reproduce:
1.Create a oscap Policy
2.Click on the show guide button , on the policy page
Oops, we're sorry but something went wrong undefined method `h' for #<ForemanOpenscap::Policy:0x007f1469c92848>
No error, guide should be displayed
Sanket, could you please upload the production.log? The trace would help greatly.
Ah, Sanket uploaded the trace in png, next time please copy it from production log, it helps copying paths :-)
Anyway it's clear that it was caused by rubocop fixes that automatically added h method to model where it's unavailable.
Created redmine issue http://projects.theforeman.org/issues/20599 from this bug
Upstream bug assigned to email@example.com
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/20599 has been resolved.
Satellite-6.3 Snap 16
1. Created policy
2. Clicked on show guide button
Clicking on show guide button shows 500 Internal server error.
Created attachment 1326957 [details]
screenshot of UI
Created attachment 1326958 [details]
log in production.log file
Nikhil, this is most likely caused by the issue in openscap package. Seems like http://projects.theforeman.org/issues/17839. Please verify version of openscap on you capsule
rpm -q openscap
if it's lower than 1.2.15, please upgrade it first. That's not a bug in Satellite. Otherwise please provide capsule logs.
Marek, I found openscap-1.2.14 version for latest rhel 7.4. So as dependency is from rhel base OS, we can't verify this bug unless we get 1.2.15 version in rhel.
# rpm -q openscap
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.4 (Maipo)
I agree that you can't verify this, but I don't think it should be considered FailedQA. I suggest you move it back to ON_QA. For the reference, this is an upstream fix in openscap project https://github.com/OpenSCAP/openscap/pull/745. You can file a bug against RHEL and set it as a blocker for this.
Moving this back to ON_QA...will verify this with openscap-1.2.15.
Created attachment 1388935 [details]
Moving the bug to ON_QA , because on the latest brew build for 7.4 zstream from comment #18 is still able to reproduce the issue.
Sanket, is this VERIFIED then? if so, we can close this out as CLOSED:CURRENTRELEASE
Yes , this is verified with the build shipped with 7.4.5
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.