Test a protection group
POST/v1/protection-groups/:id/test
Proves the group recoverable in this region, holding its standby copy, without touching the group or its workload. Builds a test profile's isolated network, proves it closed, restores or clones the members onto it, checks them tier by tier, records measured.rto_seconds, then deletes it. Returns 202 with the run. Refused with workload_not_standby_here, or dr_not_enabled at the group's home.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 202
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 503
- default
OK.
With dry_run=true, the plan the run would follow. Nothing was started.
Accepted
Bad Request.
invalid_request: The body is not a single JSON object, names a field this operation does not take, or gives a value of the wrong type.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
forbidden: The token may not test this group.
Not Found.
not_found: No group with this id exists in the token's project.
group_document_not_found: The group's repository no longer shows the document its home writes.
Conflict.
group_busy: A run is acting on the group.
workload_not_standby_here: This region does not hold the group's standby copy. Its workload here is running or released.
split_brain_risk: The group is in split_brain_risk, which only a resync or an acknowledgement clears.
Request Entity Too Large.
body_too_large: The body is larger than the service accepts.
Unsupported Media Type.
unsupported_media_type: The body is not sent as application/json.
Unprocessable Entity.
validation_failed: test_profile_id is not a UUID.
test_profile_required: Neither the request nor the group's registration names a test profile, or the one named does not exist.
test_profile_has_no_project: The test profile names no operator project to build in.
test_profile_invalid: The test profile cannot build an isolated network as it stands, such as one with no address range or no maximum duration.
check_not_permitted: A member's health check type is not among the test profile's permitted_checks.
no_probe_origin: Members declare health checks or the policy names isolation canaries, and there is nothing to run them from: the policy is strict with no jump host, or neither the policy nor this service names a jump host image.
test_project_unreachable: The service cannot act in the test profile's project. An operator grants it a role there.
group_has_no_policy: The group names no protection policy.
policy_has_no_recovery: The group's policy states no recovery section.
member_not_mirrored: For a hot group, a member's disk is not a mirrored volume here.
image_not_found_by_global_id: For a hot group, no image here carries a member's disk's mirror global id.
member_never_synced: No standby holds a member of a warm group yet, or a mirrored image of a hot group holds no complete mirror snapshot to clone. One still syncing is never cloned.
member_has_no_recoverable_state: No backup of a member has been imported here, or the group has no member.
domain_key_missing: A member's backups are encrypted under a dedup domain whose key this cloud lacks.
member_not_ready: A member's readiness reports something else that refuses a recovery, such as binding_missing, and fields gives it as <issue code>: <detail>.
standby_has_no_applied_snapshot: A member's standby holds no snapshot taken when an update finished.
partial_coverage_unaccepted: A member's newest backup does not hold every disk of the server, and the group's registration does not accept partial_coverage.
mirror_unavailable: The group promises the hot tier and this region cannot reach its mirrored images, or its Ceph client library cannot clone a mirror snapshot by its id.
Service Unavailable.
dr_not_enabled: Disaster recovery is not enabled here. Or the group is at its home, where a test is not built. Or this cloud lacks something a test needs, which the detail names.
An error, as an RFC 7807 problem document.