Project

General

Profile

Bug #36626

couldn't rewatch after network was blocked and client blacklisted

Added by wb song 4 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
Start date:
10/30/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

ceph version: v12.2.9

reproduceļ¼š

1. map an image in client A

[root@client_A ~]# rbd nbd map pool_test/image_test
/dev/nbd0

2. map an image in client B
[root@client_B ~]# rbd nbd map pool_test/image_test
/dev/nbd0

3. write data in client B and press Ctrl+C to break (client B own the lock)
[root@client_B ~]# dd if=/dev/zero of=/dev/nbd0 bs=4K count=100000 oflag=direct
^C314+0 records in
314+0 records out
1286144 bytes (1.3 MB) copied, 3.87275 s, 332 kB/s

4. down client B's public network
[root@client_B ~]# ifconfig enp3s0f0 down;sleep 40;ifconfig enp3s0f0 up;

5. write data in client A before client B' network up (client B blacklisted)
[root@client_A ~]# dd if=/dev/zero of=/dev/nbd0 bs=4K count=100 oflag=direct
100+0 records in
100+0 records out
409600 bytes (410 kB) copied, 0.000626715 s, 654 MB/s

6. write data in client B
[root@client_B ~]# dd if=/dev/zero of=/dev/nbd0 bs=4K count=1000 oflag=direct        // hung
^C^C

Also available in: Atom PDF