Bug 2238301 - [CephFS-NFS] - json-pretty format value is not working for ceph nfs
Summary: [CephFS-NFS] - json-pretty format value is not working for ceph nfs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Ceph-Mgr Plugins
Version: 7.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 7.1
Assignee: Adam King
QA Contact: Sayalee
Akash Raj
URL:
Whiteboard:
Depends On:
Blocks: 2267614 2298578 2298579
TreeView+ depends on / blocked
 
Reported: 2023-09-11 10:39 UTC by sumr
Modified: 2024-07-18 07:59 UTC (History)
9 users (show)

Fixed In Version: ceph-18.2.1-145.el9cp
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-06-13 14:21:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHCEPH-7413 0 None None None 2023-09-11 10:41:49 UTC
Red Hat Product Errata RHSA-2024:3925 0 None None None 2024-06-13 14:21:28 UTC

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


Note You need to log in before you can comment on or make changes to this bug.