Protection groups
Disaster recovery groups and failover.
group cleanup
Clean up what a superseded recovery left in this region.
The stopped servers are deleted and their volumes unmanaged, not deleted: the data stays in the storage pool and leaves the cloud's inventory. The ports and floating IPs the recovery created are deleted.
openstack backup group cleanup <group> [--dry-run] [--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--dry-run | Show what would be removed and start nothing. |
--reason <reason> | Why the group is cleaned up, recorded with the run. |
group create
Create a protection group.
A group is the unit of failover: its instances recover together, to one consistent moment, in the boot order given. The policy's recovery section sets the site, the recovery tier and the objectives, and every member must already be under a plan with that policy. --network-map maps a network in the recovery region's backup to one here for a failback that rebuilds a member whose original is gone, and a failover uses the registration's map.
openstack backup group create <name> --policy <policy> --instance <instance> \
[--network-map <from=to>]
| Argument | Description |
|---|---|
<name> | Group name. |
--policy <policy> | Protection policy, by name or id, that every member's plan uses. Required. |
--instance <instance> | Instance to include, in boot order (repeatable) Required. |
--network-map <from=to> | Network map used only by a failback rebuild (repeatable) |
group delegation create
Create the delegation this region uses to act in the group's project.
A recover, and a failback at home, build or start servers in the group's project through this delegation, and creating it again replaces it. A release, a resync, a cleanup and a test do not use it. Create it with a token scoped to the group's project and issued to a member of it (a system-scoped token gets 403), or have an operator grant this region's service user a role in the project instead.
openstack backup group delegation create <group> [--expires-in <duration>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--expires-in <duration> | How long the delegation lasts, 1h to 8784h, default 90 days. |
group delegation delete
Remove the group's delegation.
openstack backup group delegation delete <group>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
group delete
Delete one or more protection groups.
A recovery registration whose runs built servers, volumes, ports or floating addresses here and kept them is refused while they are still held: clean it up first, or fail it back and then clean it up where the workload runs here. --keep-resources deletes it anyway and leaves them to the project as they are.
openstack backup group delete <group> [<group> ...] [--keep-resources]
| Argument | Description |
|---|---|
<group> | Group, by name or id. Takes one or more. |
--keep-resources | Delete a registration whose runs still hold resources (operator) |
group failback binding create
Bind the instances another region recovered back to this group's members (operator).
Run at the group's home. Each instance in the other region's recovery record is bound to the member it came from, in the group's project, and this region then reads the backups taken of it there. Existing bindings are left alone.
openstack backup group failback binding create <group> [--dry-run] \
[--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--dry-run | Show the bindings and create nothing. |
--reason <reason> | Why the bindings are created, recorded with them. |
group list
List protection groups.
openstack backup group list [--limit <limit>] [--project <project>] \
[--role <role>]
| Argument | Description |
|---|---|
--limit <limit> | Maximum groups returned. |
--project <project> | Filter by project (operator) |
--role <role> | Primary (created here) or recovery (another region's group) One of primary, recovery. |
group mirror list
List a hot group's mirrored disks as this region's cluster reads them.
One row per disk: its role and status here, the peer cluster's status, the newest complete mirror snapshot, how far behind the RPO target it is, and whether either cluster reports split brain.
openstack backup group mirror list <group>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
group readiness show
Show whether a group could be recovered right now, member by member.
Where the group recovers, what each member would recover to and what a recover would refuse. Where the group runs, what the recovery region last reported, and how old that report is.
openstack backup group readiness show <group>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
group recover
Recover a protection group here, planned after a release or unplanned without one.
At the group's home a planned recover is the failback: each member returns to its original instance, copying only what changed where it can, and the recover refuses if an original was written after it was released. --overwrite (operator) comes home anyway: each diverged original is stopped, kept as a divergence backup, and written over in full. An unplanned recover at home takes the originals back as they are.
openstack backup group recover <group> --mode <mode> [--confirm] \
[--wait-for-release <duration>] [--recovery-point <choice>] \
[--max-recovery-point-age <duration>] [--overwrite] [--dry-run] \
[--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--mode <mode> | Planned (after a verifiable release) or unplanned (operator) Required. One of planned, unplanned. |
--confirm | Accept that the other region may serve writes, required for unplanned. |
--wait-for-release <duration> | Planned only: wait up to this long, at most 30m, for the release. |
--recovery-point <choice> | Aligned (default, one common instant) or newest (per member) One of aligned, newest. |
--max-recovery-point-age <duration> | Refuse if any member's recovery point is older than this, e.g. 2h. |
--overwrite | Overwrite diverged originals, keeping divergence backups (operator) |
--dry-run | Show each member and the backup it would recover to. |
--reason <reason> | Why the group is recovered, recorded with the run. |
group register
Register this region's recovery of another region's group (operator).
Members, boot order and promise come from the group document its home
wrote to a repository this region reads (openstack backup repository group list). Every member is bound to the target project, with a standby
in --standby-pool for a warm group, and members added at home follow.
A member already bound to another project is refused with
binding_conflict.
openstack backup group register <group-uid> --repository <repository> \
[--origin-cloud <cloud>] --target-project <project> \
[--target-domain <domain>] --policy <policy> [--name <name>] \
[--mapping-profile <profile>] [--test-profile <test-profile>] \
[--test-every <duration>] [--standby-pool <pool>] \
[--standby-site <site>] [--standby-prefix <prefix>] \
[--accept-gap <element>] [--network-map <from=to>]
| Argument | Description |
|---|---|
<group-uid> | The group's uid, as its home minted it. |
--repository <repository> | Repository the group's document was read from, by name or id. Required. |
--origin-cloud <cloud> | Cloud that wrote the document, refused if the document differs. |
--target-project <project> | Project here the group recovers into. Required. |
--target-domain <domain> | Domain of the target project, if the service cannot look it up. |
--policy <policy> | Local policy, by name or id, whose recovery site is the group's home. Required. |
--name <name> | Name here, default the group's name. |
--mapping-profile <profile> | Mapping profile for the home's flavors and networks, by name or id. |
--test-profile <test-profile> | Test profile, by name or id, the group's tests run under. |
--test-every <duration> | Test cadence, e.g. 720h, default the cadence the policy promised. |
--standby-pool <pool> | Pool the members' standbys live in, required for a warm group. |
--standby-site <site> | Site the standbys live at, by name or id, default this cloud's. |
--standby-prefix <prefix> | Prefix for the standbys' image names. |
--accept-gap <element> | Unmapped element to accept, e.g. network:net-1 (repeatable) |
--network-map <from=to> | Home network to network here (repeatable) |
group release
Release a protection group where it runs: stop it, take its last copy and hand it over.
The members' plans pause, each instance is locked and stopped, a final backup of each is taken and copied, and the release record the recovery region verifies is written. Until that record is written, a failure starts the instances again and resumes the plans.
openstack backup group release <group> [--reason <reason>] [--force] \
[--dry-run]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--reason <reason> | Why the group is released, recorded with the run. |
--force | Release without a fresh recovery-region readiness report (operator) |
--dry-run | Show what would stop and the recovery region's last report. |
group resync
Discard this region's divergence after backing it up (operator).
The members are locked and stopped, what they wrote since the other region recovered the group is kept as a backup labelled with the one it diverged from, and this region becomes standby while the workload runs in the other region.
openstack backup group resync <group> [--confirm] [--no-divergence-backup] \
[--dry-run] [--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--confirm | Accept that writes here since the takeover are discarded. |
--no-divergence-backup | Stop the members without first backing up what diverged here. |
--dry-run | Show which members diverged and the other region's record. |
--reason <reason> | Why the group is resynced, recorded with the run. |
group run abort
Stop a run past its point of no return, leaving everything as it is (operator).
openstack backup group run abort <group> <run>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
<run> | Run id. |
group run cancel
Cancel a run before its point of no return and tear down what it built.
openstack backup group run cancel <group> <run>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
<run> | Run id. |
group run list
List a group's runs: releases, recovers, tests, resyncs and cleanups.
openstack backup group run list <group> [--limit <limit>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--limit <limit> | Maximum runs returned. |
group run resume
Resume a halted run where its journal left off.
openstack backup group run resume <group> <run>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
<run> | Run id. |
group run show
Show one run, with --long its journal and its resources.
openstack backup group run show <group> <run> [--long]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
<run> | Run id. |
--long | Include the run's journal and its resources. |
group set
Change a protection group or a recovery registration.
--instance replaces the members, in boot order. A recovery registration takes the mapping profile, test profile, test cadence and accepted gaps.
openstack backup group set <group> [--name <name>] [--policy <policy>] \
[--instance <instance>] [--network-map <from=to>] \
[--mapping-profile <profile>] [--test-profile <test-profile>] \
[--test-every <duration>] [--accept-gap <element>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--name <name> | New group name. |
--policy <policy> | Protection policy, by name or id. |
--instance <instance> | Member instance, in boot order, replacing the members (repeatable) |
--network-map <from=to> | Network map, replacing the map (repeatable) |
--mapping-profile <profile> | Mapping profile, by name or id. |
--test-profile <test-profile> | Test profile, by name or id. |
--test-every <duration> | Test cadence, e.g. 720h. |
--accept-gap <element> | Unmapped element to accept, replacing the list (repeatable) |
group show
Show a protection group.
openstack backup group show <group>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
group sla show
Show a group's recovery objectives against what it actually achieves.
openstack backup group sla show <group>
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
group split brain acknowledge
Keep this region's copy after a split brain (system administrator).
Both regions ran the group. Acknowledging says this region's copy survives: the group here is protected again at a newer epoch, and the other region refuses to run its copy until a resync there. The opposite choice is a resync here.
openstack backup group split brain acknowledge <group> [--confirm] \
[--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--confirm | Accept that the other region's copy is discarded. |
--reason <reason> | Why this region's copy is kept, recorded with the acknowledgement. |
group test
Test a protection group's recovery on an isolated test network, then delete it.
openstack backup group test <group> [--test-profile <test-profile>] \
[--dry-run] [--reason <reason>]
| Argument | Description |
|---|---|
<group> | Group, by name or id. |
--test-profile <test-profile> | Test profile, by name or id, required if the registration names none. |
--dry-run | Show each member and the test profile it would be built under. |
--reason <reason> | Why the test is run, recorded with the run. |