Bug 1873707 - [RFE] Backup and Restore: Integrate the validation framework within the workflow of the backup and restore procedures
Summary: [RFE] Backup and Restore: Integrate the validation framework within the workf...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: validations-common
Version: 17.1 (Wallaby)
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: beta
: 17.1
Assignee: Fernando Díaz
QA Contact: David Rosenfeld
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-29 10:58 UTC by Juan Badia Payno
Modified: 2023-08-16 01:10 UTC (History)
12 users (show)

Fixed In Version: validations-common-1.4.1-0.20211119004103.464b70d.el9ost
Doc Type: Enhancement
Doc Text:
With this update, you can use the validation framework in the workflow of backup and restore procedures to verify the status of the restored system. The following validations are included: * `undercloud-service-status` * `neutron-sanity-check` * `healthcheck-service-status` * `nova-status` * `ceph-health` * `check-cpu` * `service-status` * `image-serve` * `pacemaker-status` * `validate-selinux` * `container-status`
Clone Of:
Environment:
Last Closed: 2023-08-16 01:09:23 UTC
Target Upstream Version:
Embargoed:
fdiazbra: needinfo-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 786285 0 None MERGED Adding backup-and-restore validation group 2021-05-17 08:02:21 UTC
OpenStack gerrit 786438 0 None MERGED Adding backup-and-restore validation group 2021-05-17 08:02:21 UTC
Red Hat Issue Tracker OSP-2910 0 None None None 2022-01-04 15:41:51 UTC
Red Hat Issue Tracker OSPBR-271 0 None None None 2021-09-30 14:59:32 UTC
Red Hat Issue Tracker UPG-3317 0 None None None 2021-09-07 10:16:58 UTC
Red Hat Product Errata RHEA-2023:4577 0 None None None 2023-08-16 01:10:54 UTC

Description Juan Badia Payno 2020-08-29 10:58:28 UTC
There is validation framework that can be used to validate the stack. So let's use it.
- Use the validation framework to ensure that the environment is in a good shape to back it up.
- Use the validation framework once control-plane or the undercloud were restored to validate that everything is ok.

Comment 1 Juan Pablo Lopez Guzman 2021-06-21 15:55:16 UTC
This feature groups the following existing validations under the 'backup-and-restore' validation group:

tripleo-validations:

  * ceph-health
  * container-status
  * healthcheck-service-status
  * image-serve
  * neutron-sanity-check
  * nova-status
  * pacemaker-status
  * undercloud-service-status

validations-common:
  * check-cpu
  * service-status
  * validate-selinux

Comment 13 David Rosenfeld 2023-04-28 13:26:49 UTC
Backup and restore validation group executes. The one failed validation is a problem with the validator and is tracked by: https://bugzilla.redhat.com/show_bug.cgi?id=2187307

validation run --group backup-and-restore -i /home/stack/config-download/overcloud/tripleo-ansible-inventory.yaml
Validation config file found: /etc/validation.cfg
+--------------------------------------+----------------------------+--------+--------------------------+----------------------------------------------------------------------------------------------------+-------------------+-------------+------------------------------------+
| UUID                                 | Validations                | Status | Host_Group               | Status_by_Host                                                                                     | Unreachable_Hosts | Duration    | Reasons                            |
+--------------------------------------+----------------------------+--------+--------------------------+----------------------------------------------------------------------------------------------------+-------------------+-------------+------------------------------------+
| d76e974a-ccb3-42ff-a722-a2baa065e867 | undercloud-service-status  | PASSED | undercloud               | undercloud                                                                                         |                   | 0:00:00.493 |                                    |
| 17e265d0-bf0d-4e0a-8b64-cc16017a260b | neutron-sanity-check       | PASSED | Controller               | controller-0, controller-1, controller-2                                                           |                   | 0:00:02.359 |                                    |
| 235a997d-1d1f-4601-8787-c9c3f0573668 | healthcheck-service-status | PASSED | undercloud, allovercloud | ceph-0, ceph-1, ceph-2, compute-0, compute-1, controller-0, controller-1, controller-2, undercloud |                   | 0:00:02.053 |                                    |
| feff035c-1e88-45da-b23b-a559fba50e5a | nova-status                | PASSED | nova_api                 | controller-0, controller-1, controller-2                                                           |                   | 0:00:03.419 |                                    |
| 52440320-0610-486d-a78b-b41e5f0abecc | ceph-health                | FAILED | ceph_mon                 | controller-0, controller-1, controller-2                                                           |                   | 0:00:02.606 | controller-0: non-zero return code |
|                                      |                            |        |                          |                                                                                                    |                   |             | ,                                  |
|                                      |                            |        |                          |                                                                                                    |                   |             | controller-1: non-zero return code |
|                                      |                            |        |                          |                                                                                                    |                   |             | ,                                  |
|                                      |                            |        |                          |                                                                                                    |                   |             | controller-2: non-zero return code |
|                                      |                            |        |                          |                                                                                                    |                   |             |                                    |
| 11f90c48-6233-47b9-89a3-ac6ce5d36bea | check-cpu                  | PASSED | localhost                | localhost                                                                                          |                   | 0:00:01.000 |                                    |
| 52065a8a-f92c-4f75-af85-1acf696bd88d | service-status             | PASSED | all                      | ceph-0, ceph-1, ceph-2, compute-0, compute-1, controller-0, controller-1, controller-2, undercloud |                   | 0:00:09.558 |                                    |
| 6f01e6bf-7ff1-429c-b11a-62785ceec6b4 | image-serve                | PASSED | undercloud               | undercloud                                                                                         |                   | 0:00:01.776 |                                    |
| 2f5fec69-4dcf-4ddd-9b2f-dd2db4818f5a | pacemaker-status           | PASSED | Controller               | controller-0, controller-1, controller-2                                                           |                   | 0:00:02.038 |                                    |
| 82464b6a-749a-429f-aa45-f28af8916892 | validate-selinux           | PASSED | all                      | ceph-0, ceph-1, ceph-2, compute-0, compute-1, controller-0, controller-1, controller-2, undercloud |                   | 0:00:06.499 |                                    |
| 57faad95-7dd3-4665-9263-67fd03c101f5 | container-status           | PASSED | undercloud, allovercloud | ceph-0, ceph-1, ceph-2, compute-0, compute-1, controller-0, controller-1, controller-2, undercloud |                   | 0:00:02.704 |                                    |
+--------------------------------------+----------------------------+--------+--------------------------+----------------------------------------------------------------------------------------------------+-------------------+-------------+------------------------------------+
One or more validations have failed.

Comment 27 errata-xmlrpc 2023-08-16 01:09:23 UTC
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 17.1 (Wallaby)), 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/RHEA-2023:4577


Note You need to log in before you can comment on or make changes to this bug.