Bug 2092120

Summary: OSP17 Heat stack creation with --setup-only fails with error No overcloud Hosts found
Product: Red Hat OpenStack Reporter: David Rosenfeld <drosenfe>
Component: python-tripleoclientAssignee: Rabi Mishra <ramishra>
Status: CLOSED ERRATA QA Contact: David Rosenfeld <drosenfe>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.0 (Wallaby)CC: cjeanner, hbrock, jslagle, mburns, ramishra, slinaber
Target Milestone: betaKeywords: Triaged
Target Release: 17.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-16.4.1-0.20220705111519.23dbe54.el9ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:22:13 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:

Description David Rosenfeld 2022-05-31 20:38:05 UTC
Description of problem: An overcloud deploy is performed that includes option --setup-only. The heat stack deploy fails with error:

  2022-05-31 18:05:46.033 85522 WARNING tripleoclient.export.utils [-] No data returned to export EndpointMapOverride from.: tripleoclient.exceptions.DeploymentError: No overcloud hosts were found in the current stack. Check the stack name and try again.[00m
2022-05-31 18:05:46.033 85522 WARNING tripleoclient.export.utils [-] No data returned to export ExtraHostFileEntries from.: tripleoclient.exceptions.DeploymentError: No overcloud hosts were found in the current stack. Check the stack name and try again.[00m
2022-05-31 18:05:46.033 85522 WARNING tripleoclient.export.utils [-] No data returned to export GlobalConfigExtraMapData from.: tripleoclient.exceptions.DeploymentError: No overcloud hosts were found in the current stack. Check the stack name and try again.[00m
2022-05-31 18:05:46.034 85522 WARNING tripleoclient.utils.utils [-] File /home/stack/overcloud-deploy/overcloud/config-download/overcloud/group_vars/overcloud.json was not found during export: tripleoclient.exceptions.DeploymentError: No overcloud hosts were found in the current stack. Check the stack name and try again.[00m
2022-05-31 18:05:46.034 85522 WARNING tripleoclient.export.utils [-] No data returned to export AllNodesExtraMapData from.: tripleoclient.exceptions.DeploymentError: No overcloud hosts were found in the current stack. Check the stack name and try again.[00m


Version-Release number of selected component (if applicable): RHOS-17.0-RHEL-9-20220526.n.0


How reproducible: Every time


Steps to Reproduce:
1. Deploy an overcloud. Include option --setup-only in the deploy command.
2.
3.

Actual results: Heat stack deploy fails with error above.


Expected results: Heat stack deploy is successful.


Additional info:

Comment 6 Kevin Carter 2022-06-01 12:04:16 UTC
I think the bug here is that the setup-only switch will fail if the stack isn't created. I think we should work on being able to detect the required stack data and provide a better error for operators. While folks familiar with heat can see we're missing information, at present, the error information is fairly cryptic for operators who may not be so familiar.

Comment 15 errata-xmlrpc 2022-09-21 12:22:13 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 (Release of components for Red Hat OpenStack Platform 17.0 (Wallaby)), 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/RHEA-2022:6543