Bug 2149415

Summary: [cephfs][nfs] "ceph nfs cluster info" shows does not exist cluster
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: julpark
Component: CephFSAssignee: Dhairya Parmar <dparmar>
Status: CLOSED ERRATA QA Contact: Hemanth Kumar <hyelloji>
Severity: high Docs Contact: Akash Raj <akraj>
Priority: unspecified    
Version: 6.0CC: akraj, ceph-eng-bugs, cephqe-warriors, dparmar, gfarnum, kdreyer, vshankar
Target Milestone: ---Keywords: Rebase
Target Release: 6.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-17.2.6-2.el9cp Doc Type: Bug Fix
Doc Text:
.Non-existing cluster no longer shows up when running the `ceph nfs cluster info _CLUSTER_ID_` command. Previously, existence of a cluster would not be checked when `ceph nfs cluster info _CLUSTER_ID_` command was run, due to which, information of the non-existing cluster would be shown, such as `virtual_ip` and `backend`, null and empty respectively. With this fix, the`ceph nfs cluster info _CLUSTER_ID_` command checks the cluster existence and an _Error ENOENT: cluster does not exist_ is thrown in case a non-existing cluster is queried.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-15 09:16:25 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: 2192813    

Description julpark 2022-11-29 20:25:05 UTC
Description of problem:

"ceph nfs cluster info" shows does not exist cluster

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

ceph version 17.2.5-14.el9cp

How reproducible:


Steps to Reproduce:
1.enable nfs
2.Try to list out nfs cluster with "ceph nfs cluster ls"
3.confirm that the name does not exist
4.ceph nfs cluster info does_not_exist
5.check if the name shows any info

Actual results:

[root@ceph-julpark-enhoo2-node7 cephuser]# ceph nfs cluster info does_not_exist
{
    "does_not_exist": {
        "virtual_ip": null,
        "backend": []
    }
}

Expected results:

It should say the cluster does not exist

Additional info:

ceph version 17.2.5-14.el9cp

Comment 20 errata-xmlrpc 2023-06-15 09:16:25 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 (Moderate: Red Hat Ceph Storage 6.1 security and 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/RHSA-2023:3623