/sys/block/*device*/pid check is not enough. I see that the unix
socket used by the device my be stuck as well, so let's add another
check for the path to the unix socket for the device as well to
figure out if the device is free. Complain loud and clear that the
qemu-nbd is leaking resources.
Reviewed: https:/ /review. openstack. org/66740 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a0891ad0af3 16f5423c106e11c a2af7b17b76dd3
Committed: https:/
Submitter: Jenkins
Branch: master
commit a0891ad0af316f5 423c106e11ca2af 7b17b76dd3
Author: Davanum Srinivas <email address hidden>
Date: Tue Jan 14 19:29:46 2014 -0500
Additional check for qemu-nbd hang
/sys/ block/* device* /pid check is not enough. I see that the unix
socket used by the device my be stuck as well, so let's add another
check for the path to the unix socket for the device as well to
figure out if the device is free. Complain loud and clear that the
qemu-nbd is leaking resources.
Change-Id: I28cedffba7a991 5ef6f7888989e40 e4d0de475c6
Closes-Bug: #973413
Partial-Bug: #1254890