Bug 1489866

Summary: ensure that multiple CephContexts in a process image don't crash the program
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jeff Layton <jlayton>
Component: CephFSAssignee: Patrick Donnelly <pdonnell>
Status: CLOSED ERRATA QA Contact: Parikshith <pbyregow>
Severity: high Docs Contact:
Priority: medium    
Version: 3.0CC: ceph-eng-bugs, ceph-qe-bugs, edonnell, gmeno, hnallurv, jlayton, john.spray, pdonnell, rperiyas, rraja, shmohan
Target Milestone: z2   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-12.2.4-1.el7cp Ubuntu: ceph_12.2.4-2redhat1 Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-26 17:38:39 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:
Bug Depends On: 1548067    
Bug Blocks: 1475544    

Description Jeff Layton 2017-09-08 14:08:37 UTC
Currently, when you create a new ceph client we also create a CephContext to hold some global information. Each client that ganesha creates is currently creating its own CephContext and those can interfere with one another.

Ensure that we only create a CephContext when one doesn't already exist.

Comment 2 Jeff Layton 2017-09-11 18:27:57 UTC
I see that this was reassigned to cephfs. To be clear, this is _not_ a cephfs specific problem, as far as I can tell. The CephContext is also used by librados, and programs that use it directly will need to be fixed in a similar fashion.

Comment 4 Jeff Layton 2017-10-06 14:19:56 UTC
I've been tracking this in the associated upstream ceph bug (# 21512). There is a pull request in flight now but it needs some review and an ack from one of the authors of that piece of code.

Comment 5 Jeff Layton 2017-10-20 13:59:06 UTC
Upstream set has been merged.

Comment 17 Ramakrishnan Periyasamy 2018-03-19 10:58:13 UTC
Provided qa_ack, clearing needinfo flag.

Comment 25 Ramakrishnan Periyasamy 2018-04-11 03:36:38 UTC
Thanks for the Help Patrick

Moving this bug to verified state.

Comment 29 errata-xmlrpc 2018-04-26 17:38:39 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, 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-2018:1259