Bug 2238301

Summary: [CephFS-NFS] - json-pretty format value is not working for ceph nfs
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: sumr
Component: Ceph-Mgr PluginsAssignee: Adam King <adking>
Ceph-Mgr Plugins sub component: orchestrator QA Contact: Sayalee <saraut>
Status: CLOSED ERRATA Docs Contact: Akash Raj <akraj>
Severity: high    
Priority: unspecified CC: adking, akraj, amk, cephqe-warriors, hkumar, hyelloji, ngangadh, sumr, tserlin
Version: 7.0Keywords: Automation, Regression
Target Milestone: ---   
Target Release: 7.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-18.2.1-145.el9cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-06-13 14:21:22 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: 2267614, 2298578, 2298579    

Description sumr 2023-09-11 10:39:17 UTC
Description of problem:
json-pretty specified as format value in ceph nfs cmd line returns error "Unknown format name: json-pretty"


Version-Release number of selected component (if applicable):
ceph version : 18.2.0-6
RH build : 7.0

How reproducible:
Issue is seen across two weekly regression runs b/w ceph version 18.2.0-6 and 18.2.0-16

Steps to Reproduce:
1.Setup Ceph Cluster and create nfs cluster on it.

log snippet:
2023-09-03 08:53:08,470 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [INFO] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1559 - Running command ceph nfs cluster create nfs_ul9di "ceph-regression-z14ggm-jej487-node7 ceph-regression-z14ggm-jej487-node6" on 10.0.206.88 timeout 600
2023-09-03 08:53:11,515 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [INFO] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1592 - Command completed successfully

2.Verify nfs cluster info with format value json-pretty,

log snippet:
2023-09-03 08:53:11,516 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [INFO] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1559 - Running command ceph nfs cluster info nfs_ul9di --format json-pretty on 10.0.206.88 timeout 600


Actual results:
json-pretty format value is not recognised.

2023-09-03 08:53:11,516 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [INFO] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1559 - Running command ceph nfs cluster info nfs_ul9di --format json-pretty on 10.0.206.88 timeout 600
2023-09-03 08:53:14,567 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [ERROR] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1594 - Error 22 during cmd, timeout 600
2023-09-03 08:53:14,568 (cephci.cephfs_nfs.nfs_update_cluster_node_changes) [ERROR] - cephci.Regression.cephfs.6.cephci.ceph.ceph.py:1595 - Error EINVAL: Unknown format name: json-pretty

Expected results:

nfs cluster info to be reported in json-pretty format,
log snippet from previous passed logs:

2023-06-16 22:19:10,077 (cephci.nfs.nfs_update_cluster_node_changes) [INFO] - cephci.ceph.ceph.py:1558 - Running command ceph nfs cluster info nfs_brgyv --format json-pretty on 10.0.205.192 timeout 600
2023-06-16 22:19:10,560 (cephci.nfs.nfs_update_cluster_node_changes) [INFO] - cephci.ceph.ceph.py:1592 - Command completed successfully

Complete passed logs : http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-6WIXEG/nfs_cluster_host_changes_and_verification_0.log

passed logs from Ceph 17.2.6-70, RH build 6.1.

Additional info:
Ceph component details from passed logs : http://magna002.ceph.redhat.com/cephci-jenkins/cephci-run-6WIXEG/

Ceph component details from failed logs: http://magna002.ceph.redhat.com/cephci-jenkins/test-runs/18.2.0-6/Regression/cephfs/6/tier-2_cephfs_test-nfs/

We consider json-pretty format not being recognised as regression, please let us know if otherwise.

Comment 1 Frank Filz 2023-09-11 15:57:38 UTC
I think this belongs to ceph-mgr not nfs-ganesha, kind of guessing at sub-component - sorry.

Comment 3 sumr 2023-10-26 05:27:44 UTC
Hi Dev team,

Any updates on fix for this issue?

Thanks,
Suma

Comment 12 errata-xmlrpc 2024-06-13 14:21:22 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 (Critical: Red Hat Ceph Storage 7.1 security, enhancements, 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-2024:3925