Bug 2052404
| Summary: | [OSP16.1]Export ceph authentication task fails during backup using ReaR | ||
|---|---|---|---|
| Product: | Red Hat OpenStack | Reporter: | Takemi Asakura <tasakura> |
| Component: | tripleo-ansible | Assignee: | Francesco Pantano <fpantano> |
| Status: | CLOSED ERRATA | QA Contact: | Joe H. Rahme <jhakimra> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 16.2 (Train) | CC: | fdiazbra, fpantano, jbadiapa, jlarriba, jpretori, lbezdick, ramishra |
| Target Milestone: | z4 | Keywords: | Triaged |
| Target Release: | 16.2 (Train on RHEL 8.4) | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | tripleo-ansible-0.8.1-2.20220318005241.d51ec13.el8ost | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-06-22 16:04:16 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: | |||
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.3 (Train)), 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:4793 |
Description of problem: When a customer tries to backup a Controller node with ceph monitor in ReaR, the "Export ceph authentication" task fails. ~~~ [error 13] error connecting to the cluster\nError: non zero exit code: 13: OCI runtime error" ~~~ The reason seems that the ceph cluster name has been changed from the default ceph, and the target cluster could not be specified by the ceph auth export command. /usr/share/ansible/roles/backup-and-restore/tasks/ceph_authentication.yml: ~~~ ... - name: Export ceph authentication shell: | set -o pipefail {{ tripleo_container_cli }} exec ceph-mon-{{ ansible_facts['hostname'] }} bash -c "ceph auth export" > {{ tripleo_backup_and_restore_ceph_auth_file }} become: true tags: - bar_create_recover_image ~~~ Could you please modify the ceph auth export command so that it can be run in an environment where the ceph cluster name has been changed from the default ceph? Version-Release number of selected component (if applicable): tripleo-ansible-0.7.1-2.20210603175840.el8ost.8.noarch How reproducible: Always Steps to Reproduce: If the Ceph cluster name is not the default ceph and running the playbook according to the following documentation[1], an event occur. [1] https://access.redhat.com/documentation/en-us/red_hat_openstack_platform/16.1/html-single/backing_up_and_restoring_the_undercloud_and_control_plane_nodes/index#proc_creating-a-backup-of-the-control-plane-nodes_backup-ctlplane 1. (undercloud) [stack@undercloud ~]$ cat <<'EOF' > ~/bar_rear_create_restore_images-controller.yaml # Playbook # Using ReaR on the control plane nodes. - become: true hosts: ceph_mon name: Backup ceph authentication tasks: - name: Backup ceph authentication role include_role: name: backup-and-restore tasks_from: ceph_authentication tags: - bar_create_recover_image - become: true hosts: Controller name: Create the recovery images for the control plane roles: - role: backup-and-restore EOF 2. (undercloud) [stack@undercloud ~]$ ansible-playbook \ -v -i ~/tripleo-inventory.yaml \ --extra="ansible_ssh_common_args='-o StrictHostKeyChecking=no'" \ --become \ --become-user root \ --tags bar_create_recover_image \ ~/bar_rear_create_restore_images-controller.yaml Actual results: The playbook will complete without failing. Expected results: Export ceph authentication task fails