Turn a standby into volumes
POST/v1/standbys/:id/promote
Creates volumes in the standby's project from its applied_snap, boot disk first, holding applied_backup_id exactly in any standby state. No server is created. All disks become volumes or none do. Each is cloned in full in the background. The caller needs a role, such as member, in the standby's project itself. Refused with standby_has_no_applied_snapshot before the first update finishes.
Any member of the project the token is scoped to.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 413
- 415
- 422
- 502
- 503
- default
OK
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.
restore_trust_refused: The token cannot grant the delegation. It carries none, or it was issued from an application credential.
Unauthorized.
unauthenticated: The token is missing, expired or not valid.
Forbidden.
restore_trust_refused: The caller holds no role on the standby's project to delegate. Grant the account a role in that project and promote again.
Not Found.
not_found: No standby with this id exists, or the token may not restore into its project.
Conflict.
standby_has_no_applied_snapshot: The standby has no applied_snap yet. Nothing it holds is known to be a whole backup.
conflict: The backup it holds no longer exists. Or the standby moved to a newer backup while it was being promoted. Nothing was kept, and promoting again clones the newer one.
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.
recovery_delegation_missing: The volumes must end in the standby's project and the service can obtain no delegation to accept them there. Nothing was created.
Bad Gateway.
restore_trust_refused: The identity service refused the delegation.
service_unavailable: Cloning a disk, registering it as a volume or handing it to the project failed. Nothing the promote created is kept.
Service Unavailable.
service_unavailable: The service has no Ceph or block storage access to promote with, or signs in with an application credential, which cannot act on a delegation.
An error, as an RFC 7807 problem document.