Image remains in active state even image data is deleted from the rbd store
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Confirmed
|
High
|
Unassigned |
Bug Description
When glance is using rbd store, during image download, if delete call for the same image is attempted, delete fails with InUseByStore raised from the store but image data also gets deleted from the store and still image remains in active state.
Steps to reproduce:
1. Create image:
$ glance image-create --name test-new-image --file gentoo_root.img --disk-format raw --container-format bare
2. Download Image and simultaneously delete that image in other terminal:
$ glance image-download 1e1f9830-
[Errno 32] Corrupt image download. Hash was bc0b615f1a34f1b
$ glance image-delete 1e1f9830-
Unable to delete image '1e1f9830-
3. Try to Download the same Image again
$ glance image-download 1e1f9830-
Image 1e1f9830-
Log:
WARNING glance_
Dec 06 11:40:41 pdeore-bobdev <email address hidden>[813992]: WARNING glance.
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: WARNING glance.
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache [None req-e71cfe15-
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache Traceback (most recent call last):
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache File "/usr/local/
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache with rbd.Image(ioctx, self.name,
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache File "rbd.pyx", line 2894, in rbd.Image.__init__
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache rbd.ImageNotFound: [errno 2] RBD image not found (error opening image b'c0fbdea3-
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache During handling of the above exception, another exception occurred:
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache Traceback (most recent call last):
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache File "/opt/stack/
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache for chunk in image_iter:
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache File "/opt/stack/
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache for chunk in data:
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache File "/usr/local/
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache raise exceptions.
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache glance_
Dec 06 11:40:44 pdeore-bobdev <email address hidden>[813991]: ERROR glance.image_cache
summary: |
- Image is not getting deleted even after image data is deleted from the - rbd store + Image remains in active state even image data is deleted from the rbd + store |
Changed in glance: | |
status: | New → Confirmed |
importance: | Undecided → High |
There seems regression on Ceph side since when I tested with Ceph 'octopus' version, image gets deleted successfully without InUseByStore exception and download interrupts as usual saying hash is not correct.
This deletion issue is exists with Ceph 'reef', 'quincy' & 'pacific' versions.