Bug 1813402

Summary: python-rbd fails with segfault when unprotect_snap() method is called for closed image object
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Alex Stupnikov <astupnik>
Component: RBDAssignee: Greg Farnum <gfarnum>
Status: CLOSED ERRATA QA Contact: Gopi <gpatta>
Severity: medium Docs Contact:
Priority: low    
Version: 3.3CC: ceph-eng-bugs, kdreyer, mmuench, vereddy
Target Milestone: ---   
Target Release: 5.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: ceph-16.0.0-8633.el8cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-30 08:23:40 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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