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
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