Project

General

Profile

Bug #41542

[test] rbd-nbd functional test may fail to map to /dev/nbd0 with "the device is busy" error

Added by Mykola Golub over 4 years ago. Updated about 4 years ago.

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

0%

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

Description

The test unmap /dev/nbd0, then check with `rbd-nbd list-mapped` that device is not used anymore, then try to map again with `--device /dev/nbd0` and fails with "busy" error [1]:

2019-08-27T14:19:20.281 INFO:tasks.workunit.client.0.smithi087.stderr:+ rbd-nbd list-mapped
2019-08-27T14:19:20.281 INFO:tasks.workunit.client.0.smithi087.stderr:+ expect_false grep '/dev/nbd0 $'
2019-08-27T14:19:20.281 INFO:tasks.workunit.client.0.smithi087.stderr:+ grep '/dev/nbd0 $'
2019-08-27T14:19:20.303 INFO:tasks.workunit.client.0.smithi087.stderr:+ return 0
2019-08-27T14:19:20.304 INFO:tasks.workunit.client.0.smithi087.stderr:+ return 0
2019-08-27T14:19:20.304 INFO:tasks.workunit.client.0.smithi087.stderr:+ DEV=
2019-08-27T14:19:20.305 INFO:tasks.workunit.client.0.smithi087.stderr:++ _sudo rbd-nbd --device /dev/nbd0 map rbd/testrbdnbd10137
2019-08-27T14:19:20.305 INFO:tasks.workunit.client.0.smithi087.stderr:++ local cmd
2019-08-27T14:19:20.305 INFO:tasks.workunit.client.0.smithi087.stderr:+++ id -u
2019-08-27T14:19:20.307 INFO:tasks.workunit.client.0.smithi087.stderr:++ '[' 1000 -eq 0 ']'
2019-08-27T14:19:20.308 INFO:tasks.workunit.client.0.smithi087.stderr:+++ which rbd-nbd
2019-08-27T14:19:20.310 INFO:tasks.workunit.client.0.smithi087.stderr:++ cmd=/usr/bin/rbd-nbd
2019-08-27T14:19:20.310 INFO:tasks.workunit.client.0.smithi087.stderr:++ shift
2019-08-27T14:19:20.311 INFO:tasks.workunit.client.0.smithi087.stderr:++ sudo -nE /usr/bin/rbd-nbd --device /dev/nbd0 map rbd/testrbdnbd10137
2019-08-27T14:19:20.545 INFO:tasks.workunit.client.0.smithi087.stderr:rbd-nbd: the device /dev/nbd0 is busy

Still probably a race exists between the ndb device is fully released by the kernel and rbd-nbd trying to reuse it.

[1] http://qa-proxy.ceph.com/teuthology/trociny-2019-08-27_13:24:57-rbd-wip-mgolub-testing-distro-basic-smithi/4256689/teuthology.log

History

#1 Updated by Mykola Golub about 4 years ago

  • Status changed from New to Duplicate

Duplicate of #44567

Also available in: Atom PDF