Actions
Feature #38332
closedmgr/dashboard: Prevent deletion of iSCSI IQNs with open sessions
Status:
Resolved
Priority:
Normal
Assignee:
Ricardo Marques
Category:
Component - iSCSI
Target version:
% Done:
0%
Source:
Tags:
administration, iscsi
Backport:
nautilus
Description
Currently, the dashboard does not check if a given IQN is actually in use when it's deleted.
However, it is possible to get an idea of connected initiators via configFS on the iSCSI gateway nodes.
The number of sessions for a given target IQN can be determined via the contents of:
/sys/kernel/config/target/iscsi/$TARGET_IQN/fabric_statistics/iscsi_instance/sessions
If the ceph-iscsi
configuration generates initiator ACLs (e.g. CHAP auth is enabled), then you can see whether an initiator is logged in via:
/sys/kernel/config/target/iscsi/$TARGET_IQN/$TPGT/acls/$INITIATOR_IQN/info
If initiator ACLs are not used, then initiator IQNs for active sessions can be dumped via:
/sys/kernel/config/target/iscsi/$TARGET_IQN/$TPGT/dynamic_sessions
Actions