Project

General

Profile

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()

Added by Vinay Bhaskar Varada 5 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
tentacle,umbrella
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Tags (freeform):
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

Related issues 3 (0 open — 3 closed)

Related to rbd - Bug #78937: python/rbd: Iterator cleanups relies on zero-initialized array elements after listing errorsResolvedRamana Raja

Actions
Copied to rbd - Backport #78265: umbrella: pybind/rbd: handle non-existent groups properly in list_snaps()ResolvedVinay Bhaskar Varada

Actions
Copied to rbd - Backport #78266: tentacle: pybind/rbd: handle non-existent groups properly in list_snaps()ResolvedVinay Bhaskar Varada

Actions

VV Updated by Vinay Bhaskar Varada 5 months ago Actions #1

  • Pull request ID set to 70039

VV Updated by Vinay Bhaskar Varada 5 months ago Actions #2

  • Description updated (diff)

VV Updated by Vinay Bhaskar Varada 5 months ago Actions #3

  • 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 Actions #4

  • Description updated (diff)

ID Updated by Ilya Dryomov 5 months ago Actions #5

  • 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 Actions #6

  • 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 Actions #7

  • Copied to Backport #78265: umbrella: pybind/rbd: handle non-existent groups properly in list_snaps() added

UB Updated by Upkeep Bot 5 months ago Actions #8

  • Copied to Backport #78266: tentacle: pybind/rbd: handle non-existent groups properly in list_snaps() added

UB Updated by Upkeep Bot 5 months ago Actions #9

  • Tags (freeform) set to backport_processed

ID Updated by Ilya Dryomov 3 months ago Actions #10

  • 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 Actions #11

  • 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

Also available in: PDF Atom