tripleo-ansible/tripleo_ansible/roles
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
..
aide Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
backup_and_restore Make execution of the backup idempotent 2021-05-31 14:18:19 +00:00
login_defs Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
octavia_common Add support for Octavia amphora log offloading 2020-06-03 19:09:09 +00:00
octavia_controller_check Increase validity period of Octavia CA and certificates 2020-06-11 08:12:37 +02:00
octavia_controller_config Scan existing controllers on update to pick up existing certs/private keys 2020-05-26 15:21:09 +02:00
octavia_controller_post_config Add support for Octavia amphora log offloading 2020-06-03 19:09:09 +00:00
octavia_overcloud_config Make server group quota unlimited for Octavia 2021-02-05 12:11:07 +00:00
octavia_undercloud Move away from md5 digests in managing octavia amphora images 2021-04-28 12:32:37 -02:30
test_deps Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
test_package_action Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_bootstrap Fix bootstrap ansible_fact 2021-03-05 16:29:06 +00:00
tripleo_cellv2 Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_common Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_run_ansible Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_uuid Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ceph_work_dir Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_clients_install Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_config Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_image_build Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_image_prepare Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_manage Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_container_rm Replace podman commands by module 2020-05-11 13:05:38 +00:00
tripleo_container_stop Replace podman commands by module 2020-05-11 13:05:38 +00:00
tripleo_container_tag Convert docker molecule usage to podman 2020-04-30 09:55:18 -05:00
tripleo_create_admin Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_derived_parameters Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_firewall Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_ha_wrapper Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_hieradata Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_hosts_entries Merge "Write hosts entries per environment" into stable/victoria 2021-05-03 21:35:38 +00:00
tripleo_image_serve Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_kernel Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_keystone_resources Use openstack ansible collection instead of os_ modules 2021-05-02 09:10:21 +00:00
tripleo_lvmfilter Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_module_load Switch from handlers to tasks 2020-07-24 13:07:25 -06:00
tripleo_multipathd Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_network_config Fix tripleo_network config conditional 2021-05-19 09:49:04 +02:00
tripleo_nodes_validation Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_nova_image_cache Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_nvdimm Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ovs_dpdk Fix ovs_dpdk molecule job to work with stream node 2021-05-03 01:15:49 +00:00
tripleo_packages Fix molecule jobs to work with stream nodes 2021-05-02 09:12:12 +00:00
tripleo_persist Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_podman Remove redhat-8.2.yml var file 2021-05-06 06:03:29 +00:00
tripleo_provision_mcelog Use ansible_facts instead 2021-02-24 09:14:57 -07:00
tripleo_ptp Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_puppet_cache Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_redhat_enforce Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_securetty Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_ssh_known_hosts Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_sshd Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_systemd_wrapper Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_timemaster Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_timezone Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_transfer Use --ignore-times when transferring files via rsync 2021-04-15 13:30:14 +00:00
tripleo_upgrade_hiera Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tripleo_validations_package Use centos-8 stream for molecule jobs 2021-04-28 22:14:28 +03:00
tuned Use ansible_facts instead 2021-02-24 09:14:57 -07:00