tripleo-ansible/tripleo_ansible/roles/backup_and_restore/tasks
Juan Larriba 414c2dae80 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 14:18:19 +00:00
..
ceph_authentication.yml Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
ceph_backup.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
ceph_mgr_stop.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
ceph_mon_stop.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
ceph_nfs_stop.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
ceph_rgw_stop.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
db_backup.yml Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
main.yml Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
pacemaker_backup.yml BaR: Pacemaker config backup 2020-03-25 08:42:39 +01:00
run_backup.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
service_manager_pause.yml Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
service_manager_unpause.yml Fixed and rename task name, which does the opposite 2021-02-25 08:55:17 +00:00
setup_nfs.yml Use ansible_facts instead 2021-02-24 09:14:57 -07:00
setup_rear.yml Merge "Use ansible_facts instead" into stable/victoria 2021-03-04 18:36:58 +00:00