Bug 2096882

Summary: ganesha-rados-grace on IBM Power (ppc64le) always only shows usage information
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Niels de Vos <ndevos>
Component: NFS-GaneshaAssignee: tserlin
Status: CLOSED ERRATA QA Contact: Vidushi Mishra <vimishra>
Severity: medium Docs Contact: Akash Raj <akraj>
Priority: urgent    
Version: 5.2CC: aaaggarw, akraj, bniver, brgardne, cephqe-warriors, kkeithle, madam, mbenjamin, muagarwa, nberry, ndevos, ocs-bugs, rar, sostapov, tnielsen, tserlin, vereddy
Target Milestone: ---   
Target Release: 5.2   
Hardware: ppc64le   
OS: Linux   
Whiteboard:
Fixed In Version: nfs-ganesha-3.5-3.el8cp Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: 2092220 Environment:
Last Closed: 2022-08-09 17:39:07 UTC Type: ---
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: 2092220, 2102272    

Description Niels de Vos 2022-06-14 13:23:12 UTC
See bug #2092220 for a detailed description of the issue in ODF.

Description of problem (please be detailed as possible and provide log
snippests):

Running the `ganesha-rados-grace` command on IBM Power (ppc64le) always shows the usage message, commands are not recognized as valid.

Version of all relevant components (if applicable):
- whatever nfs-ganesha is bundled with "ceph version 16.2.8-5.el8cp" containers

Does this issue impact your ability to continue to work with the product
(please explain in detail what is the user impact)?

Rook as part of ODF is unable to configure NFS-Ganesha because of this issue.

Is there any workaround available to the best of your knowledge?
No

Rate from 1 - 5 the complexity of the scenario you performed that caused this
bug (1 - very simple, 5 - very complex)?

1 - Deploy ODF with support for NFS on a ppc64le cluster

Can this issue reproducible?

Yes!

If this is a regression, please provide more details to justify this:

Works on x86_64, so a sort of regression when running on ppc64le.

Steps to Reproduce:
1. run a command like Rook does, no need for a Ceph cluster:

    ganesha-rados-grace -p .nfs -n ocs-storagecluster-cephnfs add ocs-storagecluster-cephnfs.a`

2. the usage text of the command is shown, the same command works on x86_64

Actual results:

$ ganesha-rados-grace -p .nfs -n ocs-storagecluster-cephnfs add ocs-storagecluster-cephnfs.a
Usage:
/usr/bin/ganesha-rados-grace [ --userid ceph_user ] [ --cephconf /path/to/ceph.conf ] [ --ns namespace ] [ --oid obj_id ] [ --pool pool_id ] dump|add|start|join|lift|remove|enforce|noenforce|member [ nodeid ... ]

Expected results:
Successfully adding the node to the NFS-Ganesha configuration in RADOS. or a RADOS failure if no Ceph cluster is available.

Comment 1 Niels de Vos 2022-06-14 13:25:22 UTC
Bug 2092220#c8 contains a small C program to reproduce the issue. There is also a log of a gdb session with the ganesha-rados-grace command showing the problem.

https://github.com/nfs-ganesha/nfs-ganesha/commit/3db6bc0cb75fa85ffcebeda1276d195915b84579 seems to be the uptsteam change that addresses the problem.

Comment 8 errata-xmlrpc 2022-08-09 17:39:07 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 Security, Bug Fix, and Enhancement 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-2022:5997