Bug 1547228

Summary: AWS Smartstate Does Not Fail Gracefully if AMI To run Analysis Agent is Unavailable
Product: Red Hat CloudForms Management Engine Reporter: Jerry Keselman <jkeselma>
Component: SmartState AnalysisAssignee: Jerry Keselman <jkeselma>
Status: CLOSED CURRENTRELEASE QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact:
Priority: high    
Version: 5.8.0CC: akarol, cpelland, obarenbo
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:
: 1552290 (view as bug list) Environment:
Last Closed: 2019-02-11 13:59:04 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:
Bug Depends On:    
Bug Blocks: 1552290    

Description Jerry Keselman 2018-02-20 19:17:11 UTC
Description of problem:

When the AMI specified to run the Smartstate Analysis Engine on AWS is not available, there is no indication in the UI that a failure has occurred.  The job will appear to be running until it times out after 50 minutes.  There are basically two issues with this - 1) There should be an appropriate failure and error indicated in the UI.  2) The job that has been submitted on the AWS SQS queue should be removed.

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


How reproducible:

If the AMI specified in the production.yml file is not available, this will happen.


Steps to Reproduce:
1.
2.
3.

Actual results: Job times out.

Expected results: An error is shown in the UI and the job is removed from SQS.


Additional info:

Comment 2 Jerry Keselman 2018-02-20 19:19:40 UTC
The following PRs have been added to handle this issue:  

https://github.com/ManageIQ/manageiq-providers-amazon/pull/412

and

https://github.com/ManageIQ/manageiq-providers-amazon/pull/411.

THey should be backported to Gaprindashvili and Fine.

Comment 4 Satyajit Bulage 2018-11-06 10:39:04 UTC
Able to see the error message, after replacing correct AMI with wrong AMI image.

Verified Version: 5.10.0.22.20181030184024_26956a0