Both attach and reattach must fail, and the latter must not detach the image first. (cherry picked from commit 430f8962cf2e454cc9b474a22b92a89a26872e9b)
Both attach and reattach must fail, and the latter must not detach the image first. (cherry picked from commit 430f8962cf2e454cc9b474a22b92a89a26872e9b)