Bug 1334789
| Summary: | Storage information was wiped out after running SSA on the VM of VMWare providers | ||
|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | Hui Song <hsong> |
| Component: | Providers | Assignee: | Adam Grare <agrare> |
| Status: | CLOSED ERRATA | QA Contact: | Satyajit Bulage <sbulage> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 5.4.0 | CC: | agrare, gblomqui, hsong, jfrey, jhardy, obarenbo, roliveri, simaishi |
| Target Milestone: | GA | ||
| Target Release: | 5.6.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | vm:smartstate | ||
| Fixed In Version: | 5.6.0.8 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-06-29 16:01:05 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Hui Song
2016-05-10 14:24:24 UTC
Adam has investigated this issue and found the reason. The problem appears to be when building the initial inventory cache we "Fix Up" all VMs to add a 'summary/config/vmLocalPathName' property. This is meant to take the VmPathName "[NFS Share] CFME (Agrare)/CFME (Agrare).vmx" and make it look more like the datastore URL "ds:///vmfs/volumes/c84ed2d3-b76003e0/". What it does is take the Datastore name from the VmPathName (i.e.: "NFS Share") and looks up the datastore by name to get the summary url. If you have more than one datastore with the same name it will get the wrong summary url, and VMs will be linked to the wrong storage after the initial refresh. The storage_id is sometimes nil after a targeted refresh if the wrong datastore isn't in the list of storages returned for the targeted refresh. New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/ad2fc3bc7f767169aa2689e16144210cc5caf906 commit ad2fc3bc7f767169aa2689e16144210cc5caf906 Author: Adam Grare <agrare> AuthorDate: Mon May 16 14:43:47 2016 -0400 Commit: Adam Grare <agrare> CommitDate: Mon May 16 15:20:13 2016 -0400 Fix for VM linked to incorrect Storage If there are multiple different Storages in the environment with the same name, the vmLocalPathName will only point to one of them due to a hash collision when using the datastore name as a key. To fix this we use the MOR from the vm_inv['datastore'] property instead of trying to find the storage_uid from the vmLocalPathName when looking for the datastore the VM resides on. https://bugzilla.redhat.com/show_bug.cgi?id=1334789 .../vmware/infra_manager/refresh_parser.rb | 58 +++------------------- 1 file changed, 7 insertions(+), 51 deletions(-) Both the VMs are on correct storage after running SmartState Analysis on it. Verified Version:-5.6.0.8-rc1.20160524155303_f2a5a50 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, 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-2016:1348 |