Bug 1955562 - Backup and Restore: Backup openstack client integration - openstack backup using bad nfs server address is not erroring out
Summary: Backup and Restore: Backup openstack client integration - openstack backup us...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: tripleo-ansible
Version: 16.2 (Train)
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: z2
: 16.2 (Train on RHEL 8.4)
Assignee: Juan Badia Payno
QA Contact: Sree
URL:
Whiteboard:
Depends On:
Blocks: 1824806
TreeView+ depends on / blocked
 
Reported: 2021-04-30 12:01 UTC by myadla
Modified: 2022-03-23 22:29 UTC (History)
7 users (show)

Fixed In Version: tripleo-ansible-0.8.1-2.20210714224810.3670515.el8ost, openstack-tripleo-heat-templates-11.6.1-2.20210714224810.d647156.el8ost
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-03-23 22:28:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 789611 0 None MERGED BnR Test NFS server conectivity & ubi-minimal container image 2021-06-02 06:54:28 UTC
OpenStack gerrit 790495 0 None MERGED Added the posibility of skipping the NFS ping test on the rear installation 2021-06-02 07:00:29 UTC
OpenStack gerrit 794071 0 None MERGED BnR Test NFS server conectivity & ubi-minimal container image 2021-06-08 14:10:22 UTC
OpenStack gerrit 794072 0 None MERGED Added the posibility of skipping the NFS ping test on the rear installation 2021-06-08 14:10:26 UTC
OpenStack gerrit 796441 0 None MERGED BnR Test NFS server conectivity & ubi-minimal container image 2021-06-28 11:51:43 UTC
OpenStack gerrit 796442 0 None MERGED Added the posibility of skipping the NFS ping test on the rear installation 2021-06-28 11:51:43 UTC
OpenStack gerrit 798112 0 None MERGED BnR Test NFS server conectivity & ubi-minimal container image 2021-06-29 09:35:46 UTC
OpenStack gerrit 798113 0 None MERGED Added the posibility of skipping the NFS ping test on the rear installation 2021-07-05 07:22:32 UTC
OpenStack gerrit 799370 0 None MERGED BnR Test NFS server conectivity & ubi-minimal container image 2021-07-23 14:08:45 UTC
OpenStack gerrit 799371 0 None MERGED Added the posibility of skipping the NFS ping test on the rear installation 2021-07-23 14:08:46 UTC
Red Hat Issue Tracker OSP-3501 0 None None None 2022-01-28 15:54:34 UTC
Red Hat Issue Tracker UPG-3303 0 None None None 2021-09-07 10:13:31 UTC
Red Hat Product Errata RHSA-2022:0995 0 None None None 2022-03-23 22:29:04 UTC

Description myadla 2021-04-30 12:01:59 UTC
Description of problem:
Backup and Restore: Backup openstack client integration - openstack backup using bad nfs server address is not erroring out

As a negative test, passed wrong nfs server address inorder to test the error message. But the test is passing without any errors

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.Create inventory file without nfs server in it
/home/stack/tripleo-inventory.yaml

2. Run 
$ openstack undercloud backup --setup-rear -- extra-vars {"tripleo_backup_and_restore_nfs_server": "10.20.30.40"}'

Actual results: Pass

Expected results: It should fail and error message should explain that the provided server is unreachable


Additional info:

Comment 10 Sree 2022-03-02 14:09:53 UTC
Error is now displayed:

TASK [backup-and-restore : Check NFS server IP] **********************************************************************************************************************************
fatal: [undercloud]: FAILED! => {"changed": true, "cmd": ["ping", "-c", "1", "10.20.30.40"], "delta": "0:00:10.013342", "end": "2022-03-02 14:07:02.377527", "msg": "non-zero return code", "rc": 1, "start": "2022-03-02 14:06:52.364185", "stderr": "", "stderr_lines": [], "stdout": "PING 10.20.30.40 (10.20.30.40) 56(84) bytes of data.\n\n--- 10.20.30.40 ping statistics ---\n1 packets transmitted, 0 received, 100% packet loss, time 0ms", "stdout_lines": ["PING 10.20.30.40 (10.20.30.40) 56(84) bytes of data.", "", "--- 10.20.30.40 ping statistics ---", "1 packets transmitted, 0 received, 100% packet loss, time 0ms"]}

PLAY RECAP ***********************************************************************************************************************************************************************
undercloud                 : ok=10   changed=5    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

/usr/share/ansible/tripleo-playbooks/prepare-undercloud-backup.yaml did not complete successfully.
Ansible playbook execution failed: ['ansible-playbook-3', '-u', 'root', '-i', '/home/stack/tripleo-inventory.yaml', '-v', '-t bar_setup_rear', '--extra-vars', "{'tripleo_backup_and_restore_nfs_server': '10.20.30.40'}", '-c', 'smart', '/usr/share/ansible/tripleo-playbooks/prepare-undercloud-backup.yaml'].


Verified on version 16.2

Comment 15 errata-xmlrpc 2022-03-23 22:28: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 (Moderate: Red Hat OpenStack Platform 16.2 (openstack-tripleo-heat-templates) security update), 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/RHSA-2022:0995


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