Trilio Site Recovery for OpenStackOpenStack native DR service
Guide

OpenStack Integration

How it uses Keystone, the message bus, and other services


Overview

Trilio Site Recovery registers with Keystone as a first-class OpenStack service, authenticates every API call through keystonemiddleware, and executes DR workflows by impersonating tenants through Keystone trusts — all without requiring tenants to hold admin credentials. This page explains how the service integrates with Keystone, RabbitMQ, Nova, Cinder, and Neutron: how tokens are validated, how trusts are created and cached, what roles are required and why, how the message bus connects the API and engine tiers, and what Cinder policy relaxations are needed before the first failover succeeds.


Prerequisites

Before working with the OpenStack integration:

  • Two independent OpenStack clusters or regions, each at Victoria or later
  • Keystone on both sites — the service registers a service entry, public/internal/admin endpoints, and a dedicated service account on each
  • The Keystone roles dr_operator and dr_site_admin created on both sites before the service starts; trust creation fails at the first DR operation if either role is absent
  • MariaDB or MySQL accessible to the service (default database name: protector, default user: protector)
  • RabbitMQ on both sites (default vhost: protector, default user: protector)
  • Network connectivity between sites on port 8788 (protector API), 5000 (Keystone), 8774 (Nova), and 8776 (Cinder)
  • Five Cinder policy rules relaxed on both sites (see Cinder policy below)
  • The local_site option set in [DEFAULT] before the service participates in any DR operation
  • For Juju deployments: the trilio-site-recovery-for-openstack charm at revision 15 or later (latest/stable as of 2026-11-06)

Installation

The integration steps differ by deployment method. All methods produce the same running service registered in Keystone.

Juju (Charmed OpenStack)

The charm manages the full Keystone integration automatically through the identity-credentials relation.

1. Deploy the charm

juju deploy trilio-site-recovery-for-openstack \
  --channel latest/stable \
  --config local-site=site-a \
  --config trilio-pkg-source='deb [trusted=yes] https://apt.fury.io/trilio-os-site-recovery-master/ /'

2. Add relations

juju relate trilio-site-recovery-for-openstack:shared-db mysql-innodb-cluster:shared-db
juju relate trilio-site-recovery-for-openstack:amqp rabbitmq-server:amqp
juju relate trilio-site-recovery-for-openstack:identity-credentials keystone:identity-credentials

The charm uses the shared-db, amqp, and identity-credentials relation endpoint names — not mysql-shared, rabbitmq, or keystone-credentials.

3. Run database migration

juju run trilio-site-recovery-for-openstack/leader db-sync

4. Register the service in Keystone

juju run trilio-site-recovery-for-openstack/leader register-service

The charm creates the dr_site_admin and dr_operator Keystone roles and grants the service account the Admin role. It does not automatically grant dr_operator to end users — that delegation happens through per-tenant trusts at runtime.

5. Install the CLI on client nodes

The charm upgrades only the unit it manages. Any machine that runs openstack dr commands needs the client package installed separately:

sudo add-apt-repository \
  'deb [trusted=yes] https://apt.fury.io/trilio-os-site-recovery-master/ /'
sudo apt-get update
sudo apt-get install python3-triliositerecovery

Kolla-Ansible

1. Run the installer

bash deploy/kolla/install.sh

The script deploys the protector_api and protector_engine containers from the protector:latest image and waits for /healthz to return HTTP 200.

2. Run database migration manually

For upgrades crossing migration 022_add_reconcile_operation_type, run the preflight check before syncing:

protector-manage db preflight
protector-manage db sync

The bare protector-manage db sync command does not run the preflight automatically — that is only done by the Juju charm's db-sync action.

OpenShift (RHOSO18)

Use the installer script, which applies eleven of the twelve manifests in the correct order (the twelfth, job-purge.yaml, is used only by the uninstaller) and gates each init Job on completion:

bash deploy/openshift/scripts/install.sh \
  --namespace trilio-site-recovery \
  --image docker.io/xyzmd/trilio-site-recovery-openstack:dev

Do not apply individual manifests by hand. The installer creates the trilio-site-recovery-ca-bundle secret and adds SrDatabasePassword and SrKeystonePassword keys to the shared trilio-openstack-secret in the trilio-openstack namespace. Applying only the Deployment manifests leaves the service unable to authenticate tokens, reach the database, or dispatch RPC messages.


Configuration

All configuration is in INI-style /etc/protector/protector.conf, managed by oslo.config. The Juju charm renders this file from relation data — do not edit it directly on a charm-managed unit, because every hook overwrites it. Use juju config trilio-site-recovery-for-openstack config-flags= for options the charm does not expose directly.

[DEFAULT]

OptionTypeDefaultPurpose
local_sitestring(none)Required. Name of the DR site this instance belongs to. The service cannot participate in any DR operation until this is set.
hoststringlocalhostHostname reported to RabbitMQ and used in RPC routing.
use_mock_storagebooleanfalseUse the in-memory mock storage driver instead of a real array.

The local_site option is the most important setting for a two-site deployment. The engine uses it to determine which array is local and which is remote, and the pure storage driver resolves array routing by comparing this value against primary_site_name / secondary_site_name — a mismatch causes all volumes to appear missing on the recovery site.

[api]

OptionTypeDefaultPurpose
bind_hoststring0.0.0.0IP address the WSGI server binds to.
bind_portinteger8788Port the API listens on.
workersinteger4Number of gunicorn worker processes.

[keystone_authtoken]

OptionTypeDefaultPurpose
auth_urlstring(none)Keystone endpoint for token validation.
www_authenticate_uristring(none)Public Keystone URI returned in WWW-Authenticate headers.

The service uses keystonemiddleware.auth_token to validate every inbound token. Configure these options to point at your local Keystone.

[service_credentials]

OptionTypeDefaultPurpose
usernamestring(none)Service account username (default: protector).
project_namestring(none)Project the service account belongs to.
default_trust_rolesstringmember,dr_operatorComma-separated roles delegated by every per-tenant Keystone trust. Both roles must exist on both sites. Removing member breaks Nova/Cinder access inside the trust; omit this option entirely to use the default.
cafilestring(none)CA bundle for TLS verification of cross-site calls.
insecurebooleanfalseDisable TLS verification (not recommended in production).
default_service_projectstringserviceFallback project name when the site record does not specify one.
default_service_user_domainstringDefaultFallback user domain.
default_service_project_domainstringDefaultFallback project domain.

[database]

OptionTypeDefaultPurpose
connectionstring(none)SQLAlchemy connection URL for the protector database.

Example: connection = mysql+pymysql://protector:PASSWORD@controller/protector

[engine]

OptionTypeDefaultPurpose
topicstringprotector-engineRabbitMQ topic the engine consumes.
cross_site_timeoutinteger30Seconds before a cross-site API call times out. Increase on high-latency links.
recovery_point_interval_minutesinteger0Interval between automatic recovery point creation (0 = disabled).
recovery_point_max_countinteger20Maximum recovery points retained per protection group.
recovery_point_ttl_hoursinteger24Retention time for recovery points in hours.
auto_create_security_groupsbooleanfalseAutomatically create missing security groups on the recovery site during failover.

To set cross_site_timeout on a Juju-managed unit (the charm has no dedicated option for it):

juju config trilio-site-recovery-for-openstack \
  config-flags="engine:cross_site_timeout=60"

Do not add engine.cross_site_timeout to protector.conf directly — the charm rewrites that file on every hook.

[pure_storage]

OptionTypeDefaultPurpose
primary_management_ipstring(none)Management IP of the primary FlashArray.
primary_api_tokenstring(none)API token for the primary array.
secondary_management_ipstring(none)Management IP of the secondary FlashArray.
secondary_api_tokenstring(none)API token for the secondary array.
primary_site_namestring(none)OpenStack site name that uses the primary array. Must match the value of local_site on the site whose array is at primary_management_ip.
secondary_site_namestring(none)OpenStack site name that uses the secondary array.
default_rpo_secondsinteger900Default RPO target for async replication.
snapshot_interval_secondsinteger300Default snapshot interval for async replication.
verify_sslbooleanfalseVerify SSL certificates when connecting to the arrays.
additional_arrayslist(empty)Names of additional array pair sections, each defined as [pure_array:<name>].

The primary_site_name / secondary_site_name pairing is an invariant: each must name the site whose array is at the matching *_management_ip. An identical [pure_storage] section can be deployed unchanged on both nodes — the driver swaps the pair automatically based on which site it is on.

[storage]

OptionTypeDefaultPurpose
storage_driverstringmockStorage backend. Short names: mock (evaluation), pure (production). Full class paths are also accepted.

Cinder policy

Five Cinder policy rules must be relaxed on both sites before failover works. The service runs as a tenant through a Keystone trust, so stock Cinder's admin-only defaults block it:

"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"

The first three are well-known requirements. The last two (type_get, type_get_all) are read-only lookups that some Cinder versions leave open by default — which is why a lab environment succeeds without them and a production cloud fails partway through its first failover with an HTTP 403 at the volume type lookup step.

Add these overrides to /etc/cinder/policy.yaml (or use juju attach-resource with the policyd-override resource name on a charm-managed Cinder).

Annotated sample configuration

[DEFAULT]
# Required: identifies which DR site this node belongs to.
# The pure storage driver matches this value against primary_site_name /
# secondary_site_name to route array calls correctly.
local_site = site-a

[api]
bind_host = 0.0.0.0
bind_port = 8788
workers = 4

[database]
connection = mysql+pymysql://protector:SECRET@db.site-a.example.com/protector

[keystone_authtoken]
auth_url = https://keystone.site-a.example.com:5000/v3
www_authenticate_uri = https://keystone.site-a.example.com:5000

[service_credentials]
username = protector
project_name = service
# default_trust_roles defaults to member,dr_operator — omit unless overriding.
# Both roles must exist in Keystone on both sites before starting the service.

[engine]
topic = protector-engine
cross_site_timeout = 30

[storage]
storage_driver = pure

[pure_storage]
primary_management_ip = 10.0.1.10
primary_api_token = T-xxxxxxxx
secondary_management_ip = 10.0.2.10
secondary_api_token = T-yyyyyyyy
# primary_site_name must be the site whose array is at primary_management_ip.
primary_site_name = site-a
secondary_site_name = site-b
default_rpo_seconds = 900
snapshot_interval_seconds = 300

Usage

How Keystone integration works

Every inbound API request to protector-api (port 8788) passes through keystonemiddleware.auth_token, which validates the token against the local Keystone and injects the user's project, roles, and token into the request context. The middleware is configured via the [keystone_authtoken] section of protector.conf.

The service is registered in the Keystone service catalogue under the service type disaster-recovery (alias protector). Clients discover the endpoint at port 8788 through the catalogue, so standard OpenStack auth environment variables work without specifying the endpoint explicitly.

RBAC and roles

Access control uses oslo.policy. Two custom roles govern DR operations:

  • dr_operator — Required for protection group lifecycle, failover, failback, test failover, and metadata sync. This role is delegated by every per-tenant Keystone trust the service creates, so it must exist in Keystone on both sites.
  • dr_site_admin — Required for site registration, site update/delete, tenant mapping CRUD, tenant mapping validation, replication audit, and site-level failover. This is a cloud-wide role: it carries no project scoping, so a holder on any project can manage sites and tenant mappings for all projects. Grant it to cloud operators on the admin project, not to individual DR tenants.

The admin role is the superset: it satisfies all policy rules that dr_site_admin satisfies. The storage array inventory endpoint (GET /v1/{tenant_id}/storage-arrays) requires role:admin and is not accessible to dr_site_admin alone.

Trust-based tenant impersonation

All DR workflows — failover, failback, test failover, metadata sync — run as the tenant, not as the service account. The engine obtains a Keystone trust-scoped session for each tenant, delegating the member and dr_operator roles, and uses that session to call Nova, Cinder, and Neutron on the tenant's behalf.

Trusts are created automatically on first use: when a user interacts with the DR service, the user becomes the trustor and the protector service account becomes the trustee. No manual trust setup is required. The trust and session are cached per (site, tenant) for up to 30 minutes to avoid Keystone round-trips during long-running operations like failover.

For cross-site operations, the engine translates the local project UUID to the remote project UUID using the tenant mapping table. Without a tenant mapping, the engine assumes the same project UUID on the peer site — which holds for a shared or federated Keystone but essentially never for two independent deployments. Configure tenant mappings for independent clusters:

openstack dr tenant mapping create \
  --local-tenant <local-project-id> \
  --remote-site site-b \
  --remote-tenant <remote-project-id>

How the API and engine communicate

The protector-api service validates requests and writes operation records to the database, then dispatches work to protector-engine over RabbitMQ using oslo.messaging RPC. The engine topic defaults to protector-engine and the RabbitMQ vhost defaults to protector. The engine runs the DR workflow asynchronously inside its own thread and updates operation status in the database as it progresses.

The two components communicate over RabbitMQ and can be restarted independently, but operation requests are not queued for a down engine. Failover and failback are dispatched with a synchronous RPC call (cctxt.call with a 30-second timeout) so the caller receives validation errors and the operation record before the async thread starts. If the engine is down when the request is made, that call fails rather than queueing in RabbitMQ to run later.

Health checks

The API exposes an unauthenticated health endpoint at /healthz. It returns HTTP 200 when the service can serve requests and HTTP 503 when it cannot. This endpoint is polled by the Kolla container HEALTHCHECK, by the installer, and by peer sites before creating tenant mappings. Do not use the root path / as a health check — it returns a static version document and cannot reflect database or RabbitMQ connectivity failures.

curl https://protector.site-a.example.com:8788/healthz

Observability

The service does not emit oslo.messaging notifications. The observability surface is polled:

  • Replication health: openstack dr replication health <protection-group> — queries the storage driver for per-volume replication status
  • Replication audit: openstack dr replication audit — cloud-wide audit of all protection groups
  • Recovery points: openstack dr recovery point list <protection-group> — lists available recovery points and their ages
  • Operation records: openstack dr operation list and openstack dr operation show <id> — show status, progress (0–100), source site, target site, and result data for each DR operation

Operation records include a progress percentage (0–100). There is no estimated completion time — the service does not compute one.

Site failover vs. protection group failover

The service supports two scopes of failover:

Protection group failover — fails over a named set of VMs:

openstack dr failover <protection-group> \
  --network-mapping src-net-id=dst-net-id \
  --flavor-mapping src-flavor-id=dst-flavor-id

Site-level failover — fails over all protection groups for the current tenant's site:

openstack dr site failover <site> --failover-type planned

Network and flavor mapping arguments use = as the separator between source and destination. A mapping value that omits = — for example one written with a colon (:) — is rejected by the CLI with Invalid network mapping format; it is not silently accepted, and resolution does not fall back to name matching for a malformed value. Omit the mapping entirely to let resources resolve by name.


Examples

Register two sites

# Register the local site (run on site-a)
openstack dr site create site-a \
  --auth-url https://keystone.site-a.example.com:5000/v3 \
  --service-username protector \
  --service-password SECRET \
  --service-project-name service \
  --protector-api-url https://protector.site-a.example.com:8788

# Register the peer site
openstack dr site create site-b \
  --auth-url https://keystone.site-b.example.com:5000/v3 \
  --service-username protector \
  --service-password SECRET \
  --service-project-name service \
  --protector-api-url https://protector.site-b.example.com:8788

dr site create takes the name as a positional argument only — there is no --site-type flag.

Create a tenant mapping between independent clusters

openstack dr tenant mapping create \
  --local-tenant aabbcc001122 \
  --remote-site site-b \
  --remote-tenant ddeeff334455

Without a tenant mapping, the engine assumes the same project UUID exists on the peer site. That assumption fails for independent Keystone deployments and surfaces only during the first cross-site operation.

Create a protection group (async replication)

openstack dr protection group create web-tier \
  --primary-site site-a \
  --secondary-site site-b \
  --replication-type async \
  --volume-type replicated-ssd

Both --primary-site and --secondary-site are required — the secondary is never inferred. The --volume-type flag is required for async replication and must not be supplied for active_dr.

Add a VM to a protection group

openstack dr protection group member add web-tier \
  --instance 1234abcd-5678-efgh-ijkl-mnopqrstuvwx \
  --boot-order 1

Only VMs that boot from a Cinder volume can be protected. VMs with LUKS-encrypted volumes are rejected — use array-side encryption (Pure data-at-rest) instead.

Check replication health before a failover window

# Storage-layer health (replication lag, recovery points)
openstack dr replication health web-tier

# Also probe the recovery site for network/flavor/security-group resolution
openstack dr replication health web-tier --probe

The --probe flag asks the recovery site whether the protection group's networks, security groups, and flavors resolve there under the project it will recover into. It does not check storage replication lag. Run it before a planned failover window — a network that exists on the recovery site under a different project is correctly reported missing by --probe but invisible to a storage-only check.

Fail over a protection group

openstack dr failover web-tier \
  --failover-type planned \
  --network-mapping src-net-uuid=dst-net-uuid \
  --flavor-mapping src-flavor-uuid=dst-flavor-uuid \
  --wait

The recovered instance is created under the name <original-name>-failover. The original instance name is preserved in the member record, so the suffix does not compound over a round-trip — but anything outside OpenStack keyed on the instance name (DNS, monitoring, runbooks) will need updating.

Fail back

openstack dr failback web-tier --resync --wait

Failback deletes the DR instance on the recovery site before unmanaging its volume. Because Nova releases the Cinder volume attachment asynchronously after instance deletion, failback waits up to 120 seconds per volume for the attachment to clear before proceeding. A slow detach produces a visibly longer failback — that is the wait working, not a hang.

The restored instance is created under the name <original-name>-restored.

Reconcile an inconsistent protection group

Use reconcile when a failover or failback was interrupted and the protection group is in an inconsistent state:

openstack dr protection group reconcile web-tier

Reconcile works even when the primary site is unreachable. It inspects storage, VMs, and operation history to repair group status, relink discovered VMs, restart SHUTOFF workloads on the writable site, and synchronize the corrected state to the peer. The operation is recorded in dr_operations with operation_type=reconcile and appears in openstack dr operation list.

Site-level failover

openstack dr site failover site-a --failover-type unplanned

This calls POST /v1/{tenant_id}/sites/{site_id}/action with the body {"failover": {"failover_type": "unplanned"}}. The accepted top-level keys are failover and failback only.

Use the Python client library

from keystoneauth1 import session
from keystoneauth1.identity import v3
from keystoneauth1.adapter import Adapter
from triliositerecovery.v1.client import Client

# Build a keystoneauth1 session
auth = v3.Password(
    auth_url='https://keystone.site-a.example.com:5000/v3',
    username='myuser',
    password='SECRET',
    project_name='myproject',
    user_domain_name='Default',
    project_domain_name='Default',
)
ks_session = session.Session(auth=auth)

# Wrap in an Adapter pinned to the protector endpoint
adapter = Adapter(
    session=ks_session,
    endpoint_override='https://protector.site-a.example.com:8788',
)

client = Client(
    session=adapter,
    endpoint='https://protector.site-a.example.com:8788',
    region_name='RegionOne',
)

# List sites — returns plain dicts, not resource objects
sites = client.sites.list()
for site in sites:
    print(site['name'], site['id'])  # use site['key'], not site.key

# List protection groups
pgs = client.protection_groups.list()
for pg in pgs:
    print(pg['name'], pg['status'])

# Fail over a protection group — pg_id is POSITIONAL, not a keyword argument
op = client.operations.failover(
    pg['id'],
    failover_type='planned',
    network_mapping={'src-net-uuid': 'dst-net-uuid'},  # dict, not 'src=dst' string
    flavor_mapping={'src-flavor-uuid': 'dst-flavor-uuid'},
)
print(op['id'])

# Check replication health
health = client.protection_groups.replication_health(pg['id'], probe=True)

# Reconcile
op = client.operations.reconcile(pg['id'])

Four conventions apply to every manager call:

  1. Managers return parsed JSON — plain dicts and lists, never resource objects. Use site['id'], not site.id.
  2. The resource ID is always the first positional argument. Passing it as a keyword (e.g., protection_group_id=) raises TypeError.
  3. Mappings are dicts ({'src-id': 'dst-id'}), not 'src=dst' strings — the = separator is an argparse convention used only by the CLI.
  4. The Client requires both session (a keystoneauth1 Adapter) and endpoint. Omitting endpoint causes requests to be sent to None/<path> and fails at the first call.

DR operation methods (failover, failback, test_failover, cleanup_test_failover, reconcile, cancel) are on client.operations (OperationManager), not on client.protection_groups.


Troubleshooting

Trust creation fails with a missing role error

Symptom: The first DR operation (failover, metadata sync, etc.) fails with an error naming a Keystone role that could not be found.

Cause: The dr_operator or dr_site_admin role does not exist in Keystone on one or both sites. Trust creation fails rather than silently skipping the missing role.

Fix: Create the missing roles on both sites before retrying:

openstack role create dr_operator
openstack role create dr_site_admin

Then retry the operation. If the charm is managing the deployment, run juju run trilio-site-recovery-for-openstack/leader register-service to re-create the roles.


Failover fails with HTTP 403 from Cinder mid-operation

Symptom: A protection group deploys and reports healthy, but the first failover fails partway through with Policy doesn't allow volume_extension:volume_manage to be performed (HTTP 403).

Cause: One or more of the five required Cinder policy rules has not been relaxed on the recovery site. The service runs as a tenant through a Keystone trust and cannot use admin-only Cinder paths. The type_get and type_get_all rules are most commonly missed because some Cinder versions leave them open by default in lab environments.

Fix: Add all five rules to Cinder's policy.yaml on both sites:

"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"

Then retry the failover.


Juju unit is BLOCKED after upgrade with message about local-site

Symptom: After upgrading the trilio-site-recovery-for-openstack charm to 1.0.20 or later, the unit enters BLOCKED status with the message: set local-site, pure-primary-site-name, pure-secondary-site-name.

Cause: This is expected behavior. From 1.0.20 onward, the charm requires local-site to be explicitly configured. It does not infer which site it is on — the inference was unreliable on the recovery site, where failover runs.

Fix: Set the required configuration options:

juju config trilio-site-recovery-for-openstack local-site=site-a
# If using Pure Storage:
juju config trilio-site-recovery-for-openstack \
  pure-primary-site-name=site-a \
  pure-secondary-site-name=site-b

The unit will return to Active once these are set.


Operation source/target site columns are blank

Symptom: openstack dr operation show <id> displays empty values for the Source Site and Target Site columns.

Cause: You are running a service version prior to the fix in b277167. The API previously emitted only source_site_id and target_site_id while the CLI read source_site and target_site.

Fix: Upgrade to a service version that includes b277167. After the upgrade, both columns display the site name, falling back to the site ID if the name cannot be resolved.


Cross-site API calls time out on a high-latency link

Symptom: Operations involving the peer site fail with timeout errors. Logs show cross_site_timeout being exceeded.

Cause: The default cross_site_timeout of 30 seconds is too short for the inter-site latency in your environment.

Fix: Increase the timeout. On Juju-managed units, use config-flags (the charm exposes no dedicated timeout option):

juju config trilio-site-recovery-for-openstack \
  config-flags="engine:cross_site_timeout=60"

On Kolla or bare-metal deployments, set it directly in protector.conf:

[engine]
cross_site_timeout = 60

Pure storage driver reports all volumes missing on failover

Symptom: Failover reports 2 of 2 volumes missing or destroyed even though the volumes are on the array.

Cause: The primary_site_name / secondary_site_name options in [pure_storage] are mismatched — a site name does not match the local_site value on the node where that array is at primary_management_ip. The driver resolves which array to query by site name; a swapped pairing causes it to read the wrong array and report all volumes missing.

Fix: Verify the pairing: primary_site_name must be the name of the site whose array is at primary_management_ip. The same [pure_storage] section can be deployed unchanged on both nodes — the driver swaps the pair automatically:

[pure_storage]
primary_management_ip = 10.0.1.10
primary_site_name = site-a   # the site whose array is at 10.0.1.10
secondary_management_ip = 10.0.2.10
secondary_site_name = site-b

OpenShift pods not found when running kubectl/oc logs

Symptom: oc logs -l app=trilio-site-recovery-api -n trilio-site-recovery returns No resources found.

Cause: The OpenShift manifests use app.kubernetes.io/name and app.kubernetes.io/component labels, not a bare app label.

Fix: Use the correct label selectors:

# API pods
oc logs -n trilio-site-recovery \
  -l app.kubernetes.io/name=trilio-site-recovery,app.kubernetes.io/component=api

# Engine pods
oc logs -n trilio-site-recovery \
  -l app.kubernetes.io/name=trilio-site-recovery,app.kubernetes.io/component=engine

On OpenShift the service logs only to stdout (the ConfigMap sets use_stderr = true with no log_dir), so kubectl logs / oc logs is the only way to read service output — there is no /var/log/protector/ to fall back to.


Database migration fails crossing migration 022

Symptom: protector-manage db sync fails when upgrading across migration 022_add_reconcile_operation_type with an error about an ENUM value.

Cause: Migration 022 alters the operation_type ENUM. The preflight check that validates existing ENUM values before the migration runs automatically only through the Juju charm's db-sync action — not through the bare protector-manage db sync command.

Fix: On Kolla or bare-metal deployments, run the preflight manually before syncing:

protector-manage db preflight
protector-manage db sync

The preflight validates that the native ENUM holds the expected uppercase member names (FAILOVER, FAILBACK, TEST_FAILOVER, TEST_CLEANUP, SYNC_VOLUMES, VALIDATE_REPLICATION, RECONCILE) before the migration is applied.