Bug 1626458

Summary: undefined me thod `userid' for nil:NilClass during OpenSCAP scan
Product: Red Hat CloudForms Management Engine Reporter: Niladri Roy <niroy>
Component: SmartState AnalysisAssignee: Oved Ourfali <oourfali>
Status: CLOSED DUPLICATE QA Contact: Dave Johnson <dajohnso>
Severity: medium Docs Contact:
Priority: high    
Version: 5.9.0CC: cben, dmetzger, gblomqui, nshneor, obarenbo
Target Milestone: GA   
Target Release: 5.9.5   
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: 2018-09-12 12:09:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:

Description Niladri Roy 2018-09-07 11:40:16 UTC
Description of problem:
Openscap scan errors out with below

[----] E, [2018-09-06T15:30:34.140649 #26333:a2b14c] ERROR -- : MIQ(MiqSchedule#invoke_actions) [OpenSCAP scan] Attempting to run action [action_scan] on target [keith/wildfly-app], undefined method `userid' for nil:NilClass


Version-Release number of selected component (if applicable):
5.9.0.22

How reproducible:
everytime at Cu environment

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 8 Beni Paskin-Cherniavsky 2018-09-12 12:09:16 UTC
Logs not very informative:

[----] I, [2018-09-06T13:30:28.565404 #26325:a2b14c]  INFO -- : MIQ(MiqSchedule#invoke_actions) [OpenSCAP scan] invoking action: [scan] for target: [openshift3/ose-haproxy-router]
[----] E, [2018-09-06T13:30:28.569742 #26325:a2b14c] ERROR -- : MIQ(MiqSchedule#invoke_actions) [OpenSCAP scan] Attempting to run action [action_scan] on target [openshift3/ose-haproxy-router], undefined method `userid' for nil:NilClass

Luckily, we've seen this before, specifically with Schedules: bug 1559459.
Solved by https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/244, 
fix verified in 5.9.2.3 (5.9 bz 1566529)

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