Delete attachment doesn't fail on remove_export errors
Bug #1935057 reported by
Gorka Eguileor
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
Gorka Eguileor |
Bug Description
When deleting an attachment, if the remove_export method call fails in the cinder driver, then the attachment status is changed to error_detaching but the REST API call doesn't fail.
The end result is:
- Volume status is "available"
- Volume attach_status is "detached"
- There is a volume_attachment record for the volume
- The volume may still be exported in the backend
Cinder's REST API call should fail on remove export failures, like the old API did.
Changed in cinder: | |
importance: | Undecided → Medium |
tags: | added: attachment volume |
tags: | added: api |
To post a comment you must log in.
In last week's cinder meeting we agreed to not fail and just delete the volume_attachment record from the DB instead.
While the volume exists in the system any new attach-detach cycle will be a new opportunity for the remove_export method to succeed, and the delete operation is already ensuring that the remove_export is called.