Bug 1664697

Summary: Inventory refresh of a VM resets the Operating System name collected from SmartState Analysis
Product: Red Hat CloudForms Management Engine Reporter: Peter McGowan <pmcgowan>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: CLOSED DUPLICATE QA Contact: Sudhir Mallamprabhakara <smallamp>
Severity: high Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: agrare, bodnopoz, dmetzger, jfrey, jhardy, mperina, obarenbo, simaishi, smallamp
Target Milestone: GA   
Target Release: 5.10.z   
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: 2019-07-02 18:33:49 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: CFME Core Target Upstream Version:
Embargoed:

Description Peter McGowan 2019-01-09 13:33:43 UTC
Description of problem:
If a SmartState Analysis of a RHV VM is performed, the Operating System full name is populated in the WebUI (for example "CentOS Linux release 7.2.1511 (Core)". This seems to be populated from the vm.operating_system.product_name association/attribute.

If a subsequent provider refresh is performed this is however reset back to the generic Operating System name (for example "rhel_7x64")

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

How reproducible:
Every Time

Steps to Reproduce:
1. In the Ops UI view for a RHV VM that hasn't had a SmartState Analysis run, observe the Operating System type. It should be a generic name such as 'rhel_7x64'.
2. Perform a SmartState Analysis of the VM
3. Observe afterwards that the Operating System field for the VM details in the Ops UI now shows the operating system full name
4. Perform a 'Refresh Relationships and Power States' of the same VM

Actual results:
Observe that the Operating System field for the VM details in the Ops UI has been reset back to the generic name

Expected results:
The more detailed operating system name retrieved from SmartState Analysis should still be shown.

Additional info:
Only tested on a RHV provider VM so unknown whether this also affects VMs from other providers.

Comment 5 Adam Grare 2019-03-05 14:41:26 UTC
https://github.com/ManageIQ/manageiq/pull/18477

Comment 6 Satoe Imaishi 2019-07-02 18:33:49 UTC

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