Replace reproducer argument for consistency.

This patch replaces the reproducer argument in the
prepare_undercloud_deploy method for a reproduce_command
one, to be consistent with the same naming being used
in the tripleo_deploy.py library.

Also, this patch adds a release note for the exposition of
this new CLI option in the undercloud commands.

Change-Id: Iecfc42e93dfb4c20f381e13e19508b339b050379
This commit is contained in:
Jose Luis Franco Arza 2022-02-14 16:30:39 +01:00
parent 348437dfa2
commit 8b70b793b3
3 changed files with 14 additions and 4 deletions

View File

@ -0,0 +1,10 @@
---
features:
- |
Expose the existing --reproduce-command from `openstack tripleo deploy`
CLI in the Undercloud CLI commnads.
A new CLI option --reproduce-command is available for the `openstack
undercloud install` and `openstack undercloud upgrade` commands, which
creates an script, named ansible-playbook-command.sh, in the Undercloud's
deployment artifacts directory. This script allows running the Ansible
playbooks for deployment or upgrade in the same way the CLI command does.

View File

@ -157,7 +157,7 @@ class InstallUndercloud(command.Command):
force_stack_update=parsed_args.force_stack_update,
dry_run=parsed_args.dry_run,
inflight=inflight,
reproducer=parsed_args.reproduce_command,
reproduce_command=parsed_args.reproduce_command,
disable_container_prepare=parsed_args.disable_container_prepare)
self.log.warning("Running: %s" % ' '.join(cmd))
@ -220,7 +220,7 @@ class UpgradeUndercloud(InstallUndercloud):
no_validations=parsed_args.
no_validations,
verbose_level=self.app_args.verbose_level,
reproducer=parsed_args.reproduce_command,
reproduce_command=parsed_args.reproduce_command,
force_stack_update=parsed_args.force_stack_update)
self.log.warning("Running: %s" % ' '.join(cmd))
try:

View File

@ -433,7 +433,7 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=True,
verbose_level=1, yes=False,
force_stack_update=False, dry_run=False,
inflight=False,
reproducer=False,
reproduce_command=False,
disable_container_prepare=False):
"""Prepare Undercloud deploy command based on undercloud.conf"""
@ -802,7 +802,7 @@ def prepare_undercloud_deploy(upgrade=False, no_validations=True,
if inflight:
deploy_args.append('--inflight-validations')
if reproducer:
if reproduce_command:
deploy_args.append('--reproduce-command')
if disable_container_prepare: