Bug 2096427 - OSP17 dry run fails due to missing overcloud.json file
Summary: OSP17 dry run fails due to missing overcloud.json file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates
Version: 17.0 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: beta
: 17.0
Assignee: Rabi Mishra
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-06-13 19:12 UTC by David Rosenfeld
Modified: 2022-09-21 12:22 UTC (History)
8 users (show)

Fixed In Version: openstack-tripleo-heat-templates-14.3.1-0.20220701162329.dd13d73.el9ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:22:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 845887 0 None master: MERGED tripleo-heat-templates: Render all_nodes_data in check mode (If4945d4b50262ef3adf1cd555e51039a98cdc433) 2022-07-05 20:10:03 UTC
OpenStack gerrit 847820 0 None stable/wallaby: MERGED tripleo-heat-templates: Render all_nodes_data in check mode (If4945d4b50262ef3adf1cd555e51039a98cdc433) 2022-07-05 20:10:09 UTC
Red Hat Issue Tracker OSP-15657 0 None None None 2022-06-13 19:20:21 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:22:52 UTC

Description David Rosenfeld 2022-06-13 19:12:17 UTC
Description of problem: A dry run is performed by executing ansible-playbook command with --check option. This fails with following error:

Could not find or access '/home/stack/overcloud-deploy/overcloud/config-download/overcloud/group_vars/overcloud.json



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


How reproducible: Every time


Steps to Reproduce: 
1. deploy overcloud with --stack-only and --setup-only options
2. Execute command: ansible-playbook --check --become -i /home/stack/overcloud-deploy/overcloud/config-download/overcloud/tripleo-ansible-inventory.yaml --key-file ~/.ssh/id_rsa_tripleo /home/stack/overcloud-deploy/overcloud/config-download/overcloud/deploy_steps_playbook.yaml

Note: executing the same command without the --check option is successful.
3.

Actual results: dry-run fails with error above.  


Expected results: dry-run is successful.


Additional info:

Comment 2 Brendan Shephard 2022-06-14 05:24:17 UTC
So, we're doing this before the overcloud has even been deployed then? I'm not sure what use that would actually be, since there would be nothing to check?

It looks like we probably don't export that file with stack-only setup-only. But I just wanted to clarify the use case as I can't envision a scenario where we would want to run ansible-playbook --check without a deployed environment to check against?

This should work without any changes after the overcloud has already been deployed though. We can probably add the steps in to create that file if there is a use case that I'm unaware of.

Comment 7 David Rosenfeld 2022-07-12 17:25:53 UTC
During Phase 3 execution of RHOS-17.0-RHEL-9-20220711.n.1 did not get the missing file during the dry run test

Comment 11 errata-xmlrpc 2022-09-21 12:22:30 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


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