Bug 2049444 - Undercloud upgrade CLi command: --reproduce-command option unrecognized
Summary: Undercloud upgrade CLi command: --reproduce-command option unrecognized
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-tripleoclient
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: mbollo
QA Contact: Jason Grosso
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-02-02 09:58 UTC by Jose Luis Franco
Modified: 2022-09-21 12:19 UTC (History)
7 users (show)

Fixed In Version: python-tripleoclient-16.4.1-0.20220407001042.0021766
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-09-21 12:18:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 827494 0 None NEW Add --reproduce-command option into Undercloud commands. 2022-02-12 15:34:44 UTC
OpenStack gerrit 832652 0 None NEW Add --reproduce-command option into Undercloud commands. 2022-03-08 15:12:18 UTC
Red Hat Issue Tracker OSP-12430 0 None None None 2022-02-02 10:11:04 UTC
Red Hat Issue Tracker UPG-4961 0 None None None 2022-02-02 10:11:07 UTC
Red Hat Product Errata RHEA-2022:6543 0 None None None 2022-09-21 12:19:23 UTC

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


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