[Glance_store] RBD: On image creation error, image is not deleted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mirantis OpenStack |
Invalid
|
High
|
Sergii Rizvan | ||
7.0.x |
Fix Released
|
High
|
Sergii Rizvan |
Bug Description
Upstream bug: https:/
When an exception rises while adding/creating an image, and the image has been created, this new image is not properly deleted.
The fault lies in the `_delete_image` call of the Store.add method that is providing incorrect arguments.
From glance-api log: http://
Steps to reproduce:
1. Download some cloud image, for example:
wget http://
2. Start creating image with glance CLI:
glance image-create --file ./CentOS-
3. Interrupt in creating process in the middle of creation with CTRL-C:
[======
4. Inspect /var/log/
should be captured.
Reproducibility:
Allways.
Impact:
The bug prevents deleting a residual image from backend when an exception rises while adding/creating an image.
Description of the environment:
MOS 7.0
1 controller
3 compute + ceph_osd
Ceph backend for glance images.
Changed in mos: | |
status: | Confirmed → Invalid |
description: | updated |
tags: | added: on-automation |
Here are the patches for /review. fuel-infra. org/#/c/ 27382/ /review. fuel-infra. org/#/c/ 27383/
7.0: https:/
6.1: https:/