Actions
Bug #54057
closed[rbd_support] "trash remove" takes image_id_spec, not image_spec
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Description
debug 2022-01-23T00:20:06.560+0000 7f7c9ebcb700 0 log_channel(audit) log [DBG] : from='client.4440 -' entity='client.csi-rbd-provisioner' cmd=[{"format":"json","image_id_spec":"replicapool/11588505b66a","prefix":"rbd task add trash remove"}]: dispatch debug 2022-01-23T00:20:06.560+0000 7f7cb5381700 0 [rbd_support INFO root] queue_trash_remove: ('rbd', '', 'None') debug 2022-01-23T00:20:06.560+0000 7f7cb5381700 0 [rbd_support ERROR root] Failed to locate pool rbd debug 2022-01-23T00:20:06.560+0000 7f7cb5381700 0 [rbd_support ERROR root] Fatal runtime error: Traceback (most recent call last): File "/usr/share/ceph/mgr/rbd_support/module.py", line 43, in wrapper return func(self, *args, **kwargs) File "/usr/share/ceph/mgr/rbd_support/module.py", line 177, in task_add_trash_remove return self.task.queue_trash_remove(image_spec) File "/usr/share/ceph/mgr/rbd_support/task.py", line 668, in queue_trash_remove with self.open_ioctx(image_id_spec[:2]) as ioctx: File "/usr/lib64/python3.6/contextlib.py", line 81, in __enter__ return next(self.gen) File "/usr/share/ceph/mgr/rbd_support/task.py", line 214, in open_ioctx with self.module.rados.open_ioctx(spec[0]) as ioctx: File "rados.pyx", line 988, in rados.Rados.open_ioctx rados.ObjectNotFound: [errno 2] RADOS object not found (error opening pool 'rbd') debug 2022-01-23T00:20:06.560+0000 7f7cb5381700 -1 mgr.server reply reply (2) No such file or directory [errno 2] RADOS object not found (error opening pool 'rbd')
The csi rbd provisioner log shows that the image is failing to be deleted because the image is not found. The error indicates the problem is that the rbd pool doesn't exist, but it's the replicapool where the image was created. The rook CI doesn't create the default rbd pool.
Updated by Ilya Dryomov over 2 years ago
This regression was introduced early in the quincy cycle (https://github.com/ceph/ceph/pull/39371).
Updated by Ilya Dryomov over 2 years ago
- Related to Bug #54058: [rbd_support] level_spec is optional for {mirror snapshot,trash purge} schedule {list,status} added
Updated by Ilya Dryomov over 2 years ago
- Status changed from In Progress to Fix Under Review
- Pull request ID set to 44834
Updated by Ilya Dryomov over 2 years ago
- Status changed from Fix Under Review to Resolved
Actions