Bug 2282348

Summary: [Dashboard-NVMe] NVMeoFSubsystemNamespaceLimit alert not fired when Max namespace limit reached
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Sunil Angadi <sangadi>
Component: NVMeOFAssignee: Vallari <vaagrawa>
Status: VERIFIED --- QA Contact: Sunil Kumar Nagaraju <sunnagar>
Severity: medium Docs Contact: ceph-doc-bot <ceph-doc-bugzilla>
Priority: high    
Version: 7.1CC: acaro, afrahman, aindenba, bdavidov, bkunal, ceph-eng-bugs, cephqe-warriors, gbregman, kjosy, lchernin, linuxkidd, pcuzner, pdhange, rlepaksh, vaagrawa, vumrao
Target Milestone: ---Keywords: External
Target Release: 8.1Flags: sunnagar: needinfo? (vaagrawa)
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: 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 Angadi 2024-05-22 08:59:51 UTC
Description of problem:
while generating the alert NVMeoFSubsystemNamespaceLimit
try to set the Max namespace limit to 10 and created all 10 namespace to it,

when user tries for new as expected it got failed
[root@ceph-linus-01-6xm40b-node4 ~]# nvmeof namespace add -n nqn.2016-06.io.spdk:cnode2 --rbd-pool rbd -i image_test_12
Failure adding namespace to nqn.2016-06.io.spdk:cnode2:Failure adding namespace using UUID 7275d401-8cbb-45d0-ba3b-1375a092c2b4 to nqn.2016-06.io.spdk:cnode2: Invalid parameters

But it's related dashboard alert  NVMeoFSubsystemNamespaceLimit didn't get fired.

Version-Release number of selected component (if applicable):
ceph version 18.2.1-167.el9cp (e8c836edb24adb7717a6c8ba1e93a07e3efede29) reef (stable)

How reproducible:
Always

Steps to Reproduce:
1.Deploy ceph cluster along with nvmeof service
2.create subsystem and set --max-namespaces limit to that subsystem
3.try to create namespace more than the limit set
4.In ceph dashboard observe the alert to fire NVMeoFSubsystemNamespaceLimit


Actual results:
NVMeoFSubsystemNamespaceLimit alert didn't fired

Expected results:
NVMeoFSubsystemNamespaceLimit alert should fire

Additional info:

Comment 1 Vallari 2025-02-26 16:21:20 UTC
Fix opened upstream: https://github.com/ceph/ceph/pull/62012