Bug 1654511

Summary: No route table subnet associations cause Amazon AWS Smartstate failure
Product: Red Hat CloudForms Management Engine Reporter: Christopher Brown <chris.brown>
Component: SmartState AnalysisAssignee: Hui Song <hsong>
Status: CLOSED ERRATA QA Contact: Satyajit Bulage <sbulage>
Severity: medium Docs Contact: Red Hat CloudForms Documentation <cloudforms-docs>
Priority: medium    
Version: 5.9.5CC: bmidwood, dmetzger, lavenel, mshriver, obarenbo, simaishi
Target Milestone: GA   
Target Release: 5.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.11.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-12-12 13:34:52 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:

Description Christopher Brown 2018-11-28 22:45:48 UTC
Description of problem:

When there are no route table subnet associations in AWS, SSA fails with the following error, which is misleading:

Smartstate analysis needs a VPC whose enableDnsSupport/enableDnsHostnames settings are true!

Some additional logic was recently added to detect if a gateway is present:

https://github.com/ManageIQ/manageiq-providers-amazon/commit/4df81dff80d8b63512e3cf04d808d8d090aba753#diff-cd84545274981012ba66a77b6c85cf48

and I think this code does not anticipate this condition.

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

How reproducible:
Always using the following steps

Steps to Reproduce:
1. Remove any associated subnets from route tables
2. Remove smartstate VM and associated resources in AWS (if they exist)
3. Run SSA

Additional info:

The error message should be updated to be more granular with regards to the error or if this is not possible, broader to encompass all checks that take place. Also product documentation.

Comment 3 Matouš Mojžíš 2019-07-25 13:24:44 UTC
Verified in 5.11.0.15. When there is no gateway or no valid route on gateway error "Smartstate analysis needs a VPC whose enableDnsSupport/enableDnsHostnames are true and valid gateway/route setting!" is displayed.

Comment 5 errata-xmlrpc 2019-12-12 13:34:52 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:4199