Key Concepts
The service's resources and OpenStack terminology a reader needs
This page defines the resources and terms you work with every time you use Trilio Site Recovery for OpenStack. Understanding these concepts — what a protection group is, how sites relate to each other, what roles govern access, and how the service fits into OpenStack — is the foundation for every workflow: creating protected workloads, executing failover, diagnosing problems, and recovering from an interrupted operation. Read this page before the deployment guides or the API reference.
Site
A site is a registered OpenStack deployment — an independent cluster with its own Keystone, Nova, Cinder, and Neutron. You register each site by name using openstack dr site create, supplying the site's Keystone endpoint and optional service credentials. The name you give a site at registration is its permanent identifier for all protection group and mapping operations.
A site has no intrinsic role of its own. The terms primary and secondary describe a protection group's relationship to its pair of sites, not the sites themselves. The same site can be the primary for one protection group and the secondary for another. After a failover the roles flip on that protection group — the site records themselves are unchanged. The site_type column exists in the database schema for historical reasons and is never read by the service; do not rely on it.
Sites expose status values (active, unreachable, error, maintenance) that reflect whether the service can communicate with that site. A site marked unreachable does not prevent reconcile operations on protection groups whose primary site is unavailable — that is precisely the scenario reconcile exists for.
Protection Group
A protection group (PG) is the core resource of Trilio Site Recovery. It is a named set of Nova instances whose Cinder boot volumes are replicated together as a crash-consistent unit between two registered sites. All members of a protection group share a replication type, a consistency group on the storage backend, and a common failover lifecycle.
A protection group has:
- A primary site (
primary_site_id) — where workloads run under normal conditions. - A secondary site (
secondary_site_id) — where replicated volumes are maintained and where VMs are recreated on failover. - A current primary site (
current_primary_site_id) — which site holds the writable copy right now. This field flips on failover and back on failback. - A replication type —
asyncoractive_dr(see Storage Replication below). - An optional volume type — required for
asyncreplication, not required foractive_dr.
You must supply both --primary-site and --secondary-site when creating a protection group; the service never infers the secondary from context.
Protection Group Status
A protection group moves through a defined set of statuses:
| Status | Meaning |
|---|---|
creating | Creation request accepted; engine is provisioning the consistency group |
active | Replication running; workloads on the primary site |
failing_over | Failover in progress |
failed_over | Workloads running on the secondary site; primary volumes are read-only |
failed_over_partial | Failover completed with partial success (some members failed) |
failing_back | Failback in progress |
error | An operation left the group in an unrecoverable state; use reconcile or manual reset |
deleting | Deletion in progress |
Transient statuses (failing_over, failing_back, creating, deleting) are set by the engine before an operation begins and cleared when it completes or fails. You cannot initiate a new operation on a group in a transient status — the API returns HTTP 409 (InvalidState).
Consistency Group
A consistency group is the storage-layer object that backs a protection group. The engine creates a Pure Storage Protection Group (for async replication) or a pair of pods joined by a replica link (for active_dr) on the source array, adds the group members' volumes to it, and manages snapshot scheduling and replication from there.
Consistency groups are managed entirely by the engine — you do not interact with them directly through the Trilio API. The protector database stores the Cinder consistency group IDs on both sites (primary_cg_id, secondary_cg_id) for reference. All volumes in a protection group must share the same Cinder volume type.
Member
A member is a Nova instance belonging to a protection group. Each member's boot volume (and any additional attached Cinder volumes) is added to the protection group's consistency group and replicated together with all other members' volumes. Only instances that boot from a Cinder volume can be protected — ephemeral-boot instances and instances with LUKS-encrypted volumes are rejected at member-add time.
Members have their own status:
| Status | Meaning |
|---|---|
protected | Volume replicated; member ready for failover |
replicating | Volume replication in progress |
standby | Replica exists on the secondary site, awaiting failover |
failed_over | Member's VM has been recreated on the secondary site |
removing | Removal accepted; engine is relinking volumes (can take minutes on active_dr) |
unprotected | Member removed from active replication |
error | Member is in an error state |
The removing status exists specifically because ActiveDR member removal requires relinking each volume one at a time, which can take several minutes. Without this status the member appeared untouched until it suddenly disappeared.
Boot Order
Each member has a boot order (integer, default 0) that controls the sequence in which VMs are recreated during failover. Lower values boot first. Members with the same boot order are started in parallel. Use --boot-order when adding a member or updating it with dr protection group member set.
Instance Naming After Failover
Failover creates the recovered instance as <original-name>-failover. Failback creates it as <original-name>-restored. The member row preserves the original instance_name, so suffixes do not compound across a round trip — but be aware that the workload never returns to its original name automatically. Anything outside OpenStack keyed on the instance name (DNS records, monitoring targets, runbooks) must be updated.
Replication Type
Each protection group uses one of two replication modes, chosen at creation time with --replication-type:
async — Periodic Asynchronous Replication
The engine creates a Pure Storage Protection Group on the source array, adds the consistency group's volumes to it, and replicates scheduled snapshots to the target array. The RPO is bounded by snapshot_interval_seconds (default 300 seconds) plus transfer time. Every replicated snapshot is a selectable recovery point.
--volume-type is required for async protection groups. The CLI enforces this before sending any request to the API.
active_dr — Continuous Asynchronous Replication (ActiveDR)
Two single-array pods — <name>-src on the source array and <name>-tgt on the target — are joined by a directional pod replica link that streams writes continuously. Typical RPO is sub-30 seconds, bounded by WAN bandwidth and write rate. Recovery points are supported, with snapshot scheduling on the promoted pod and automatic retention enforcement.
ActiveDR requires Purity//FA 6.0 or later and an existing replication-type array connection. --volume-type is not required for active_dr protection groups — this is the only replication type exempt from that requirement.
ActiveDR is not synchronous replication and does not use a stretched pod. Zero-RPO synchronous replication (ActiveCluster) is planned but not yet shipped.
DR Operation
A DR operation is a record of a single execution of a DR workflow against a protection group. Every failover, failback, test failover, test cleanup, metadata sync, replication validation, and reconcile produces one operation record in the database, queryable with openstack dr operation list and openstack dr operation show.
Operations have:
- An operation type:
failover,failback,test_failover,test_cleanup,sync_volumes,validate_replication, orreconcile. - A status:
pending,running,completed,failed, orrolling_back. - A progress field: an integer 0–100 representing completion percentage. The CLI renders this as a percentage when polling with
--wait. - Source site and target site names (falling back to IDs if the site name cannot be resolved).
- A
result_dataJSON blob with details: instances created, volumes managed, networks configured, floating IPs allocated, warnings, and errors.
There is no estimated completion time for any DR operation. The service computes and exposes a progress percentage, but not a projected finish time.
Failover
Failover moves workloads from the current primary site to the secondary site. The engine promotes the replicated storage volumes to writable, imports them into Cinder on the secondary site, recreates the protected VMs using stored metadata (applying network, flavor, and floating IP mappings as configured), and updates the protection group's current_primary_site_id. Failover can be planned (coordinated, with pre-flight checks) or unplanned (immediate, used when the primary site is unreachable).
Failback
Failback reverses a completed failover, moving workloads back to the original primary site. The engine replicates data from the current (secondary) site back to the original primary, recreates the VMs there, and resets current_primary_site_id. Failback waits for each DR volume's Nova attachment to release (up to 120 seconds per volume) before unmanaging it; this is intentional, not a hang — a site whose detaches lag will show a visibly slower failback.
Test Failover
Test failover is a non-disruptive validation of the failover path. It creates test VMs on the secondary site using replicated volumes without promoting them or affecting the primary site. After testing, openstack dr test failover cleanup removes the test VMs and returns the group to active. Test failover requires either a --network-mapping or --auto-network flag.
Reconcile
Reconcile repairs a protection group left in an inconsistent state by an interrupted failover or failback. Rather than requiring the interrupted operation to be re-run from scratch, the engine inspects storage, VMs, and operation history to determine what actually completed, fixes the protection group's status, relinks any VMs it discovers, restarts SHUTOFF workloads on the writable site, and synchronizes the corrected state to the peer site.
Reconcile works even when the primary site is unreachable — it is specifically designed for the scenario where a failover was cut off by a site outage. Each reconcile is recorded as an operation of type reconcile in the operations table and appears in openstack dr operation list and the Horizon Operations table.
The command is openstack dr protection group reconcile <pg>. The API accepts reconcile as the top-level key in a POST to /v1/{tenant_id}/protection-groups/{id}/action.
Site-Level Failover
Site-level failover initiates failover for every protection group belonging to the current project in a single operation, rather than group by group. The command openstack dr tenant failover is run on the DR site. openstack dr tenant failback reverses it, run on the original primary site. Site-level operations are tracked separately in openstack dr site operation list.
Resource Mapping
A resource mapping tells the engine which resource on the secondary site corresponds to a resource on the primary site. When a failover recreates a VM, it uses these mappings to attach the VM to the correct network, use the correct flavor, and assign the correct floating IP.
Four resource types can be mapped:
| Type | What it maps |
|---|---|
network | A primary-site Neutron network to a secondary-site network |
flavor | A primary-site Nova flavor to a secondary-site flavor |
floating_ip_pool | A primary-site external network to a secondary-site external network (for allocating new DR floating IPs) |
floating_ip | A specific primary floating IP address to a specific pre-allocated DR floating IP |
The subnet and security_group types are not supported as explicit mappings — submitting them returns HTTP 400.
Mappings are created on the primary site while the group is not failed over. The separator between source and destination in CLI flags is =, not :. Example: --network-mapping <src-network-id>=<dst-network-id>. A colon is accepted by the argument parser as a single opaque string but is silently ignored, causing the engine to fall back to name-based resolution.
Auto-mapping
The engine runs auto-mapping automatically during metadata sync. It inspects the members' networks, flavors, and security groups and attempts to adopt matching resources on the secondary site by name or ID. Resources that are considered but cannot be matched are recorded with no target and a reason — they appear in openstack dr protection group mapping list as not mapped with a decision reason, not as absent entries.
An explicit mapping created with openstack dr protection group mapping create outranks auto-mapping and will not be overwritten by it.
Networks and subnets are adopted from the secondary site by name and are never created there. Security groups are adopted; whether they are created when absent depends on the [engine] auto_create_security_groups configuration option (default false).
Tenant Mapping
A tenant mapping tells the engine which project UUID on the secondary site corresponds to a project UUID on the primary site. This is necessary when the two sites have independent Keystone deployments (the typical production case), because the same project will have different UUIDs on each cluster.
Without a tenant mapping, the engine assumes the project UUID is identical on both sites. That assumption holds for federated or shared Keystone deployments and essentially never for two independent clusters. The error from a missing mapping surfaces during a cross-site operation rather than at the point the mapping was omitted — so configure mappings before your first failover test.
Tenant mappings are created with openstack dr tenant mapping create and are automatically synchronized to the peer site. The dr_site_admin role is required to create, delete, and validate tenant mappings.
Recovery Point
A recovery point is a named, selectable snapshot of the protection group's volumes at a point in time. For async replication, every replicated snapshot is a recovery point. For active_dr, snapshots are scheduled on the promoted pod and ride the replica stream.
You can list available recovery points with openstack dr recovery point list <protection-group> and specify one when initiating a failover with --recovery-point. If no recovery point is specified, the most recent replicated state is used.
Recovery points are retained according to [engine] recovery_point_max_count (default 20) and [engine] recovery_point_ttl_hours (default 24). The [engine] recovery_point_interval_minutes option controls automatic point-in-time snapshot scheduling (default 0, meaning disabled).
Replication Health
Replication health is a per-protection-group check that reports the current state of storage replication between sites. Run it with openstack dr replication health <protection-group>.
The optional --probe flag extends this check: it asks the recovery site whether the group's networks, security groups, and flavors resolve there, as the project the group would recover into. This is a Neutron/Nova resource resolution check scoped to that project — it is not a storage array check and does not measure replication lag. A network that exists on the recovery site but belongs to a different project is correctly reported as missing. Run --probe before a planned failover window; it is slower than the plain command because it communicates with the peer site.
Replication health is a polled observable — the service emits no event notifications. To monitor DR health programmatically, poll openstack dr replication health, openstack dr replication audit, openstack dr recovery point list, and the operation records.
Replication Audit
A replication audit (openstack dr replication audit) inspects the replication state across all protection groups visible to the caller and reports discrepancies. It requires the dr_site_admin role. Use it to get a fleet-wide view of replication health before a planned site failover.
Roles and Access Control
Trilio Site Recovery enforces access control through oslo.policy. Two Trilio-specific roles must exist in Keystone on both sites before any DR operation:
| Role | Scope | What it gates |
|---|---|---|
dr_operator | Per-tenant (delegated by trust) | Protection group and member operations, failover, failback, test failover, reconcile, metadata sync, operation list/show |
dr_site_admin | Cloud-wide (grant on the admin project) | Site create/update/delete, tenant mapping create/delete/validate, replication audit, site failover, site operation list/show |
dr_site_admin carries no project-scoped restriction in the default policy. A holder on any project can register sites and create tenant mappings for every project in the cloud. Grant it only to cloud operators on the admin project — not per-DR-project.
The member built-in role is also delegated by every per-tenant Keystone trust the service creates (default_trust_roles = member,dr_operator). The member role provides the Nova and Cinder access the trust needs for failover operations. Both roles must exist in Keystone — trust creation fails naming a missing role rather than skipping it.
The role:admin superset covers all dr_site_admin-gated rules. Switching a policy rule from rule:context_is_admin to rule:context_is_dr_operator broadens access, because context_is_dr_operator matches dr_operator, dr_site_admin, or admin, while context_is_admin matches only admin.
The protector:sites:storage_arrays rule requires role:admin and cannot be delegated through dr_site_admin.
Keystone Trust
The service uses Keystone trusts for cross-site operations. When the engine needs to act on the secondary site on behalf of a tenant, it uses a trust scoped to that tenant's project — not the service account's own credentials. This allows tenants to use the DR service without granting it admin rights on their project.
The trust delegates the roles listed in [service_credentials] default_trust_roles (default: member,dr_operator). Every role named there must already exist in Keystone. The engine resolves the target project UUID using the tenant mapping if one exists, or assumes the same UUID otherwise.
Site Registration and the Service Catalog
Trilio Site Recovery registers with Keystone as a first-class OpenStack service. It creates:
- A service entry of type
disaster-recovery(and the legacy aliasprotector). - Public, internal, and admin endpoints in the service catalog at port 8788.
- A dedicated service account (Keystone user
protector) with theAdminrole.
The [DEFAULT] local_site configuration option must be set to the name of the DR site this instance belongs to before the service can participate in any DR operation. The charm enters a BLOCKED state after installation until this option (and, for Pure Storage deployments, pure_primary_site_name and pure_secondary_site_name) is set — this is expected behavior, not a failed deployment.
Health Check
The API exposes an unauthenticated health endpoint at /healthz. It returns HTTP 200 when the API can serve requests and HTTP 503 when it cannot (for example, when the database is unavailable). The Kolla container HEALTHCHECK polls this endpoint every 30 seconds, the installer waits on it, and each site checks its peer's /healthz before creating a tenant mapping. Do not use the version endpoint (/) as a health check — it returns 200 unconditionally regardless of database connectivity.
Bidirectional Metadata Synchronization
The service maintains a complete copy of protection group metadata on both sites. When you add a member, create a resource mapping, or update a protection group, the change is pushed to the peer site immediately over the peer's protector API. Each synchronization is recorded in metadata_sync_logs with source site, target site, version, status, and change summary.
The openstack dr protection group sync command forces a full resynchronization of the group's metadata to the peer site. Run it after any manual mapping change, or when the automatic push reports that the DR site did not confirm in time.
Limitations
- LUKS-encrypted volumes cannot be added to a protection group. The engine rejects them at member-add time (
InvalidInput). Cinder's manage API cannot associate Barbican encryption keys on the DR site. Use array-side encryption (Pure Storage data-at-rest encryption) instead. - Ephemeral-boot instances cannot be protected. All member VMs must boot from a Cinder volume.
- Networks and subnets are never created on the secondary site by failover — they must already exist there. Only security groups can optionally be auto-created (controlled by
[engine] auto_create_security_groups). - Recovered instance names are permanently suffixed:
-failoverafter failover,-restoredafter failback. A round trip never restores the original name. - The service emits no event notifications. Observability is polled: use
openstack dr replication health,openstack dr replication audit,openstack dr recovery point list, and operation records.
Register a site
openstack dr site create site-primary \
--auth-url https://keystone-primary.example.com:5000/v3 \
--service-username protector \
--service-password <password> \
--service-project-name service \
--service-user-domain-name Default \
--service-project-domain-name Default
Create a protection group with async replication
openstack dr protection group create my-pg \
--primary-site site-primary \
--secondary-site site-secondary \
--replication-type async \
--volume-type replicated-vol-type
Create a protection group with ActiveDR (no volume type required)
openstack dr protection group create my-active-pg \
--primary-site site-primary \
--secondary-site site-secondary \
--replication-type active_dr
Add a member with boot order
openstack dr protection group member add my-pg \
--instance <vm-uuid> \
--boot-order 1
Create a resource mapping (network)
The separator is =, not :.
openstack dr protection group mapping create my-pg \
--resource-type network \
--primary-resource-id <primary-network-id> \
--secondary-resource-id <secondary-network-id>
Initiate a failover with network and flavor mappings
openstack dr failover my-pg \
--failover-type planned \
--network-mapping <src-net-id>=<dst-net-id> \
--flavor-mapping <src-flavor-id>=<dst-flavor-id> \
--wait
Check replication health with recovery-site resource probe
The --probe flag checks whether the group's networks, security groups, and flavors resolve on the recovery site in the recovering project — not a storage check.
openstack dr replication health my-pg --probe
List recovery points
openstack dr recovery point list my-pg --limit 10
Reconcile an inconsistent protection group
Use this after an interrupted failover or failback, including when the primary site is unreachable.
openstack dr protection group reconcile my-pg
Create a tenant mapping between independent Keystone deployments
openstack dr tenant mapping create \
--local-tenant <local-project-id> \
--remote-site site-secondary \
--remote-tenant <remote-project-id> \
--description "Production DR project mapping"
View all operations for a protection group
openstack dr operation list --protection-group my-pg
Show operation detail including progress
openstack dr operation show <operation-id>
Prepare DR floating IPs for all group members
openstack dr protection group floating ip prepare my-pg \
--dr-network <dr-external-network-id>
Initiate site-level failover for all groups in this project
Run this on the DR site.
openstack dr tenant failover --failover-type unplanned
- Deployment guides — How to install and configure the service using Juju, Kolla-Ansible, or OpenShift manifests, including setting
[DEFAULT] local_siteand Pure Storage array configuration. - Configuration reference — All
protector.confoptions by section, with defaults and valid values. - RBAC and policy — How to override default policy rules using
policy.yaml, and how thedr_operatoranddr_site_adminroles map to oslo.policy rules. - API reference — Complete REST API endpoint listing under
/v1/{tenant_id}/, request and response bodies, and error codes. - CLI reference — Every
openstack drsubcommand with its flags and argument shapes. - Python client library — How to import and use the
triliositerecovery.v1.client.Clientto call protection group, operation, site, and mapping managers programmatically. - Failover operations guide — Step-by-step walkthrough of planned and unplanned failover, failback, and test failover, including how to prepare resource mappings and interpret operation status.
- Pure Storage driver configuration — How to configure
[pure_storage]and[pure_array:<name>]sections, including site-name pairing, additional arrays, and ActiveDR requirements. - Upgrading the service — The
protector-manage db preflightcheck required before migration 022, and how to use theupgrade-packagesJuju charm action.