Project

General

Profile

Feature #38332

mgr/dashboard: Prevent deletion of iSCSI IQNs with open sessions

Added by Lenz Grimmer over 1 year ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Category:
dashboard/iscsi
Target version:
% Done:

0%

Source:
Tags:
administration, iscsi
Backport:
nautilus
Reviewed:
Affected Versions:
Pull request ID:

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

Related issues

Related to mgr - Bug #39004: mgr/dashboard: Prevent target update if logged in client deletion is required Won't Fix 03/28/2019
Duplicated by mgr - Bug #38273: mgr/dashboard: Prevent iSCSI target edit/delete until clients are logged out Duplicate 02/12/2019
Duplicated by mgr - Bug #43524: mgr/dashboard: forward ceph-iscsi HTTP response error messages to dashboard front-end Duplicate
Copied to mgr - Backport #43354: nautilus: mgr/dashboard: Prevent deletion of iSCSI IQNs with open sessions Resolved

History

#1 Updated by Ricardo Marques over 1 year ago

  • Duplicated by Bug #38273: mgr/dashboard: Prevent iSCSI target edit/delete until clients are logged out added

#2 Updated by Ricardo Marques over 1 year ago

  • Status changed from New to In Progress

#3 Updated by Ricardo Marques over 1 year ago

  • Status changed from In Progress to New

#4 Updated by Ricardo Marques over 1 year ago

The number of open sessions is now provided by ceph-iscsi '/api/targetinfo' REST Api endpoint.

#5 Updated by Ricardo Marques about 1 year ago

  • Assignee set to Ricardo Marques

#6 Updated by Ricardo Marques about 1 year ago

  • Target version set to v15.0.0

#7 Updated by Ricardo Marques about 1 year ago

  • Status changed from New to In Progress

#8 Updated by Ricardo Marques about 1 year ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 29133

#9 Updated by Ricardo Marques about 1 year ago

  • Status changed from Fix Under Review to Resolved

#10 Updated by Ricardo Marques 11 months ago

  • Related to Bug #39004: mgr/dashboard: Prevent target update if logged in client deletion is required added

#11 Updated by Ricardo Marques 10 months ago

  • Status changed from Resolved to Pending Backport
  • Backport set to nautilus

#12 Updated by Ricardo Marques 10 months ago

  • Copied to Backport #43354: nautilus: mgr/dashboard: Prevent deletion of iSCSI IQNs with open sessions added

#13 Updated by Ernesto Puerta 9 months ago

  • Duplicated by Bug #43524: mgr/dashboard: forward ceph-iscsi HTTP response error messages to dashboard front-end added

#14 Updated by Ricardo Marques 8 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF