Verify the restored environment

To confirm your recovery efforts were successful, check the health and status of all your OpenStack services.

Before you begin

  • You have completed all restore procedures.

Procedure

  1. Verify the control plane status:
    $ oc get openstackcontrolplane -n openstack

    The control plane should show Ready status.

  2. Verify that all pods are running:
    $ oc get pods -n openstack --no-headers | grep -v Completed | grep -v Running

    This command should return no results if all pods are running or completed.

  3. Verify OpenStack endpoints:
    $ oc exec -t openstackclient -n openstack -- openstack endpoint list

    All expected service endpoints should be listed.

  4. Verify compute services:
    $ oc exec -t openstackclient -n openstack -- openstack compute service list

    All compute services should show up status.

  5. Verify network agents:
    $ oc exec -t openstackclient -n openstack -- openstack network agent list

    All network agents should show up status.

  6. Verify that all labeled resources were restored:
    $ oc get $(oc api-resources --verbs=list -o name | paste -sd, -) \
      -l backup.openstack.org/restore=true -n openstack 2>/dev/null
  7. Test instance operations on existing instances:
    $ oc exec -t openstackclient -n openstack -- openstack server list
    $ oc exec -t openstackclient -n openstack -- openstack server stop <instance-name>
    $ oc exec -t openstackclient -n openstack -- openstack server start <instance-name>

    where:

    <instance-name>
    Specifies an actual instance name from your environment.
  8. Optional: Create a test instance, for example:
    $ oc exec -t openstackclient -n openstack -- openstack server create \
      --flavor m1.small --image cirros --network default test-post-restore
  9. Optional: Run Tempest tests:
    $ oc apply -f <your-tempest-cr.yaml>

    where:

    <your-tempest-cr.yaml>
    Specifies the name of your Tempest test configuration file.

    If services are not running, check pod logs for errors.