Bug 1523412

Summary: Attempting to collect power status during retirement can cause exception
Product: Red Hat CloudForms Management Engine Reporter: Daniel Berger <dberger>
Component: ProvidersAssignee: Daniel Berger <dberger>
Status: CLOSED CURRENTRELEASE QA Contact: Dave Johnson <dajohnso>
Severity: low Docs Contact:
Priority: low    
Version: 5.9.0CC: dberger, gblomqui, jfrey, jhardy, obarenbo, simaishi
Target Milestone: GAKeywords: TestOnly
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:
: 1523770 1523771 (view as bug list) Environment:
Last Closed: 2018-06-21 20:55:09 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:
Bug Depends On:    
Bug Blocks: 1523770, 1523771    

Description Daniel Berger 2017-12-07 22:35:00 UTC
Description of problem:

If a refresh happens in the middle of VM retirement, an exception can occur when  the app attempts to collect power state information for the VM that's been retired.


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

5.7, 5.8, 5.9


How reproducible:

Difficult, as this is a race condition between automate VM retirement and the refresher. You will only see it if the refresher attempts to collect information on the VM before the entry has been removed from the database.


Steps to Reproduce:
1. Retire Azure VM within appliance
2. Attempt refresh immediately afterwards


Actual results:

[----] E, [2017-11-30T15:57:37.803292 #86291:3fdc6d4317e4] ERROR -- : [Azure::Armrest::NotFoundException]: The entity was not found.  Method:[block in method_missing]

Expected results:

Refresh completes successfully

Comment 3 Dave Johnson 2017-12-07 22:46:18 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.