Bug 1813402 - python-rbd fails with segfault when unprotect_snap() method is called for closed image object
Summary: python-rbd fails with segfault when unprotect_snap() method is called for clo...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 3.3
Hardware: All
OS: All
low
medium
Target Milestone: ---
: 5.0
Assignee: Greg Farnum
QA Contact: Gopi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-13 17:30 UTC by Alex Stupnikov
Modified: 2023-09-07 22:23 UTC (History)
4 users (show)

Fixed In Version: ceph-16.0.0-8633.el8cp
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-08-30 08:23:40 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 44610 0 None None None 2020-03-13 17:53:16 UTC
Red Hat Issue Tracker RHCEPH-1125 0 None None None 2021-08-30 00:12:13 UTC
Red Hat Product Errata RHBA-2021:3294 0 None None None 2021-08-30 08:24:07 UTC

Description Alex Stupnikov 2020-03-13 17:30:21 UTC
Description of problem:

We have faced a bug in openstack-cinder when unprotect_snap() method was called for closed image object. As a result, SEGFAULT from python-rbd causes cinder-volume to crash.

I am not challenging the idea that unprotect_snap() method shouldn't be called for closed volume and that python-rbd should generate some form of exception. But IMO Segmentation fault is wrong way to handle such situations.

Version-Release number of selected component (if applicable):

This issue was there for a long time. We reproduced it for:
librbd1-12.2.12-74.el7cp.x86_64
python-rbd-12.2.12-74.el7cp.x86_64


How reproducible:

https://bugs.launchpad.net/cinder/+bug/1794956/comments/6



Additional info:

Related bug in cinder-volume #1811587

Comment 4 Jason Dillaman 2020-12-08 22:22:29 UTC
Already included in RHCS 5 (since v15.2.2).

Comment 11 errata-xmlrpc 2021-08-30 08:23:40 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 5.0 bug fix and enhancement), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:3294


Note You need to log in before you can comment on or make changes to this bug.