Description of problem: SmartState Analysis sometimes fails to find the /var/lib/rpm/Packages file as the path that it looks for get incorrectly changed to /usr/lib/rpm/Packages. An error is printed in evm.log: evm.log-20200418.gz:[----] E, [2020-04-17T12:34:56.415518 #29878:2b12acd7c5b4] ERROR -- : Q-task_id([job_dispatcher]) MIQExtract.extract File not found: '/usr/lib/rpm/Packages' This is reproducible when scanning an CFME 5.11 appliance, or possibly any RHEL system that has a /var mount point and where /lib is also a softlink to /usr/lib Version-Release number of selected component (if applicable): 5.11.5.0 How reproducible: every time Steps to Reproduce: 1. Download a CFME 5.11 VM on a network, leave powered off 2. From another (configured, region member) CFME Appliance, perform a SmartState Analysis of the first VM Actual results: No packages are discovered, "File not found: '/usr/lib/rpm/Packages'" found in evm.log Expected results: Software package list should be detected. Additional info:
This issue looks similar to that one https://bugzilla.redhat.com/show_bug.cgi?id=1825225
*** Bug 1836949 has been marked as a duplicate of this bug. ***
Hello, please, how it looks with fixing this bug? Thank you, mheppler
I can point my finger at myself, and https://github.com/ManageIQ/manageiq-smartstate/pull/117, which fixed a different problem, as responsible for this issue. When I (manually) back out this PR (as well as https://github.com/ManageIQ/manageiq-smartstate/pull/122, which fixed a typo in #117) on an appliance with a VM presenting this issue, the issue is bypassed. Now to come up with the reasoning behind it.
Still working on it.
Fixed by https://github.com/ManageIQ/manageiq-smartstate/pull/134
Fix deployed in latest version of manageiq-smartstate gem v0.6.0.
Done.
https://github.com/ManageIQ/manageiq/pull/20519
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 (Moderate: CloudForms 5.0.8 security, 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/RHSA-2020:4134