Bug 2049444

Summary: Undercloud upgrade CLi command: --reproduce-command option unrecognized
Product: Red Hat OpenStack Reporter: Jose Luis Franco <jfrancoa>
Component: python-tripleoclientAssignee: mbollo
Status: CLOSED ERRATA QA Contact: Jason Grosso <jgrosso>
Severity: medium Docs Contact:
Priority: medium    
Version: 17.1 (Wallaby)CC: arcsingh, hbrock, jlarriba, jslagle, lbezdick, mbollo, mburns
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-16.4.1-0.20220407001042.0021766 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-09-21 12:18:58 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 Jose Luis Franco 2022-02-02 09:58:26 UTC
Description of problem:

When running the Undercloud upgrade command, it might be useful to obtain a reproducer-command to run the same Ansible playbooks. However, this option is only available at "openstack tripleo deploy" command, which is invoked from the same "openstack undercloud upgrade" command.

[stack@undercloud-0 ~]$ openstack undercloud upgrade --yes --reproduce-command
/usr/lib64/python3.6/site-packages/_yaml/__init__.py:23: DeprecationWarning: The _yaml extension module is now located at yaml._yaml and its location is subject to change.  To use the LibYAML-based parser and emitter, import from `yaml`: `from yaml import CLoader as Loader, CDumper as Dumper`.
  DeprecationWarning
/usr/lib/python3.6/site-packages/barbicanclient/__init__.py:61: UserWarning: The secrets module is moved to barbicanclient/v1 directory, direct import of barbicanclient.secrets will be deprecated. Please import barbicanclient.v1.secrets instead.
  % (name, name, name))
usage: openstack undercloud upgrade [--force-stack-update] [--no-validations]
                                    [--inflight-validations] [--dry-run] [-y]
                                    [--disable-container-prepare]
                                    [--skip-package-updates]
openstack undercloud upgrade: error: unrecognized arguments: --reproduce-command


It would be very useful to add such an option so that a reproducer script will be available after the execution:

Ansible execution failed. playbook: upgrade_steps_playbook.yaml, Run Status: failed, Return Code: 2, To rerun the failed command manually execute the following script: /home/stack/tripleo-deploy/undercloud/undercloud-ansible-hcsunkgu/ansible-playbook-command.sh  

NOTE: To be able to get this error output I had to get the whole "openstack tripleo deploy" command generated by "openstack undercloud upgrade" and add the --reproduce-command into it.

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 8 errata-xmlrpc 2022-09-21 12:18:58 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