From 46d430ee5015c707b19ca86c7977e8999b0c7ea9 Mon Sep 17 00:00:00 2001 From: Juan Pablo Lopez Date: Wed, 14 Apr 2021 16:58:20 +0000 Subject: [PATCH] Adding backup-and-restore validation group - adding backup-and-restore to groups.yaml - editing playbook to add backup-and-restore as group: * ceph-health.yaml * container-status.yaml * healthcheck-service-status.yaml * image-serve.yaml * neutron-sanity-check.yaml * nova-status.yaml * pacemaker-status.yaml * undercloud-service-status.yaml Conflicts: role-addition.yaml Caused by an out of order cherry pick of new validations init role Change-Id: I6167f65837ba5e96243b20a3661008d1805eedd5 (cherry picked from commit abea077c294170562f686a8f0e38f09a63263a2d) --- doc/source/index.rst | 1 + groups.yaml | 4 ++++ playbooks/ceph-health.yaml | 1 + playbooks/container-status.yaml | 1 + playbooks/healthcheck-service-status.yaml | 1 + playbooks/image-serve.yaml | 1 + playbooks/neutron-sanity-check.yaml | 1 + playbooks/nova-status.yaml | 1 + playbooks/pacemaker-status.yaml | 1 + playbooks/undercloud-service-status.yaml | 1 + 10 files changed, 13 insertions(+) diff --git a/doc/source/index.rst b/doc/source/index.rst index b8824212b..93044990e 100644 --- a/doc/source/index.rst +++ b/doc/source/index.rst @@ -68,6 +68,7 @@ Existing Validations validations-pre-update-run-details validations-pre-update-converge-details validations-post-update-details + validations-backup-and-restore-details Existing Roles and Modules ========================== diff --git a/groups.yaml b/groups.yaml index dc85395d4..48bed336d 100644 --- a/groups.yaml +++ b/groups.yaml @@ -8,6 +8,10 @@ prep: - description: >- Validations check the hardware configuration of the Undercloud node and should be run before **openstack undercloud install**. +backup-and-restore: + - description: >- + Validations which should be run to validate your OpenStack + deployment before you backup it and after restore it. openshift-on-openstack: - description: >- Validations which will check that the environment meets the requirements diff --git a/playbooks/ceph-health.yaml b/playbooks/ceph-health.yaml index 91d2a51ce..3cbf995df 100644 --- a/playbooks/ceph-health.yaml +++ b/playbooks/ceph-health.yaml @@ -7,6 +7,7 @@ Uses `ceph health` to check if cluster is in HEALTH_WARN state and prints a debug message. groups: + - backup-and-restore - post-deployment - post-ceph tripleo_delegate_to: "{{ groups['ceph_mon'] | default([]) }}" diff --git a/playbooks/container-status.yaml b/playbooks/container-status.yaml index c6dd37820..ab5fe0d66 100644 --- a/playbooks/container-status.yaml +++ b/playbooks/container-status.yaml @@ -6,6 +6,7 @@ description: | Detect failed containers and raise an error. groups: + - backup-and-restore - pre-upgrade - pre-update - post-deployment diff --git a/playbooks/healthcheck-service-status.yaml b/playbooks/healthcheck-service-status.yaml index 31ddc7fa5..bd1583fd4 100644 --- a/playbooks/healthcheck-service-status.yaml +++ b/playbooks/healthcheck-service-status.yaml @@ -6,6 +6,7 @@ description: | Check for failed healthcheck systemd services. groups: + - backup-and-restore - post-deployment retries_number: 1 delay_number: 1 diff --git a/playbooks/image-serve.yaml b/playbooks/image-serve.yaml index a9adba569..7446045d3 100644 --- a/playbooks/image-serve.yaml +++ b/playbooks/image-serve.yaml @@ -6,6 +6,7 @@ description: | Ensures image-serve vhost is configured and httpd is running. groups: + - backup-and-restore - pre-upgrade - post-deployment - post-upgrade diff --git a/playbooks/neutron-sanity-check.yaml b/playbooks/neutron-sanity-check.yaml index 344120478..90a3bac9e 100644 --- a/playbooks/neutron-sanity-check.yaml +++ b/playbooks/neutron-sanity-check.yaml @@ -12,6 +12,7 @@ to the Neutron services. groups: + - backup-and-restore - post-deployment roles: diff --git a/playbooks/nova-status.yaml b/playbooks/nova-status.yaml index b16b37541..05f7ccfc8 100644 --- a/playbooks/nova-status.yaml +++ b/playbooks/nova-status.yaml @@ -17,6 +17,7 @@ 1 -> At least one check encountered an issue and requires further investigation. This is considered a warning but the upgrade may be OK. 2 -> There was an upgrade status check failure that needs to be investigated. This should be considered something that stops an upgrade. groups: + - backup-and-restore - pre-upgrade roles: - nova_status diff --git a/playbooks/pacemaker-status.yaml b/playbooks/pacemaker-status.yaml index d6e620cc1..78c7db210 100644 --- a/playbooks/pacemaker-status.yaml +++ b/playbooks/pacemaker-status.yaml @@ -12,6 +12,7 @@ This validation fails if pacemaker service is found failed or inactive. groups: + - backup-and-restore - post-deployment roles: - pacemaker_status diff --git a/playbooks/undercloud-service-status.yaml b/playbooks/undercloud-service-status.yaml index 3de401ea6..e814d4e83 100644 --- a/playbooks/undercloud-service-status.yaml +++ b/playbooks/undercloud-service-status.yaml @@ -6,6 +6,7 @@ description: | Check undercloud status before running a stack update - especially minor update and major upgrade. groups: + - backup-and-restore - post-upgrade - pre-upgrade - post-update