Description of problem:
The current detach volume API unconditionally casts to computes to attempt a detach of a volume from a given instance:
https://docs.openstack.org/api-ref/compute/#detach-a-volume-from-an-instanceBug 1847958 will look to reject such requests when the compute is DOWN.
Additionally a new API should be introduced to allow an admin to forcibly detach a volume from an instance when the underlying host is down and has been fenced.
This could take the form of a
/servers/{server_id}/os-volume_attachments/{volume_id}/action admin only API.
Version-Release number of selected component (if applicable):
N/A
How reproducible:
Always
Steps to Reproduce:
1. Attempt to detach a volume from an instance hosted on a downed compute
Actual results:
n-api currently accepts (202) the request and attempts to cast to the compute. Bug 1847958 may change this so n-api rejects the request (500) in the future.
Either way the volume remains attached to the instance until the instance is deleted.
Expected results:
While the instance is hosted on a down compute an admin should be able to detach the volume from the instance.
Additional info:
Starting with the Antelope upstream release, DFG:Compute is tracking its feature backlog in Jira. This feature request has been migrated to DFG:Compute’s new Jira backlog. The Jira tracker for this feature request can be found below. At the time of this writing, only Red Hat associates have access to the Jira tracker, but we are actively working on changing that as more and more of the OSP organization uses Jira for more things.
https://issues.redhat.com/browse/OSP-2933