tripleo-ansible/tripleo_ansible/roles/backup_and_restore/tasks
Juan Larriba 72b53f1d5b Make execution of the backup idempotent
Currently, the playbook stops the services and the pacemaker to perform the backup. If the backup fails for whatever reason, the playbook cannot run again and fails due to the services being down. This patch fixes the issue in two directions. First, by using the block-always ansible feature, we ensure that whenever an error happens, the playbook will restart the pacemaker and the services before exiting.

The second direction is on the execution itself. By controlling certain actions, we ensure that the backup will be succesful not matter what state the services and the pacemaker are when the playbook is ran. This ensures success even in the case an operator stops the ansible execution manually (which will not trigger the 'always' condition).

BZ: #1954818
Change-Id: Id2aff61f219b0c4992f6f0045f1aba2c7d129758
(cherry picked from commit 9a865d1769)
2021-05-31 08:11:37 +00:00
..
ceph_authentication.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
ceph_backup.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
ceph_mgr_stop.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
ceph_mon_stop.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
ceph_nfs_stop.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
ceph_rgw_stop.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
db_backup.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
main.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
pacemaker_backup.yml BaR: Pacemaker config backup 2020-03-25 08:42:39 +01:00
pacemaker_unstandby.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
run_backup.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
service_manager_pause.yml Make execution of the backup idempotent 2021-05-31 08:11:37 +00:00
service_manager_unpause.yml Move the snapshots feature to optional/beta 2021-05-19 07:48:14 +00:00
setup_nfs.yml Use ansible_facts instead 2021-02-22 08:24:46 -07:00
setup_rear.yml After SFTP backup, the backup file and the iso must be deleted from the machine 2021-05-26 11:54:56 +00:00