---
title: Everpure FlashArray
product: trilio-site-recovery-for-openstack
doc_type: guide
version: master
source: git2docs (code-derived, validation-filtered)
canonical: https://git2docs.com/mark-reid/docs/trilio-site-recovery-for-openstack/trilio-site-recovery-for-openstack/everpure-flasharray
---

# Everpure FlashArray

_Describe Everpure flash array storage replications, our support for those replications, how to configure each replication type and their RPO/RTO characteristics._

## Overview

Trilio Site Recovery for OpenStack integrates directly with Pure Storage FlashArray to provide two distinct replication modes for protecting OpenStack workloads: **periodic async** (Protection Group-based scheduled snapshots) and **ActiveDR** (continuous asynchronous replication via pods and replica links). This page describes how each mode works at the array level, what RPO and RTO characteristics you can expect, how to configure the Pure storage driver, and how the service manages replication lifecycle operations including failover, failback, and recovery point selection. Understanding the differences between these modes before you deploy is essential: they use fundamentally different Pure constructs, have different Cinder volume type requirements, and have different failover mechanics.

## Prerequisites

Before configuring Pure Storage replication, ensure you have:

- **Two Pure Storage FlashArray appliances** with Purity//FA 6.0 or later (required for ActiveDR; periodic async works on earlier versions)
- **Array-to-array replication connection** already established between the two FlashArrays (a `type=async-replication` or `type=replication` connection visible in `get_array_connections`)
- **API tokens** for both arrays with sufficient privileges to manage protection groups, pods, replica links, and volumes
- **`python3-pure-client` Debian package** installed on every node running `protector-engine`; install it from the Trilio apt repository at `https://apt.fury.io/trilio-os-site-recovery-master/`
- **Trilio Site Recovery** deployed and configured with `local_site` set in `[DEFAULT]`
- For **periodic async**: a Cinder volume type with `replication_enabled=True` and `replication_type=async` on both sites, and the five Cinder policy relaxations (see below)
- For **ActiveDR**: a standard (non-replicated) Cinder volume type mapping to a Pure FlashArray backend — no Cinder replication extra specs; the service manages replication entirely out-of-band via the Pure REST API
- **Cinder policy relaxations** on both sites (required for all replication types):
  ```
  "volume_extension:volume_manage": "rule:admin_or_owner"
  "volume_extension:volume_unmanage": "rule:admin_or_owner"
  "volume_extension:services:index": "rule:admin_or_owner"
  "volume_extension:type_get": "rule:admin_or_owner"
  "volume_extension:type_get_all": "rule:admin_or_owner"
  ```
  All five rules are required. The last two (`type_get`, `type_get_all`) are read-only lookups that some Cinder versions leave open by default; a lab deployment may succeed without them while a production cloud will fail mid-failover with HTTP 403.
- **LUKS-encrypted volumes are not supported.** Volumes encrypted with LUKS cannot be added to any protection group. Use Pure array-side data-at-rest encryption instead.

## Installation

The Pure storage driver is activated by installing the `python3-pure-client` SDK package and setting `storage_driver = pure` in `protector.conf`. The installation steps differ by deployment method.

### Juju (Charmed OpenStack)

The Juju charm installs `python3-pure-client` automatically when you configure a Pure array. Set the storage driver and array credentials using charm configuration:

```bash
juju config trilio-site-recovery \
  storage-driver=pure \
  pure-primary-management-ip=10.0.1.10 \
  pure-primary-api-token=YOUR-PRIMARY-TOKEN \
  pure-secondary-management-ip=10.0.2.10 \
  pure-secondary-api-token=YOUR-SECONDARY-TOKEN \
  pure-primary-site-name=site-a \
  pure-secondary-site-name=site-b \
  local-site=site-a
```

After setting these options, the charm rewrites `/etc/protector/protector.conf` and restarts the services. If the unit enters `BLOCKED` status with the message `set local-site, pure-primary-site-name, pure-secondary-site-name`, this is expected — the charm requires all three options before it will start the services. Set the missing values and the unit will recover automatically.

### Kolla-Ansible

1. Ensure the `python3-pure-client` package is available inside the `protector_engine` container. If you are building a custom image, install it during image build:
   ```bash
   apt-get install -y python3-pure-client
   ```
2. Edit `/etc/protector/protector.conf` on the host (mounted into the container) and add the Pure configuration sections described in the **Configuration** section below.
3. Restart the engine container:
   ```bash
   docker restart protector_engine
   ```

### OpenShift (RHOSO18)

1. Add the Pure API token credentials to the `trilio-openstack-secret` in the `trilio-openstack` namespace (the install script adds `SrDatabasePassword` and `SrKeystonePassword` keys; add Pure credentials via the same `ensure_password_key` mechanism or by patching the secret directly).
2. Update the `configmap` with the `[pure_storage]` section shown in **Configuration**.
3. Run the installer to apply the full manifest set in the correct order:
   ```bash
   bash deploy/openshift/scripts/install.sh \
     --namespace trilio-site-recovery \
     --image docker.io/xyzmd/trilio-site-recovery-openstack:dev
   ```
   The installer applies all twelve manifests, including the init Jobs for database, RabbitMQ, Keystone registration, and schema migration. Do not apply only the Deployment manifests — the containers cannot authenticate tokens or reach the database without the preceding Jobs.

### Manual / Bare-metal

1. Add the Trilio apt repository and install the SDK:
   ```bash
   echo "deb [trusted=yes] https://apt.fury.io/trilio-os-site-recovery-master/ /" \
     > /etc/apt/sources.list.d/trilio-site-recovery.list
   apt-get update
   apt-get install -y python3-pure-client
   ```
2. Edit `/etc/protector/protector.conf` to add the Pure configuration (see **Configuration** below).
3. Restart the engine service.

## Examples

### Example 1: Full periodic async setup and failover

Register both sites, create a protection group with periodic async replication, add a member, and perform a planned failover.

```bash
# Register both sites (requires dr_site_admin role)
openstack dr site create site-a \
  --auth-url https://keystone-site-a.example.com:5000/v3 \
  --region RegionOne

openstack dr site create site-b \
  --auth-url https://keystone-site-b.example.com:5000/v3 \
  --region RegionOne

# Create a protection group with periodic async replication
# --volume-type is required for async
openstack dr protection group create production-pg \
  --primary-site site-a \
  --secondary-site site-b \
  --replication-type async \
  --volume-type replicated-pure-iscsi

# Add a VM to the protection group
openstack dr protection group member add production-pg \
  --instance a1b2c3d4-e5f6-7890-abcd-ef1234567890

# Check replication health before the maintenance window
openstack dr replication health production-pg --probe

# List available recovery points
openstack dr recovery point list production-pg

# Perform a planned failover, mapping networks that differ between sites
openstack dr failover production-pg \
  --failover-type planned \
  --network-mapping prod-net-site-a=prod-net-site-b \
  --wait --wait-timeout 1800
```

---

### Example 2: ActiveDR protection group setup

```bash
# Create an ActiveDR protection group
# No --volume-type required; use a non-replicated Cinder type for volumes
openstack dr protection group create activedr-pg \
  --primary-site site-a \
  --secondary-site site-b \
  --replication-type active_dr

# Add a member (volumes must use a non-replicated Cinder volume type)
openstack dr protection group member add activedr-pg \
  --instance a1b2c3d4-e5f6-7890-abcd-ef1234567890

# Monitor replication health
openstack dr replication health activedr-pg
```

---

### Example 3: On-demand recovery point (periodic async)

```bash
# Create a named recovery point before a risky change
openstack dr recovery point create production-pg --suffix pre-upgrade

# List all recovery points
openstack dr recovery point list production-pg

# Failover to the specific recovery point if the upgrade corrupts data
openstack dr failover production-pg \
  --failover-type unplanned \
  --recovery-point pre-upgrade
```

---

### Example 4: Inspect operation progress after failover

```bash
# List operations for the protection group
openstack dr operation list --protection-group production-pg

# Show details for a specific operation
# The Source Site and Target Site columns show site names (falling back to ID)
openstack dr operation show <operation-id>
```

---

### Example 5: Minimal `[pure_storage]` configuration block

This is a complete, annotated `[pure_storage]` section for `/etc/protector/protector.conf` with one array pair:

```ini
[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
secondary_management_ip = 10.0.2.10
secondary_api_token = T-yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy
primary_site_name = site-a
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
```

---

### Example 6: Multi-array configuration

```ini
[pure_storage]
primary_management_ip = 10.0.1.10
primary_api_token = T-primary-token
secondary_management_ip = 10.0.2.10
secondary_api_token = T-secondary-token
primary_site_name = site-a
secondary_site_name = site-b
verify_ssl = false
default_rpo_seconds = 900
snapshot_interval_seconds = 300
additional_arrays = array-pair-2

[pure_array:array-pair-2]
primary_management_ip = 10.0.3.10
primary_api_token = T-pair2-primary-token
secondary_management_ip = 10.0.4.10
secondary_api_token = T-pair2-secondary-token
primary_site_name = site-a
secondary_site_name = site-b
verify_ssl = false
cinder_backend_names = pure-iscsi-fa3,pure-fc-fa3
```

---

### Example 7: Python client — check replication health

```python
from keystoneauth1 import identity, session
from keystoneauth1.adapter import Adapter
from triliositerecovery.v1.client import Client

auth = identity.v3.Password(
    auth_url='https://keystone.site-a.example.com:5000/v3',
    username='myuser',
    password='mypassword',
    project_name='myproject',
    user_domain_name='Default',
    project_domain_name='Default',
)
ks_session = session.Session(auth=auth)
adapter = Adapter(
    session=ks_session,
    service_type='disaster-recovery',
    interface='public',
    region_name='RegionOne',
)

# endpoint_override is required; omitting it causes requests to fail
client = Client(
    session=adapter,
    endpoint='https://protector-api.site-a.example.com:8788',
    region_name='RegionOne',
)

# Returns a plain dict (not an object) — use dict['key'], not dict.key
health = client.protection_groups.replication_health('my-pg-id')
print(health['failover_ready'])
print(health['failover_ready_reason'])

# replication_health also supports the probe flag
health_with_probe = client.protection_groups.replication_health(
    'my-pg-id', probe=True
)
```

---

### Example 8: Python client — failover

```python
# DR operation methods are on client.operations (OperationManager),
# not on client.protection_groups.
# The resource ID is positional; pass mappings as dicts, not 'src=dst' strings.

operation = client.operations.failover(
    'my-pg-id',
    failover_type='planned',
    network_mapping={'src-net-id': 'dst-net-id'},
)
# Returns a plain dict
print(operation['id'])
print(operation['status'])
```
