Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1691109

Summary: RHV provider is recreating guest_devices on every refresh
Product: Red Hat CloudForms Management Engine Reporter: Jared Deubel <jdeubel>
Component: ProvidersAssignee: Boriso <bodnopoz>
Status: NEW --- QA Contact: Angelina Nikiforova <anikifor>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: high    
Version: 5.10.0CC: dmetzger, jfrey, jhardy, jocarter, mperina, mshriver, obarenbo
Target Milestone: GA   
Target Release: 5.10.z   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: Bug
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: RHEVM Target Upstream Version:

Description Jared Deubel 2019-03-20 21:34:13 UTC
Description of problem:

RHV provider is recreating guest_devices on every refresh. Looking at this deeper it appears that this is coming from a refresh worker for RHV:

 25648 | MIQ|16876|1r6|1r1220413|1r6|Redhat::InfraManager::Refresh|PHX.. |  | SELECT "guest_devices"."id" FROM "guest_devices"

It seems like we aren't picking up on existing records and instead creating new ones causing the guest_device table to grow large. Will be doing additional testing to reproduce this. 

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

How reproducible:

Steps to Reproduce:
1. Connect to RHV provider
2. refresh provider