Bug 1872954

Summary: Smart State Analysis fails for VMs having Direct LUNs attached on them
Product: Red Hat CloudForms Management Engine Reporter: Mihir Lele <mlele>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED ERRATA QA Contact: Niyaz Akhtar Ansari <nansari>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.11.6CC: dmetzger, jocarter, juwatts, obarenbo, simaishi
Target Milestone: GAKeywords: ZStream
Target Release: 5.11.9Flags: simaishi: cfme-5.11.z+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 5.11.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-05 22:04:52 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Mihir Lele 2020-08-27 03:31:02 UTC
Description of problem:

Smart State Analysis fails  for VMs that having Direct LUNs attached on them.
It fails with error: undefined method `first' for nil:NilClass


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


How reproducible: Always

Steps to Reproduce:
1. Attach a Direct LUN on a Vm
2. Run SSA aginst the same VM

Additional info:

1) The SSA works for the VM if direct LUN is not attached on the VM

2) One of the customers that faced this error showed me that SSA for working for VM that had direct LUN attached on it before upgrading cloudforms to 5.0. SO it seems that the issue is specific to the 5.0 version.

3) SSA performed on the cloudforms appliance VMs also fails due to this issue

Comment 3 Jerry Keselman 2020-09-08 14:57:14 UTC
Do we have an environment demonstrating this issue that I can access?  Thanks.

Comment 4 Jerry Keselman 2020-09-08 19:31:45 UTC
Also can we get this issue run again with DEBUG turned on, and then get access to the logs in question?  Thanks much.

Comment 8 Jerry Keselman 2020-09-18 18:46:03 UTC
Ok found the issue.  Thanks for the appliance Mihir.

Comment 9 Jerry Keselman 2020-09-18 18:56:41 UTC
Fixed by https://github.com/ManageIQ/manageiq-smartstate/pull/139.

Comment 10 Satoe Imaishi 2020-09-30 17:13:33 UTC
Jerry, the fix is in smartstate gem, so the usual process (backport to v0.3, release new version and bump in Gemfile) is needed.

Comment 14 Niyaz Akhtar Ansari 2020-11-02 06:43:00 UTC
Verifed in Version 5.11.9.0.20201007144602_3f931e3

Comment 18 errata-xmlrpc 2020-11-05 22:04:52 UTC
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 (CloudForms 5.0.9 bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4967