Bug 1563796

Summary: xClarity: Error while execute the second refresh cycle
Product: Red Hat CloudForms Management Engine Reporter: Douglas Gabriel <dgouveia>
Component: ProvidersAssignee: Douglas Gabriel <dgouveia>
Status: CLOSED CURRENTRELEASE QA Contact: Rodney H. Brown <rbrown4>
Severity: high Docs Contact:
Priority: high    
Version: 5.9.0CC: cpelland, dgouveia, gblomqui, jfrey, jhardy, jprause, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.10.0.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1567278 (view as bug list) Environment:
Last Closed: 2019-02-11 14:06:18 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Lenovo Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1567278    

Description Douglas Gabriel 2018-04-04 17:44:14 UTC
Description of problem:
When execute the refresh for the first time all Network Devices and Ports are saved successfully, but, from the second time onwards, some Network Devices are deleted and sometimes the ports are duplicated.

How reproducible:
Managing a physical server that has more than one Network Device

Steps to Reproduce:
1. Manage some LXCA with a physical server with more than one Network device
2. Perform the first refresh cycle
3. Inspect the guest_devices table in database and see that all data is saved successfully
4. Perform the refresh cycle again
5. Inspect the guest_devices table and see that only one Network Device (device_type = "ethernet") is associated to the physical server and probably the ports are now with the same name (it doesn't occur all the times)

Comment 2 Dave Johnson 2018-04-04 17:44:43 UTC
Please assess the impact of this issue and update the severity accordingly.  Please refer to https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity for a reminder on each severity's definition.

If it's something like a tracker bug where it doesn't matter, please set the severity to Low.

Comment 3 Douglas Gabriel 2018-04-04 17:46:50 UTC
https://github.com/ManageIQ/manageiq/pull/17249

Comment 4 Douglas Gabriel 2018-04-05 13:47:51 UTC
The bug fix was moved to this another PR: https://github.com/ManageIQ/manageiq-providers-lenovo/pull/148

Comment 6 Douglas Gabriel 2018-04-12 18:30:00 UTC
PR based on GAPRINDASHVILI code:

https://github.com/ManageIQ/manageiq-providers-lenovo/pull/155

Comment 9 Rodney H. Brown 2018-09-25 14:02:41 UTC
Verified with 5.10.0.16.20180919151347_a0c9e02