Bug #15703
closedshowmount: RPC: Program/version mismatch
100%
Description
With an NFS server is configured for NFSv3 as the minimum:
# sharectl set -p server_versmin=3 nfs
and without the fix for #15702 we get the error:
$ showmount -e server showmount: server: RPC: Program not registered
For testing this, I did monitor server traffic with 'snoop rpc mount' and tested showmount, dfmounts and dfshares commands from client systems. Confirmed the highest available version was used; MacOS showmount is always using version 1 and was working as expected.
To test higher versions and fallbacks, I was using modified mountd server, which had version 3 or version 2 disabled (note it does not help to unregister version from rpcbind). The patched programs did fall back to highest available mount protocol version, as expected.
Related issues
Updated by Gordon Ross 4 months ago
The showmount program would be better to first try MOUNTVERS3, and if the RPC clnt_create call fails with RPC_PROGVERSMISMATCH then try again with the (older) MOUNTVERS. Or something like that.
Updated by Gordon Ross 4 months ago
- Related to Bug #15702: showmount fails for Solaris, AIX and HP-UX clients added
Updated by Toomas Soome about 2 months ago
- Status changed from New to In Progress
- Assignee set to Toomas Soome
- % Done changed from 0 to 90
Updated by Toomas Soome about 1 month ago
- Description updated (diff)
- Status changed from In Progress to Pending RTI
Updated by Electric Monk about 1 month ago
- Status changed from Pending RTI to Closed
- % Done changed from 90 to 100
git commit a2f332bbcd749567eb464acdc1913e7bde22f36e
commit a2f332bbcd749567eb464acdc1913e7bde22f36e Author: Toomas Soome <tsoome@me.com> Date: 2023-08-22T16:46:00.000Z 15703 showmount: RPC: Program/version mismatch Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Gordon Ross <gordon.w.ross@gmail.com> Approved by: Dan McDonald <danmcd@mnx.io>