Revert image status to queued if image conversion fails
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| Glance |
Fix Released
|
Undecided
|
Abhishek Kekane | ||
Bug Description
When glance has enabled import plugin `image_conversion` and if this plugin fails to convert the image to its desired format then image remains in `importing` state forever and also image data remains in staging area unless you delete that image.
Ideally image data should be deleted from the staging area and image state should be rolled back to `queued so that user can rectify the error in previous attempt and import image again.
Environment settings:
Ensure you have glance-
Ensure you have image_conversion plugin enabled in glance-
How to reproduce:
1. Create bad image file with below command
qemu-img create -f qcow2 -o data_file=
2. Use above file to create image using import workflow
glance image-create-
Expected result:
Operation should fail, image should be in queued state and image data should be deleted from staging area
Actual result:
Operation fails, image remains in importing state and image data remains in staging area
| Changed in glance: | |
| assignee: | nobody → Abhishek Kekane (abhishek-kekane) |

Fix proposed to branch: master /review. opendev. org/c/openstack /glance/ +/923624
Review: https:/