Bug 195585 - iscsictl -R -n <nickname> always removes all active sessions
Summary: iscsictl -R -n <nickname> always removes all active sessions
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 10.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: Edward Tomasz Napierala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-02 21:04 UTC by Martin Birgmeier
Modified: 2014-12-03 18:39 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Birgmeier 2014-12-02 21:04:55 UTC
Scenario:
- The server exports multiple iscsi targets (mapped to zvols)
- The client has a configuration file with nicknames for these targets
- Doing...

# iscsictl -A -n target1
# iscsictl -A -n target2
# iscsictl -L
Target name                          Target portal    State
iqn.1995-06.server:target1           server           Connected: da0
iqn.1995-06.server:target2           server           Connected: da1
# iscsictl -R -n target2
# iscsictl -L
Target name                          Target portal    State
#

... removes all sessions instead of just the one for "target2".
Comment 1 Edward Tomasz Napierala freebsd_committer freebsd_triage 2014-12-03 10:20:09 UTC
This should be fixed in 10-STABLE, as r274546.  Could you upgrade and see if it's fixed?  Thanks!
Comment 2 Martin Birgmeier 2014-12-03 18:39:43 UTC
I backported r274546 to releng/10.1 and can confirm that the issue is fixed.

Thank you!

-- Martin