Description of problem: Backup and Restore: Backup openstack client integration - openstack backup with incorrect inventory should give proper error message Negative test is failing as expected however the error message doesn't give any instructions to resolve this. 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/inventory-new.yaml (Name should not be tripleo-inventory) 2.Run $ openstack undercloud backup --setup-nfs (undercloud) [stack@undercloud-0 ~]$ mv tripleo-inventory.yaml test-inventory.yaml │ (undercloud) [stack@undercloud-0 ~]$ openstack undercloud backup --setup-nfs │ Using /tmp/prepare-nfs-backup.yaml2eakwpz0ansible.cfg as config file │ [WARNING]: Unable to parse /home/stack/tripleo-inventory.yaml as an inventory source │ [WARNING]: No inventory was parsed, only implicit localhost is available │ [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match │ 'all' │ [WARNING]: Could not match supplied host pattern, ignoring: BackupNode │ │ PLAY [TripleO BackupNode NFS installation and configuration.] *********************************************************│ skipping: no hosts matched │ │ PLAY RECAP ************************************************************************************************************│ │ /usr/share/ansible/tripleo-playbooks/prepare-nfs-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_nfs_server', '-c', 'smart', '/usr/share/ansible/tripleo-playbooks/prepare-nfs-backup.yaml']. │ (undercloud) [stack@undercloud-0 ~]$ Actual results: Fail but there are no instructions found to resolve this Expected results: Fail - Expecting message that inventory file could not be found with the expected name and instructions on resolving this Additional info:
Verified on 16.2 by not providing an NFS server address and below message was observed. TASK [File shared server group exists and it has at least one server] ************************************************************************************************************ fatal: [localhost]: FAILED! => { "assertion": "nfs_server_group_name | default(\"BackupNode\") in groups", "changed": false, "evaluated_to": false, "msg": "There is no server on BackupNode groups" } PLAY RECAP *********************************************************************************************************************************************************************** localhost : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0 /usr/share/ansible/tripleo-playbooks/prepare-nfs-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_nfs_server', '-c', 'smart', '/usr/share/ansible/tripleo-playbooks/prepare-nfs-backup.yaml']. (undercloud) [stack@undercloud-0 ~]$ exit logout
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 16.2.2), 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/RHBA-2022:1001