Bug 1553808 - [RHV] SSA is not retrieving file information from VM on RHV
Summary: [RHV] SSA is not retrieving file information from VM on RHV
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: SmartState Analysis
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: GA
: 5.10.0
Assignee: Hui Song
QA Contact: Radim Hrazdil
URL:
Whiteboard: rhev
: 1528419 (view as bug list)
Depends On:
Blocks: 1578121
TreeView+ depends on / blocked
 
Reported: 2018-03-09 15:10 UTC by Jan Zmeskal
Modified: 2021-09-09 13:22 UTC (History)
10 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1578121 (view as bug list)
Environment:
Last Closed: 2019-02-11 14:08:34 UTC
Category: ---
Cloudforms Team: RHEVM
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github ManageIQ manageiq pull 17331 0 None None None 2018-04-30 13:57:50 UTC

Description Jan Zmeskal 2018-03-09 15:10:41 UTC
Description of problem:
After performing SSA on RHV VM, Files count in VM's summary is 0.

Version-Release number of selected component (if applicable):
CFME 5.9.0.22.20180221205805_f93a675
RHV 4.1.10

How reproducible:
100 %

Steps to Reproduce:
1. Have a VM on RHV provider within CFME (Don't forget to set VM's management engine relationship).
2. Make sure that VM will use "sample" analysis profile. That one is shipped with CFME and should include pretty much everything. It also specifies some concrete files.
3. Perform SSA for the VM.

Actual results:
After SSA is finished (checked in Tasks view), file count in VM's summary page is 0. 

Expected results:
I would expect to get info on the files.

Additional info:
Info about VM under test:
OS: RHEL7.4
Storage type: NFS

Might be connected to this bug, although I don't think it's a duplicate:
https://bugzilla.redhat.com/show_bug.cgi?id=1533590

Attached are rhevm.log and evm.log from the appliance while SSA was performed.

Name of VM under test: jzmeskal_ssa_2

Comment 7 Jan Zmeskal 2018-03-13 10:27:19 UTC
Hi Hui, 

I am like 99 % sure that I assigned "sample" analysis profile to the VM before running SSA. If you want, I can double-check and do reproduction according to the manual step by step.

Jan

Comment 8 Hui Song 2018-03-13 13:12:52 UTC
Hi, Jan,

Please retry the profile configuration and make sure:
1. In UI page, the selected vm will have a shield icon on it if profile is set correctly;
2. In evm.log, the category in job option should contain 'profiles';

Thanks,

Comment 9 Ilanit Stein 2018-03-13 14:21:05 UTC
Hi Hui,

When I tested VM SSA recently, I did not follow the instructions you mentioned.
For another CFME (10.35.163.107), where I already run VM SSA, and files were not collected,
I followed the instructions, once with profile "new", and once with profile "Default", however the files were not collected.

This is the VM I've run SSA on: "cfme-5.9.0.22-iscsi-2", on RHV provider "rhv-4.1".  
It is also the CFME VM.
It is ISCSI storage based, and I already run SSA on it in the past, but not with the above instructions.

It might be that I missed something, when I followed the instructions.
I suspect that since you mention there should be a shield icon on the VM icon,
and I do not see it.

Can you please take a look?

As you tested it, and it worked for you, it might be just a matter of wrong settings. 

Thanks.

Comment 10 Hui Song 2018-03-13 19:25:42 UTC
Hi, Ilanit,

The profile name has to be 'default', rather than 'Default'. I went through the scanning profile logic. The profile is only honored when its name is 'default'.

After I corrected it, now files information is retrieved.

Thanks,

Comment 11 Jan Zmeskal 2018-03-14 08:13:24 UTC
Hi Hui,

I am not sure if I understand it here. Does it mean the the _only_ analysis profile that is respected during execution of SSA for VM is that named exactly "default"?

Comment 12 Hui Song 2018-03-14 12:43:47 UTC
Yes, even it sounds strange, but it true. Only the profile named 'default' is taken.

Comment 13 Rich Oliveri 2018-03-14 14:26:47 UTC
That is, unless a specific profile is selected during policy resolution for the SSA request.

Comment 19 Hui Song 2018-03-14 16:23:17 UTC
No, I'll work on this to respect the profile if user defines a one.

Comment 20 Hui Song 2018-04-20 12:25:07 UTC
*** Bug 1528419 has been marked as a duplicate of this bug. ***

Comment 21 Hui Song 2018-04-30 13:16:03 UTC
The fix is in PR: https://github.com/ManageIQ/manageiq/pull/17331

Comment 24 Radim Hrazdil 2018-06-28 17:32:20 UTC
Verified that SSA works for Analysis Profile named differently than 'default' as well as for 'default'. Files are collected correctly. Followed steps documented in 'Detailed reproduction'.

Version 5.10.0.0.20180613200131_887cc81


Note You need to log in before you can comment on or make changes to this bug.