Actions
Bug #78034
closed
VV
VV
pybind/rbd: handle non-existent groups properly in list_snaps()
Bug #78034:
pybind/rbd: handle non-existent groups properly in list_snaps()
Due date:
% Done:
0%
Source:
Backport:
tentacle,umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v21.3.0-1057-g54cd7760b0
Released In:
Upkeep Timestamp:
2026-08-27T18:41:14+00:00
Description
Calling list_snaps() on a non-existent group resulted in a crash.
When we call list_snaps() on a non-existent group, it crashed the entire Python process with a free(): invalid pointer error instead of throwing an ObjectNotFound Error
There is no group with name group_do_not_exist on pool data
>>> import rados; import rbd
>>> rc = rados.Rados(conffile='/home/vinay/workspace/ceph/build/ceph.conf')
>>> rc.connect()
>>> ioctx = rc.open_ioctx('data')
>>> gc = rbd.Group(ioctx, 'group_do_not_exist')
>>> gc.list_snaps()
free(): invalid pointer
Aborted (core dumped) python3
VV Updated by Vinay Bhaskar Varada 5 months ago
- Pull request ID set to 70039
VV Updated by Vinay Bhaskar Varada 5 months ago
- Description updated (diff)
VV Updated by Vinay Bhaskar Varada 5 months ago
- Subject changed from librbd: handle non-existent groups properly in python APIs to librbd: handle non-existent groups properly in list_snaps()
VV Updated by Vinay Bhaskar Varada 5 months ago
- Description updated (diff)
ID Updated by Ilya Dryomov 5 months ago
- Subject changed from librbd: handle non-existent groups properly in list_snaps() to pybind/rbd: handle non-existent groups properly in list_snaps()
- Status changed from New to Fix Under Review
- Backport set to tentacle,umbrella
UB Updated by Upkeep Bot 5 months ago
- Status changed from Fix Under Review to Pending Backport
- Merge Commit set to 54cd7760b094e9d5bc4ada49277fada0b80317cc
- Fixed In set to v21.3.0-1057-g54cd7760b0
- Upkeep Timestamp set to 2026-07-15T19:38:51+00:00
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78265: umbrella: pybind/rbd: handle non-existent groups properly in list_snaps() added
UB Updated by Upkeep Bot 5 months ago
- Copied to Backport #78266: tentacle: pybind/rbd: handle non-existent groups properly in list_snaps() added
UB Updated by Upkeep Bot 5 months ago
- Tags (freeform) set to backport_processed
ID Updated by Ilya Dryomov 3 months ago
- Related to Bug #78937: python/rbd: Iterator cleanups relies on zero-initialized array elements after listing errors added
UB Updated by Upkeep Bot 3 months ago
- Status changed from Pending Backport to Resolved
- Tags (freeform) deleted (
backport_processed) - Upkeep Timestamp changed from 2026-07-15T19:38:51+00:00 to 2026-08-27T18:41:14+00:00
Actions