Project

General

Profile

Actions

Bug #54057

closed

[rbd_support] "trash remove" takes image_id_spec, not image_spec

Added by Ilya Dryomov about 2 years ago. Updated about 2 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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.

https://github.com/rook/rook/issues/9679


Related issues 1 (0 open1 closed)

Related to rbd - Bug #54058: [rbd_support] level_spec is optional for {mirror snapshot,trash purge} schedule {list,status}ResolvedIlya Dryomov

Actions
Actions #1

Updated by Ilya Dryomov about 2 years ago

This regression was introduced early in the quincy cycle (https://github.com/ceph/ceph/pull/39371).

Actions #2

Updated by Ilya Dryomov about 2 years ago

  • Related to Bug #54058: [rbd_support] level_spec is optional for {mirror snapshot,trash purge} schedule {list,status} added
Actions #3

Updated by Ilya Dryomov about 2 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 44834
Actions #4

Updated by Ilya Dryomov about 2 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF