Comment 0 for bug 1276142

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote : Physical image can not be deleted again if deletion is failed with OSError for some reason

If the deletion of physical image failed with OSError for some reason, it is not possible to delete the image using image-delete api call.

Please refer steps-to-reproduce.txt to reproduce the issue.

Possible solution:

Image status should not get updated in database to "deleted" if response is HTTPForbidden (HTTP 403) or other than HTTP 200