tgt does not force delete iscsi connections
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tgt (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Similar to 1305343 I still have the issue that I_T nexus connections are not cleaned up, although I disconnected the initiator sessions and removed the node:
~# uname -r
3.13.0-39-generic
~# lsb_release -r
Release: 14.04
~# tgt-admin -v --force --delete iqn.2010-
# Removing target: iqn.2010-
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 88 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 87 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 14 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 20 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 30 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 28 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 96 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 51 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 43 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 73 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 54 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 46 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 76 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 9 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 67 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 37 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 71 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 91 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 53 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 23 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 22 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 61 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 75 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 59 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 58 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 69 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 52 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 8 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 21 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 56 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 19 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 64 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 57 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 25 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 48 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 15 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 31 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 33 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 60 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 62 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 11 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 65 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 7 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 95 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 81 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 89 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 6 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 45 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 4 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 12 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 5 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 93 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 78 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 2 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 72 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 3 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 38 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 63 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 29 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 86 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 36 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 1 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 32 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 79 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 26 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 17 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 84 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 66 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 68 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 13 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 77 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 47 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 85 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 74 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 16 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 40 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 41 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 92 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 90 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 35 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 27 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 18 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 49 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 50 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 44 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 94 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 39 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 24 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 70 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 80 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 83 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 55 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 42 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 34 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 10 --cid 0
tgtadm -C 0 --op delete --mode conn --tid 1 --sid 82 --cid 0
tgtadm -C 0 --mode target --op delete --tid=1
tgtadm: this target is still active
Command:
tgtadm -C 0 --mode target --op delete --tid=1
exited with code: 22.
I also did try to offline target but that didn't change anything:
~# tgtadm --lld iscsi --op show --mode target
Target 1: iqn.2010-
System information:
Driver: iscsi
State: offline
I_T nexus information:
I_T nexus: 1
IP Address: 10.x.x.x
I_T nexus: 2
IP Address: 10.x.x.x
I_T nexus: 3
IP Address: 10.x.x.x
I_T nexus: 4
IP Address: 10.x.x.x
I_T nexus: 5
IP Address: 10.x.x.x
I_T nexus: 6
IP Address: 10.x.x.x
I_T nexus: 7
IP Address: 10.x.x.x
I_T nexus: 8
IP Address: 10.x.x.x
I_T nexus: 9
IP Address: 10.x.x.x
I_T nexus: 10
IP Address: 10.x.x.x
I_T nexus: 11
IP Address: 10.x.x.x
I_T nexus: 12
IP Address: 10.x.x.x
I_T nexus: 13
IP Address: 10.x.x.x
I_T nexus: 14
IP Address: 10.x.x.x
I_T nexus: 15
IP Address: 10.x.x.x
I_T nexus: 16
IP Address: 10.x.x.x
I_T nexus: 17
IP Address: 10.x.x.x
I_T nexus: 18
IP Address: 10.x.x.x
I_T nexus: 19
IP Address: 10.x.x.x
I_T nexus: 20
IP Address: 10.x.x.x
I_T nexus: 21
IP Address: 10.x.x.x
I_T nexus: 22
IP Address: 10.x.x.x
I_T nexus: 23
IP Address: 10.x.x.x
I_T nexus: 24
IP Address: 10.x.x.x
I_T nexus: 25
IP Address: 10.x.x.x
I_T nexus: 26
IP Address: 10.x.x.x
I_T nexus: 27
IP Address: 10.x.x.x
I_T nexus: 28
IP Address: 10.x.x.x
I_T nexus: 29
IP Address: 10.x.x.x
I_T nexus: 30
IP Address: 10.x.x.x
I_T nexus: 31
IP Address: 10.x.x.x
I_T nexus: 32
IP Address: 10.x.x.x
I_T nexus: 33
IP Address: 10.x.x.x
I_T nexus: 34
IP Address: 10.x.x.x
I_T nexus: 35
IP Address: 10.x.x.x
I_T nexus: 36
IP Address: 10.x.x.x
I_T nexus: 37
IP Address: 10.x.x.x
I_T nexus: 38
IP Address: 10.x.x.x
I_T nexus: 39
IP Address: 10.x.x.x
I_T nexus: 40
IP Address: 10.x.x.x
I_T nexus: 41
IP Address: 10.x.x.x
I_T nexus: 42
IP Address: 10.x.x.x
I_T nexus: 43
IP Address: 10.x.x.x
I_T nexus: 44
IP Address: 10.x.x.x
I_T nexus: 45
IP Address: 10.x.x.x
I_T nexus: 46
IP Address: 10.x.x.x
I_T nexus: 47
IP Address: 10.x.x.x
I_T nexus: 48
IP Address: 10.x.x.x
I_T nexus: 49
IP Address: 10.x.x.x
I_T nexus: 50
IP Address: 10.x.x.x
I_T nexus: 51
IP Address: 10.x.x.x
I_T nexus: 52
IP Address: 10.x.x.x
I_T nexus: 53
IP Address: 10.x.x.x
I_T nexus: 54
IP Address: 10.x.x.x
I_T nexus: 55
IP Address: 10.x.x.x
I_T nexus: 56
IP Address: 10.x.x.x
I_T nexus: 57
IP Address: 10.x.x.x
I_T nexus: 58
IP Address: 10.x.x.x
I_T nexus: 59
IP Address: 10.x.x.x
I_T nexus: 60
IP Address: 10.x.x.x
I_T nexus: 61
IP Address: 10.x.x.x
I_T nexus: 62
IP Address: 10.x.x.x
I_T nexus: 63
IP Address: 10.x.x.x
I_T nexus: 64
IP Address: 10.x.x.x
I_T nexus: 65
IP Address: 10.x.x.x
I_T nexus: 66
IP Address: 10.x.x.x
I_T nexus: 67
IP Address: 10.x.x.x
I_T nexus: 68
IP Address: 10.x.x.x
I_T nexus: 69
IP Address: 10.x.x.x
I_T nexus: 70
IP Address: 10.x.x.x
I_T nexus: 71
IP Address: 10.x.x.x
I_T nexus: 72
IP Address: 10.x.x.x
I_T nexus: 73
IP Address: 10.x.x.x
I_T nexus: 74
IP Address: 10.x.x.x
I_T nexus: 75
IP Address: 10.x.x.x
I_T nexus: 76
IP Address: 10.x.x.x
I_T nexus: 77
IP Address: 10.x.x.x
I_T nexus: 78
IP Address: 10.x.x.x
I_T nexus: 79
IP Address: 10.x.x.x
I_T nexus: 80
IP Address: 10.x.x.x
I_T nexus: 81
IP Address: 10.x.x.x
I_T nexus: 82
IP Address: 10.x.x.x
I_T nexus: 83
IP Address: 10.x.x.x
I_T nexus: 84
IP Address: 10.x.x.x
I_T nexus: 85
IP Address: 10.x.x.x
I_T nexus: 86
IP Address: 10.x.x.x
I_T nexus: 87
IP Address: 10.x.x.x
I_T nexus: 88
IP Address: 10.x.x.x
I_T nexus: 89
IP Address: 10.x.x.x
I_T nexus: 90
IP Address: 10.x.x.x
I_T nexus: 91
IP Address: 10.x.x.x
I_T nexus: 92
IP Address: 10.x.x.x
I_T nexus: 93
IP Address: 10.x.x.x
I_T nexus: 94
IP Address: 10.x.x.x
I_T nexus: 95
IP Address: 10.x.x.x
I_T nexus: 96
IP Address: 10.x.x.x
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Prevent removal: No
SWP: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00010001
SCSI SN: beaf11
Size: 322123 MB, Block size: 512
Online: Yes
Prevent removal: No
SWP: No
Backing store type: rdwr
Backing store path: /dev/cinder-
Backing store flags:
Account information:
ACL information:
More disturbing is that no error message are logged at kernel level, unlike the previous bug.
It's worth mentioning that tgt is running in a LXC container.
Changed in tgt (Ubuntu): | |
importance: | Undecided → Medium |
tags: | added: trusty |
Status changed to 'Confirmed' because the bug affects multiple users.