Bug 2064850

Summary: [CephFS-NFS] - Dashboard is allowing to create nfs cluster with same name twice
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Amarnath <amk>
Component: Ceph-DashboardAssignee: Aashish sharma <aasharma>
Status: CLOSED ERRATA QA Contact: Amarnath <amk>
Severity: high Docs Contact: Masauso Lungu <mlungu>
Priority: medium    
Version: 5.1CC: aasharma, aoconnor, asriram, ceph-eng-bugs, epuertat, mlungu, nia, tserlin, vereddy
Target Milestone: ---Keywords: UserExperience
Target Release: 6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.3-2.el9cp Doc Type: Bug Fix
Doc Text:
.Validation is required when creating a new service name Previously, there was no validation when creating a new service on the ceph Dashboard, as a result, users were allowed to create a new service with an existing name. This would overwrite existing services and cause the user to lose a current running service on the hosts. With this fix, validation is required before creating a new service on the dashboard and using an existing service name is not possible.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-20 18:56:12 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:
Bug Depends On:    
Bug Blocks: 2126050    

Description Amarnath 2022-03-16 18:44:49 UTC
Description of problem:
Dashboard is allowing to create nfs cluster with same name twice

Problem Statement:

I have nfs cluster with name cephfs-nfs.
When i tried to create with the same name again with different hosts.
It is allowing and updating the exiting service.

Usually in CLI we see error saying the cluster already exits
[ceph: root@ceph-snap-fail-amk-01m9k1-node1-installer /]# ceph nfs cluster create cephfs-nfs ceph-snap-fail-amk-01m9k1-node4
cephfs-nfs cluster already exists
[ceph: root@ceph-snap-fail-amk-01m9k1-node1-installer /]# ceph nfs cluster create cephfs-nfs ceph-snap-fail-amk-01m9k1-node5
cephfs-nfs cluster already exists

Impact : 
User might end up losing the current running service on the hosts


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 16 Aashish sharma 2022-10-07 05:45:38 UTC
Hi Masauso,

Doc text looks good to me.

Thanks

Comment 30 errata-xmlrpc 2023-03-20 18:56:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2023:1360