Supported Storage Platforms
Should describe list of storage vendors supported.
Trilio Site Recovery for OpenStack supports a pluggable storage driver model that determines how volumes are replicated between your primary and recovery sites. This page describes each supported storage platform, the replication modes each one provides, the configuration required to activate it, and the constraints that apply when you choose one. Selecting the right backend is a prerequisite for every protection group you create: the driver must be active and correctly configured before volumes can be enrolled in replication or a failover can proceed.
Before configuring a storage backend:
- Trilio Site Recovery deployed on both sites (Juju, Kolla-Ansible, or OpenShift)
/etc/protector/protector.confwritable on every node runningprotector-engine- For Pure Storage: the
python3-pure-clientDebian package installed on every node runningprotector-engine(available from the Trilio apt repository athttps://apt.fury.io/trilio-os-site-recovery-master/) - For Pure Storage async: a Cinder volume type with
replication_enabled=Trueandreplication_type=asyncon both sites - For Pure Storage ActiveDR (
active_dr): a Cinder volume type whosereplication_enabledextra-spec is not set (ActiveDR manages replication out-of-band via Pure pod replica links; Cinder-managed replication conflicts with it) - For DRBD: this driver is in development and not supported for production use
- Network connectivity on port 8788 (protector API), 5000 (Keystone), 8774 (Nova), and 8776 (Cinder) between sites
- Keystone roles
dr_operatoranddr_site_admincreated on both sites
The storage driver is selected by the storage_driver option in [storage]. All other driver packages are installed as part of the service package trilio-site-recovery; only the Pure Storage SDK requires a separate step.
Mock driver (default — no additional installation)
The mock driver is active by default and requires no extra packages. It is suitable for initial deployment validation and hardware-free evaluation only.
Pure Storage driver
1. Add the Trilio apt repository (if not already present):
echo "deb [trusted=yes] https://apt.fury.io/trilio-os-site-recovery-master/ /" \
| sudo tee /etc/apt/sources.list.d/trilio-site-recovery.list
sudo apt-get update
2. Install the Pure Storage SDK on every node running protector-engine:
sudo apt-get install python3-pure-client
If you are using the Juju charm, the charm installs python3-pure-client automatically when storage-driver is set to pure. You can also trigger the install explicitly:
juju config trilio-site-recovery storage-driver=pure
3. Set the driver in /etc/protector/protector.conf:
[storage]
storage_driver = pure
For Juju deployments the charm manages this file; set options with juju config rather than editing the file directly (the charm rewrites it on every hook).
DRBD driver (not for production)
The DRBD driver is in development and excluded from the deployed artifact. Do not use it in production environments.
All storage configuration lives in /etc/protector/protector.conf. The [storage] section selects the driver; driver-specific options live in their own sections.
[storage] — driver selection
| Option | Type | Default | Description |
|---|---|---|---|
storage_driver | string | mock | Active driver. Accepted short names: mock, pure. drbd is in development and not for production. A full class path (e.g. protector.engine.storage.drivers.pure_driver.PureStorageDriver) is also accepted. |
[mock_storage] — Mock driver options
The mock driver stores simulated replication state in a SQLite database under /var/lib/protector. It supports both async and active_dr replication types for evaluation purposes.
| Option | Type | Default | Description |
|---|---|---|---|
storage_base_path | string | /var/lib/protector/mock_storage | Directory for the SQLite replication database. |
primary_array_name | string | primary-array | Display name for the simulated primary array. |
secondary_array_name | string | secondary-array | Display name for the simulated secondary array. |
[pure_storage] — Pure Storage driver options
These options configure the default (first) array pair. If you manage more than one pair, use additional_arrays to name additional [pure_array:<name>] sections.
| Option | Type | Default | Description |
|---|---|---|---|
primary_management_ip | string | — | Management IP or hostname of the primary FlashArray. Required. |
primary_api_token | string | — | API token for the primary FlashArray. Required. Treated as a secret. |
secondary_management_ip | string | — | Management IP or hostname of the secondary FlashArray. Required. |
secondary_api_token | string | — | API token for the secondary FlashArray. Required. Treated as a secret. |
primary_site_name | string | "" | The OpenStack site name whose volumes reside on the primary FlashArray. Must match the name used in openstack dr site create. |
secondary_site_name | string | "" | The OpenStack site name whose volumes reside on the secondary FlashArray. |
verify_ssl | boolean | false | Verify TLS certificates when connecting to FlashArrays. |
default_rpo_seconds | integer | 900 | Target RPO in seconds for async replication. |
snapshot_interval_seconds | integer | 300 | Interval between scheduled snapshots for async replication. |
additional_arrays | list | "" | Names of additional array-pair sections, e.g. array-pair-2. Each name must have a matching [pure_array:<name>] section. |
Site-name pairing invariant: primary_site_name must name the site whose array is at primary_management_ip, and secondary_site_name must name the site at secondary_management_ip. The engine resolves which array to contact by comparing the protection group's primary site name against these values and swapping the pair if needed. An identical [pure_storage] section works unchanged on both nodes. If the site names are unset or do not match a protection group's site, the engine raises StorageSiteMappingUnknown rather than guessing — guessing causes failover to read its answer off the wrong array and report all volumes missing.
[pure_array:<name>] — Additional array pairs
Each name listed in [pure_storage] additional_arrays must have a corresponding section. These sections carry the same keys as [pure_storage] minus additional_arrays, plus cinder_backend_names:
| Option | Type | Default | Description |
|---|---|---|---|
primary_management_ip | string | — | Management IP for this pair's primary array. |
primary_api_token | string | — | API token for this pair's primary array. |
secondary_management_ip | string | — | Management IP for this pair's secondary array. |
secondary_api_token | string | — | API token for this pair's secondary array. |
primary_site_name | string | "" | Site name for this pair's primary array. |
secondary_site_name | string | "" | Site name for this pair's secondary array. |
verify_ssl | boolean | false | Verify TLS for this pair. |
cinder_backend_names | list | "" | Cinder backend names that map to this array pair. |
[DEFAULT] — shared options relevant to storage
| Option | Type | Default | Description |
|---|---|---|---|
use_mock_storage | boolean | false | Force the mock driver regardless of [storage] storage_driver. Legacy option. |
use_mock_cinder | boolean | false | Redirect Cinder calls to the mock backend. Implies mock driver. |
Annotated protector.conf — Pure Storage async
[DEFAULT]
local_site = site-a
[storage]
storage_driver = pure
[pure_storage]
# Primary FlashArray — the array at site-a
primary_management_ip = 10.0.1.10
primary_api_token = <your-primary-token>
primary_site_name = site-a
# Secondary FlashArray — the array at site-b
secondary_management_ip = 10.0.2.10
secondary_api_token = <your-secondary-token>
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
Annotated protector.conf — Pure Storage ActiveDR
ActiveDR uses Pure pod replica links for continuous asynchronous replication. No --volume-type is required when creating a protection group with replication_type=active_dr, and the Cinder volume type used must not have replication_enabled set.
[DEFAULT]
local_site = site-a
[storage]
storage_driver = pure
[pure_storage]
primary_management_ip = 10.0.1.10
primary_api_token = <your-primary-token>
primary_site_name = site-a
secondary_management_ip = 10.0.2.10
secondary_api_token = <your-secondary-token>
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
Annotated protector.conf — multiple array pairs
[DEFAULT]
local_site = site-a
[storage]
storage_driver = pure
[pure_storage]
# Default (first) array pair
primary_management_ip = 10.0.1.10
primary_api_token = <token-a>
primary_site_name = site-a
secondary_management_ip = 10.0.2.10
secondary_api_token = <token-b>
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
# Register the second pair by name
additional_arrays = array-pair-2
[pure_array:array-pair-2]
primary_management_ip = 10.0.3.10
primary_api_token = <token-c>
primary_site_name = site-a
secondary_management_ip = 10.0.4.10
secondary_api_token = <token-d>
secondary_site_name = site-b
verify_ssl = false
cinder_backend_names = pure-iscsi-fa2
Choosing a storage driver
Set storage_driver in [storage] before starting the service. The three accepted short names are:
| Short name | Backend | Replication types | Use case |
|---|---|---|---|
mock | In-memory / SQLite | async, active_dr | Evaluation and CI — no hardware required |
pure | Pure Storage FlashArray | async, active_dr | Production |
drbd | DRBD 9 | async | In development — not for production |
A full class path is also accepted for custom drivers.
Creating a protection group with async replication (Pure)
Async replication uses Pure Protection Groups with scheduled snapshots. The Cinder volume type must have replication_enabled=True and replication_type=async.
openstack dr protection group create web-tier-pg \
--primary-site site-a \
--secondary-site site-b \
--replication-type async \
--volume-type pure-iscsi-replicated
--volume-type is required for async. The CLI enforces this client-side and exits with an error before sending any request if you omit it.
Creating a protection group with ActiveDR (Pure)
ActiveDR uses Pure pod replica links for continuous asynchronous replication. The default RPO target is 900 seconds (default_rpo_seconds). Do not pass --volume-type for ActiveDR, and ensure the Cinder volume type you use does not have replication_enabled set.
openstack dr protection group create web-tier-activedr-pg \
--primary-site site-a \
--secondary-site site-b \
--replication-type active_dr
Checking replication health
The dr replication health command returns the current replication state for a protection group. Add --probe to also ask the recovery site whether the group's networks, security groups, and flavors resolve there as the project it recovers into. --probe contacts the recovery site's Neutron and Nova through the same trust-scoped session a real recovery would use; it does not check the storage backend or replication lag.
# Fast health check (storage metrics only)
openstack dr replication health web-tier-pg
# Full pre-failover check (storage + recovery-site resource resolution)
openstack dr replication health web-tier-pg --probe
Listing recovery points
Recovery points are available for async replication. ActiveDR and sync groups typically return an empty list.
openstack dr recovery point list web-tier-pg --limit 10
Running a replication audit
To audit replication health across all protection groups from the site-admin perspective:
openstack dr replication audit
This command requires the dr_site_admin role.
Applying resource mappings before failover
Network and flavor mappings use = as the separator between source and destination. The left side of --network-mapping is the source network name (not a UUID) — it is matched against the network names recorded in the protected instance's Nova addresses:
openstack dr failover web-tier-pg \
--failover-type unplanned \
--network-mapping <src-network-name>=<dst-network-id> \
--flavor-mapping <src-flavor-id>=<dst-flavor-id>
Example 1 — Activate the Pure Storage driver (Juju)
If you are using the Juju charm, set driver options with juju config. The charm rewrites /etc/protector/protector.conf on every hook, so do not edit the file directly.
juju config trilio-site-recovery \
storage-driver=pure \
pure-primary-management-ip=10.0.1.10 \
pure-primary-api-token=<token> \
pure-primary-site-name=site-a \
pure-secondary-management-ip=10.0.2.10 \
pure-secondary-api-token=<token> \
pure-secondary-site-name=site-b
After setting these options, the charm will transition from BLOCKED (which is expected after an upgrade until the site names are configured) to ACTIVE.
Example 2 — Activate the Pure Storage driver (Kolla or bare-metal)
Edit /etc/protector/protector.conf directly on both the primary and recovery nodes:
[DEFAULT]
local_site = site-a
[storage]
storage_driver = pure
[pure_storage]
primary_management_ip = 10.0.1.10
primary_api_token = T-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
primary_site_name = site-a
secondary_management_ip = 10.0.2.10
secondary_api_token = T-yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
Then restart the engine container (Kolla):
docker restart protector_engine
Example 3 — Verify driver info via the API
curl -s -H "X-Auth-Token: $OS_TOKEN" \
http://protector-api:8788/v1/$OS_PROJECT_ID/storage-arrays
Example 4 — Create a protection group with async replication
openstack dr protection group create app-tier-pg \
--primary-site site-a \
--secondary-site site-b \
--replication-type async \
--volume-type pure-iscsi-replicated
Example 5 — Create a protection group with ActiveDR
openstack dr protection group create app-tier-activedr-pg \
--primary-site site-a \
--secondary-site site-b \
--replication-type active_dr
Example 6 — Create an on-demand recovery point
openstack dr recovery point create app-tier-pg --suffix pre-maintenance
Example 7 — Configure a cross_site_timeout that the charm does not expose directly
The charm exposes a fixed set of options. Any configuration key the charm does not model must be passed via config-flags:
juju config trilio-site-recovery config-flags="engine:cross_site_timeout=60"
Do not add engine:cross_site_timeout to the conf file on a Juju deployment — the charm rewrites the file and would append a duplicate [engine] section, causing a parse error.
StorageSiteMappingUnknown raised during failover
Symptom: Failover fails with an error containing StorageSiteMappingUnknown and a message such as [pure_storage] names its arrays 'site-a' (10.0.1.10) and 'site-b' (10.0.2.10), and neither is 'site-c'.
Cause: The protection group's primary site name does not match either primary_site_name or secondary_site_name in [pure_storage]. The engine refuses to guess which array to use rather than reading replication state from the wrong hardware.
Fix: Ensure primary_site_name and secondary_site_name in [pure_storage] exactly match the names you used when registering sites with openstack dr site create. Check the site name registered:
openstack dr site list
Then update the conf (or Juju config) so the values match.
All volumes reported missing during failover
Symptom: Failover proceeds but reports N of N volumes missing or destroyed with individual volume-not-found messages, while the volumes are physically present on the array.
Cause: primary_site_name and secondary_site_name are swapped relative to primary_management_ip and secondary_management_ip. The engine looked at the wrong array for the protection group's volumes.
Fix: Verify the pairing invariant: primary_site_name must name the site whose FlashArray is at primary_management_ip. An identical [pure_storage] section is valid on both nodes and is the simplest way to avoid a mismatch. Do not write node-relative sections where each node treats its own array as primary — this breaks the site you fail over to.
Unit in BLOCKED state after Juju upgrade with Pure driver configured
Symptom: After upgrading the Juju charm, the unit enters BLOCKED with the message set local-site, pure-primary-site-name, pure-secondary-site-name.
Cause: This is expected behaviour for charm version 1.0.20 and later. The charm requires local-site (and, when a Pure array is configured, both site names) to be set before it will configure the service. The charm does not infer which site it is running on.
Fix:
juju config trilio-site-recovery \
local-site=site-a \
pure-primary-site-name=site-a \
pure-secondary-site-name=site-b
Pure Storage SDK not found
Symptom: protector-engine fails to start with an error containing Pure Storage backend requires py-pure-client SDK.
Cause: The python3-pure-client package is not installed on the node running protector-engine.
Fix:
sudo apt-get install python3-pure-client
If using the Juju charm, the charm installs the package automatically when storage-driver=pure is set. If the package is missing after setting that option, run:
juju run trilio-site-recovery/0 upgrade-packages
LUKS-encrypted volume rejected when adding a member
Symptom: openstack dr protection group member add returns InvalidInput with a message about LUKS-encrypted volumes.
Cause: Volumes encrypted with host-side LUKS are not supported. Cinder's manage API cannot associate Barbican encryption keys on the recovery site, so an encrypted volume can never be recovered.
Fix: Use array-side encryption (Pure Storage data-at-rest encryption) instead of host-side LUKS. The volume must be unencrypted from Cinder's perspective before it can be added to a protection group.
Cinder volume type validation fails when adding a member (async)
Symptom: Member add fails with VolumeTypeNotReplicated or InvalidVolumeType.
Cause: For async replication, every volume attached to the instance must use a Cinder volume type with replication_enabled=True and replication_type=async as extra-specs.
Fix: Confirm the volume type configuration:
openstack volume type show pure-iscsi-replicated
The output should show replication_enabled and replication_type in the properties field. If not, update the volume type extra-specs and retype the volume before adding the member.
Cinder volume type rejected for ActiveDR group
Symptom: Member add or protection group creation fails with CINDER_REPLICATION_CONFLICT.
Cause: The volume type used with an active_dr protection group has replication_enabled set. ActiveDR manages replication out-of-band via Pure pod replica links; Cinder-managed replication conflicts with this and causes failover failures.
Fix: Use a non-replicated Cinder volume type (for example, one named pure-iscsi-fa1 with no replication extra-specs) for all volumes in an active_dr protection group.