Bug 1523412 - Attempting to collect power status during retirement can cause exception
Summary: Attempting to collect power status during retirement can cause exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Providers
Version: 5.9.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: GA
: 5.10.0
Assignee: Daniel Berger
QA Contact: Dave Johnson
URL:
Whiteboard:
Depends On:
Blocks: 1523770 1523771
TreeView+ depends on / blocked
 
Reported: 2017-12-07 22:35 UTC by Daniel Berger
Modified: 2019-08-06 20:05 UTC (History)
6 users (show)

Fixed In Version: 5.10.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1523770 1523771 (view as bug list)
Environment:
Last Closed: 2018-06-21 20:55:09 UTC
Category: ---
Cloudforms Team: CFME Core
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.