Bug 2364029

Summary: Unable to delete listener with active connection and user consent in UI
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Kumar Nagaraju <sunnagar>
Component: Ceph-DashboardAssignee: Afreen <afrahman>
Status: CLOSED DUPLICATE QA Contact: Vinayak Papnoi <vpapnoi>
Severity: high Docs Contact: Rivka Pollack <rpollack>
Priority: unspecified    
Version: 8.1CC: ceph-eng-bugs, cephqe-warriors
Target Milestone: ---   
Target Release: 8.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-05-06 09:58:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sunil Kumar Nagaraju 2025-05-05 08:53:28 UTC
Description of problem:

Deleting listener failed via GUI when active connection is in place and fails with 
below error message.

2025-05-05T08:46:47.970+0000 7f5a69319640  0 [dashboard INFO nvmeof_client] Initiating nvmeof gateway connection...
2025-05-05T08:46:47.985+0000 7f5a69319640  0 [dashboard INFO orchestrator] is orchestrator available: True,
2025-05-05T08:46:47.985+0000 7f5a69319640  0 [dashboard INFO orchestrator] is orchestrator available: True,
2025-05-05T08:46:47.986+0000 7f5a69319640  0 [dashboard INFO nvmeof_client] Insecurely connecting to: 10.0.64.71:5500
2025-05-05T08:46:48.017+0000 7f5a69319640  0 [dashboard INFO exception] Dashboard Exception: Failed to delete listener 10.0.64.71:4420 from nqn.2001-07.com.ceph:1746434027628.group1: There are active connections for 10.0.64.71:4420. Deleting the listener terminates active connections. You can continue to delete the listener by adding the `--force` parameter.
2025-05-05T08:46:48.019+0000 7f5a69319640  0 [dashboard INFO request] [::ffff:10.74.64.109:62932] [DELETE] [400] [0.052s] [admin] [228.0B] /api/nvmeof/subsystem/nqn.2001-07.com.ceph:1746434027628.group1/listener/ceph-sunilkumar-81-00-d6k85g-node6/10.0.64.71

However in UI, there is only one user consent check box available i.e, "Yes, I'm sure", and even with this consent unable to delete the listener.

Version-Release number of selected component (if applicable):
IBM Ceph 8.1 19.2.1-167


How reproducible: always


Steps to Reproduce:
1. Deploy cluster and configure NVMe service
2. Add Namespaces and run IO to namespaces using RHEL initiators.
3. When all listeners are used at the initiators side. try to remove a listener from UI and we could notice the failure.

Actual results:
With user consent, unable to delete the listener.

Expected results:
Atleast useer consent, the UI delete listener request should be successfull.

Additional info:
Attaching screenshot for reference.