.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.
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
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
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