Bug 1954079

Summary: Backup and Restore: Backup openstack client integration gives 8000 lines of output when passing --nfs-setup and --rear-setup
Product: Red Hat OpenStack Reporter: myadla
Component: python-tripleoclientAssignee: Juan Badia Payno <jbadiapa>
Status: CLOSED ERRATA QA Contact: myadla
Severity: low Docs Contact:
Priority: high    
Version: 16.2 (Train)CC: aschultz, elicohen, hbrock, jbadiapa, jlarriba, jslagle, mburns, myadla, nweinber
Target Milestone: gaKeywords: Triaged
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-tripleoclient-12.5.1-2.20210603180733.95feb7c.el8ost.1 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-15 07:14:29 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 myadla 2021-04-27 14:39:19 UTC
Description of problem:
Backup and Restore: Backup openstack client integration gives 8000 lines of output when passing --nfs-setup and --rear-setup

Listed commands below:

$ openstack undercloud backup --setup-nfs --inventory /home/stack/backup-inventory.yaml

$ openstack undercloud backup  --setup-rear 
--inventory /home/stack/backup-inventory.yaml


Version-Release number of selected component (if applicable): RHOS-16.2-RHEL-8-20210420.n.0, tripleo-ansible-0.6.1-2.20210323013845.00f09d9.el8ost.1.noarch

How reproducible: 100%


Steps to Reproduce:
1. Deploy openstack
2. Create an inventory file for your NFS server, undercloud, and overcloud in 
/home/stack/backup-inventory.yaml

3. Log onto the undercloud and run
$ openstack undercloud backup --setup-nfs --inventory /home/stack/backup-inventory.yaml ---> gives 8000 lines of ouptut


Actual results: 8000+ lines of output and is unformatted in JSON

Expected results: Formatted output with something concise. (PASS or FAIL)

Additional info:

Comment 1 Juan Badia Payno 2021-04-28 09:49:21 UTC
There is a patch to overwrite the default configuration of the output.

It can also be overwritten by,
ANSIBLE_STDOUT_CALLBACK=tripleo openstack undercloud backup --setup-nfs --inventory /home/stack/backup-inventory.yaml

Comment 9 errata-xmlrpc 2021-09-15 07:14:29 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 (Red Hat OpenStack Platform (RHOSP) 16.2 enhancement advisory), 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-2021:3483