Project

General

Profile

Actions

Bug #44613

closed

librbd:No lockers are obtained, ImageNotFound exception will be output.

Added by daolong zhang about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
octopus,nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

  1. rbd status lpool-ae13e329e4304a2085b6aae977f6ffdb/volume-e10205c959e1454dacfcff41987c63e4
    Watchers:
    watcher=192.168.52.172:0/2151889787 client.8644327 cookie=140681117230512
    watcher=192.168.52.170:0/2933725007 client.8683609 cookie=140683599972336

#python ceph.py
Traceback (most recent call last):
File "ceph.py", line 13, in <module>
img_lock = rbd.LockOwnerIterator(img)
File "rbd.pyx", line 4725, in rbd.LockOwnerIterator.__init__ (/home/jenkins-build/build/workspace/ceph-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.2.8/rpm/el7/BUILD/ceph-14.2.8/build/src/pybind/rbd/pyrex/rbd.c:44180)
rbd.ImageNotFound: [errno 2] error listing lock owners for image volume-e10205c959e1454dacfcff41987c63e4

  1. cat ceph.py
    import rbd
    import rados
    import time
    import datetime

pool="lpool-ae13e329e4304a2085b6aae977f6ffdb"
image_name="volume-e10205c959e1454dacfcff41987c63e4"

cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
cluster.connect()
ioctx = cluster.open_ioctx(pool)
with rbd.Image(ioctx, image_name) as img:
img_lock = rbd.LockOwnerIterator(img)
for lock in img_lock:
print lock


Related issues 2 (0 open2 closed)

Copied to rbd - Backport #44896: nautilus: librbd:No lockers are obtained, ImageNotFound exception will be output.ResolvedNathan CutlerActions
Copied to rbd - Backport #44897: octopus: librbd:No lockers are obtained, ImageNotFound exception will be output.ResolvedNathan CutlerActions
Actions

Also available in: Atom PDF