public inbox for stgt@vger.kernel.org
 help / color / mirror / Atom feed
* undeletable targets with connections fixed with last commits?
@ 2017-05-17 14:30 Benedikt Fraunhofer
  2017-05-24 11:46 ` Anton Kovalenko
  0 siblings, 1 reply; 2+ messages in thread
From: Benedikt Fraunhofer @ 2017-05-17 14:30 UTC (permalink / raw)
  To: stgt

Hello List!

do the last commits

Avoid session* dangling reference on forced target destroy.
and
Avoid dangling session reference in login_security_done

address the problem of targets that just won't go away?

We're running 1.0.63 and quite often have the problem that we can't
delete targets and stgt think's there are connections while the
connection has already been shut down.
Also, those connections seem to pile up. We've some targets with >100
Connections to it while the initiator itself sees only one.

:# tgt-admin -v --force --delete iqn.2016-01.net.g:xbbs-szq8:iscsi
# Removing target: iqn.2016-01.net.g:xbbs-szq8:iscsi
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1012 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 10 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 436 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1017 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1013 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 530 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 435 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1014 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 554 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1019 --cid 1
tgtadm -C 0 --mode target --op delete --tid=27
tgtadm: this target is still active
Command:
        tgtadm -C 0 --mode target --op delete --tid=27
        exited with code: 22.

## trying with force one connection to go away

:# tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1 --force
:# tgt-admin -v --force --delete iqn.2016-01.net.g:xbbs-szq8:iscsi
# Removing target: iqn.2016-01.net.g:xbbs-szq8:iscsi
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 10 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 554 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1013 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1016 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1019 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1012 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1014 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 435 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 1017 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 530 --cid 1
tgtadm -C 0 --op delete --mode conn --tid 27 --sid 436 --cid 1
tgtadm -C 0 --mode target --op delete --tid=27
tgtadm: this target is still active
Command:
        tgtadm -C 0 --mode target --op delete --tid=27
        exited with code: 22.

##connection still there

Offlineing the target, removing initiators (unbind) doesn't change anything.

Thx in advance
  Benedikt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-24 11:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-17 14:30 undeletable targets with connections fixed with last commits? Benedikt Fraunhofer
2017-05-24 11:46 ` Anton Kovalenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox