Bug 1439355

Summary: [librbd] is_exclusive_lock_owner doesn't detect that is has been blacklisted
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Jason Dillaman <jdillama>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.3CC: ceph-eng-bugs, ceph-qe-bugs, hnallurv, jdillama, kdreyer
Target Milestone: rcKeywords: CodeChange
Target Release: 2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.7-3.el7cp Ubuntu: ceph_10.2.7-4redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-19 13:31: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 Jason Dillaman 2017-04-05 19:17:45 UTC
Description of problem:
The librbd API's "is_exclusive_lock_owner" does not properly detect when a client has been blacklisted.

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

How reproducible:
100%

Steps to Reproduce:
1. use the API directly
2. acquire exclusive lock on image
3. blacklist image
4. test exclusive lock ownership status

Actual results:
API doesn't detect the blacklist and loss of exclusive lock

Expected results:
API should detect that is was blacklisted

Additional info:

Comment 2 Jason Dillaman 2017-04-05 19:18:54 UTC
This fix is required for low-level RBD/iSCSI integration via TCMU

Comment 7 Vidushi Mishra 2017-05-23 11:11:46 UTC
(In reply to Jason Dillaman from comment #0)
> Description of problem:
> The librbd API's "is_exclusive_lock_owner" does not properly detect when a
> client has been blacklisted.
> 
> Version-Release number of selected component (if applicable):
> 2.2
> 
> How reproducible:
> 100%
> 
> Steps to Reproduce:
> 1. use the API directly
> 2. acquire exclusive lock on image
> 3. blacklist image
> 4. test exclusive lock ownership status
> 
> Actual results:
> API doesn't detect the blacklist and loss of exclusive lock
> 
> Expected results:
> API should detect that is was blacklisted
> 
> Additional info:

@Jason,
Can you please share the procedure to blacklist the image?

Comment 8 Jason Dillaman 2017-05-23 13:45:37 UTC
@Vidushi: this BZ was flagged as CodeChange since it really isn't testable (since it requires using the API directly).

Comment 12 errata-xmlrpc 2017-06-19 13:31: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, 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-2017:1497