rbd snap_unprotect deadlock
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ceph (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Triaged
|
Medium
|
Unassigned | ||
Zesty |
Triaged
|
Medium
|
Unassigned | ||
Artful |
Won't Fix
|
Medium
|
Unassigned | ||
Bionic |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Hello everyone:
I'm using openstack mitaka and ceph-jewel-10.2.10 to do snapshot actions. And sometimes it occurs below deadlock condition.
ps -ef | grep cinder-volume
gdb -q python-dbg -p xx
I found 2 frames are racing the lock:
Thread 14 (Thread 0x7f510784c700 (LWP 759193)):
#0 0x00007f513272603e in pthread_
#1 0x00007f5112a4a83c in RWLock::get_write (this=0x5db1258, lockdep=<optimized out>) at ./common/
#2 0x00007f5112ad77c5 in WLocker (lock=..., this=<synthetic pointer>) at ./common/
#3 librbd:
#4 0x00007f5112ad87f8 in librbd:
#5 0x00007f5112ad89ab in librbd:
#6 0x00007f5112a3eb54 in ContextWQ::process (this=0x6e96b20, ctx=0x7f507c31e7b0) at ./common/
#7 0x00007f5112c37a7e in ThreadPool::worker (this=0x7c222b0, wt=0x60fe290) at common/
#8 0x00007f5112c38950 in ThreadPool:
#9 0x00007f5132722dc5 in start_thread () from /lib64/
#10 0x00007f5131d4873d in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7f5132f10740 (LWP 2617826)):
#0 0x00007f51327266d5 in pthread_
#1 0x00007f5112a14b60 in Wait (mutex=..., this=0x7ffd0e2b
#2 C_SaferCond::wait (this=this@
#3 0x00007f5112ab5b8e in librbd:
at librbd/
#4 0x00007f51129fb0d4 in rbd_snap_unprotect (image=0x5db10c0, snap_name=
#5 0x00007f511c32f427 in __pyx_pf_
#6 __pyx_pw_
#7 0x00007f5132a1ba62 in PyEval_EvalFrameEx () from /lib64/
......
The full backtrace is in the attachment.
Thancks a lot if anyone can give advise, ^ _ ^
Changed in ceph (Ubuntu Bionic): | |
status: | Triaged → Fix Committed |
Tracked via upstream ticket: http:// tracker. ceph.com/ issues/ 22120