---
title: Problem Being Solved
product: trilio-site-recovery-for-openstack
doc_type: concept
version: master
source: git2docs (code-derived, validation-filtered)
canonical: https://git2docs.com/murali-balcha/docs/trilio-site-recovery-for-openstack/trilio-site-recovery-for-openstack/problem-statement
---

# Problem Being Solved

_What this service provides_

## Overview

OpenStack has no built-in mechanism for tenants to protect and recover their own workloads across sites — Cinder's native volume replication operates at the storage-backend level and requires administrator intervention at every step. Trilio Site Recovery closes this gap by giving tenants a self-service disaster recovery control plane built on top of Pure Storage FlashArray replication, coordinated through standard OpenStack identity and APIs. This page explains the problem Trilio Site Recovery solves, the architectural gap it fills, and the core abstractions it introduces so you can evaluate whether the service fits your recovery requirements.

## Examples

### Check replication health before a planned failover

Before executing a failover, confirm the Protection Group is in a healthy state and ready to fail over:

```bash
openstack dr replication health <pg-id>
```

Expected output (abbreviated):

```
+----------------------+----------------------------------------+
| Field                | Value                                  |
+----------------------+----------------------------------------+
| protection_group_id  | a1b2c3d4-...                           |
| protection_group_name| web-tier-pg                            |
| can_failover         | True                                   |
| sync_state           | in_sync                                |
| lag_seconds          | 47                                     |
| rpo_compliant        | True                                   |
| recovery_points      | 12                                     |
+----------------------+----------------------------------------+
```

The `can_failover: True` field is the programmatic signal that the Protection Group is ready. If it is `False`, the `blockers` field in the response explains what must be resolved first.

---

### Validate a VM before adding it to a Protection Group

Use the validate command to pre-check eligibility without side effects:

```bash
openstack dr protection group member validate <pg-id> --instance <vm-id>
```

Expected output when the VM is eligible:

```
+------------------------+---------------------------+
| Field                  | Value                     |
+------------------------+---------------------------+
| valid                  | Yes                       |
| instance_id            | e5f6a7b8-...              |
| instance_name          | db-primary                |
| protection_group_id    | a1b2c3d4-...              |
| protection_group_name  | web-tier-pg               |
| errors                 | None                      |
| warnings               | None                      |
+------------------------+---------------------------+
```

Expected output when the VM uses ephemeral storage:

```
+------------------------+----------------------------------------------+
| Field                  | Value                                        |
+------------------------+----------------------------------------------+
| valid                  | No                                           |
| errors                 | [InstanceNotCinderBoot] Instance e5f6a7b8-...|
|                        | is not a Cinder boot instance. All protected |
|                        | VMs must boot from a Cinder volume.          |
+------------------------+----------------------------------------------+
```

---

### Run a non-disruptive test failover

A test failover clones recovery point data onto the secondary site and boots isolated VMs on a separate network, leaving production untouched:

```bash
openstack dr test failover <pg-id> --auto-network
```

Either `--auto-network` or `--network-mapping` is required. The `--auto-network` flag instructs the service to select an appropriate isolated network on the secondary site automatically.

To target a specific recovery point (for example, a snapshot taken before a suspected ransomware event):

```bash
openstack dr test failover <pg-id> --auto-network --recovery-point <recovery-point-name>
```

The operation returns immediately with an operation ID. Poll progress with:

```bash
openstack dr operation show <operation-id>
```

When the test is complete, clean up the test VMs and cloned volumes:

```bash
openstack dr test failover cleanup <pg-id>
```

To clean up a specific test operation rather than the most recent one:

```bash
openstack dr test failover cleanup <pg-id> --operation <operation-id>
```

---

### Execute a planned failover

```bash
openstack dr failover <pg-id> --failover-type planned
```

The API returns HTTP 202 Accepted immediately. The initial operation status is `pending`. Use `--wait` to block until the operation completes:

```bash
openstack dr failover <pg-id> --failover-type planned --wait
```

For an unplanned failover when the primary site is unreachable:

```bash
openstack dr failover <pg-id> --failover-type unplanned
```

---

### Monitor an operation via the API

All DR operations are queryable at any time. First, obtain a Keystone token:

```bash
export TOKEN=$(openstack token issue -f value -c id)
export TENANT_ID=$(openstack token issue -f value -c project_id)
```

List recent operations:

```bash
curl -s -H "X-Auth-Token: $TOKEN" \
  http://<protector-api-host>:8788/v1/$TENANT_ID/operations
```

Fetch a specific operation:

```bash
curl -s -H "X-Auth-Token: $TOKEN" \
  http://<protector-api-host>:8788/v1/$TENANT_ID/operations/<operation-id>
```

Expected response shape:

```json
{
  "operation": {
    "id": "op-uuid",
    "type": "failover",
    "status": "completed",
    "progress": 100,
    "protection_group_id": "pg-uuid",
    "steps": [
      {"name": "quiesce_vms", "status": "completed"},
      {"name": "take_final_snapshot", "status": "completed"},
      {"name": "promote_volumes", "status": "completed"},
      {"name": "recreate_vms", "status": "completed"}
    ]
  }
}

## Related concepts

- **Sites** — Before creating a Protection Group, both the primary and secondary OpenStack deployments must be registered as Sites. Each site has its own Keystone, Nova, Cinder, and Neutron. See the site registration workflow for details on `openstack dr site create`.
- **Tenant Mappings** — Because each OpenStack site assigns independent project UUIDs, you must create a Tenant Mapping that links your local project ID to the corresponding project on the secondary site. Without a Tenant Mapping, cross-site trust creation fails. See the tenant mapping commands (`openstack dr tenant mapping create`) for setup instructions.
- **Replication Policy** — The Pure Storage connection details and RPO settings attached to a Protection Group (FlashArray URLs, API tokens, Protection Group name, replication interval, and target RPO). These are configured via `POST /v1/{tenant_id}/protection-groups/{pg_id}/policy` after the Protection Group is created.
- **Keystone Trusts** — The identity delegation mechanism the service uses to act on a tenant's behalf on the remote site. Trusts are created automatically on first use; the `dr_operator` and `member` Keystone roles must exist on both sites before any cross-site operation can succeed.
- **Cinder Consistency Groups** — The Cinder construct, automatically created and managed by the service, that groups all volumes belonging to a Protection Group so they are snapshotted together. You do not manage Consistency Groups directly; they are embedded in the Protection Group API response.
- **Recovery Points** — Point-in-time snapshots of a Protection Group's volumes available on the secondary site. Use `openstack dr recovery point list <pg-id>` to see available recovery points and select one during failover or test failover.
- **Replication Health** — The live health report for a Protection Group's replication link, including RPO compliance and failover readiness. See `openstack dr replication health <pg-id>` and `GET /v1/{tenant_id}/protection-groups/{pg_id}/replication-health`.
- **DR Operations** — Every long-running action is tracked as a DR Operation with step-level progress. See `openstack dr operation show <id>` and `GET /v1/{tenant_id}/operations/{id}`.
