Project

General

Profile

Actions

Feature #38332

closed

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

Added by Lenz Grimmer about 5 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Ricardo Marques
Category:
Component - 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 4 (0 open4 closed)

Related to Dashboard - Bug #39004: mgr/dashboard: Prevent target update if logged in client deletion is requiredWon't Fix

Actions
Has duplicate Dashboard - Bug #38273: mgr/dashboard: Prevent iSCSI target edit/delete until clients are logged outDuplicate

Actions
Has duplicate Dashboard - Bug #43524: mgr/dashboard: forward ceph-iscsi HTTP response error messages to dashboard front-endDuplicate

Actions
Copied to Dashboard - Backport #43354: nautilus: mgr/dashboard: Prevent deletion of iSCSI IQNs with open sessionsResolvedRicardo MarquesActions
Actions #1

Updated by Ricardo Marques about 5 years ago

  • Has duplicate Bug #38273: mgr/dashboard: Prevent iSCSI target edit/delete until clients are logged out added
Actions #2

Updated by Ricardo Marques about 5 years ago

  • Status changed from New to In Progress
Actions #3

Updated by Ricardo Marques about 5 years ago

  • Status changed from In Progress to New
Actions #4

Updated by Ricardo Marques about 5 years ago

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

Actions #5

Updated by Ricardo Marques over 4 years ago

  • Assignee set to Ricardo Marques
Actions #6

Updated by Ricardo Marques over 4 years ago

  • Target version set to v15.0.0
Actions #7

Updated by Ricardo Marques over 4 years ago

  • Status changed from New to In Progress
Actions #8

Updated by Ricardo Marques over 4 years ago

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

Updated by Ricardo Marques over 4 years ago

  • Status changed from Fix Under Review to Resolved
Actions #10

Updated by Ricardo Marques over 4 years ago

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

Updated by Ricardo Marques over 4 years ago

  • Status changed from Resolved to Pending Backport
  • Backport set to nautilus
Actions #12

Updated by Ricardo Marques over 4 years ago

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

Updated by Ernesto Puerta about 4 years ago

  • Has duplicate Bug #43524: mgr/dashboard: forward ceph-iscsi HTTP response error messages to dashboard front-end added
Actions #14

Updated by Ricardo Marques about 4 years ago

  • Status changed from Pending Backport to Resolved
Actions #15

Updated by Ernesto Puerta almost 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 141 to Component - iSCSI
Actions

Also available in: Atom PDF