Bug 2081934
| Summary: | rpcctl - fix failure when setting xprt offline and online | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Yongcheng Yang <yoyang> |
| Component: | nfs-utils | Assignee: | Steve Dickson <steved> |
| Status: | CLOSED ERRATA | QA Contact: | Yongcheng Yang <yoyang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | xzhou |
| Target Milestone: | rc | Keywords: | Patch, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | nfs-utils-2.5.4-12.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 11:22:03 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: | |||
|
Description
Yongcheng Yang
2022-05-05 03:29:13 UTC
commit 6a0a107e1ded470af827e1d416515c77b214a12e
Author: Anna Schumaker <Anna.Schumaker>
rpcctl: Print a message if the user tries to modify a main xprt
commit 1393b549eb80761d5f8c6b2c9ed711fb55b507d1
Author: Anna Schumaker <Anna.Schumaker>
rpcctl: Use the correct function for setting xprts offline and online
Patches are already available in nfs-utils-2.5.4-12.el9 now:
---------------------------------------
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt set xprt-0
usage: rpcctl xprt set [-h] XPRT {online,offline,dstaddr} ...
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt set xprt-0 offline
Main xprts cannot be set offline
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt set xprt-1 offline
Main xprts cannot be set offline
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt set xprt-2 offline
[Errno 22] Invalid argument
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt set xprt-3 offline
[Errno 22] Invalid argument
[root@yoyang-rhel-910-202207211x8664 ~]# rpm -q nfs-utils
nfs-utils-2.5.4-12.el9.x86_64
[root@yoyang-rhel-910-202207211x8664 ~]#
[root@yoyang-rhel-910-202207211x8664 ~]# rpcctl xprt show
xprt-0: local, /var/run/rpcbind.sock, port 0, state <CONNECTED,BOUND>, main
Source: (einval), port 0, Requests: 2
Congestion: cur 0, win 256, Slots: min 2, max 65536
Queues: binding 0, sending 0, pending 0, backlog 0, tasks 0
xprt-1: local, /var/run/gssproxy.sock, port 0, state <CONNECTED,BOUND>, main
Source: (einval), port 0, Requests: 2
Congestion: cur 0, win 256, Slots: min 2, max 65536
Queues: binding 0, sending 0, pending 0, backlog 0, tasks 0
xprt-2: tcp, 127.0.0.1, port 0, state <BOUND>
Source: (enoent), port 0, Requests: 0
Congestion: cur 0, win 0, Slots: min 0, max 0
Queues: binding 0, sending 0, pending 0, backlog 0, tasks 0
xprt-3: tcp, 127.0.0.1, port 0, state <>
Source: (enoent), port 0, Requests: 0
Congestion: cur 0, win 0, Slots: min 0, max 0
Queues: binding 0, sending 0, pending 0, backlog 0, tasks 0
[root@yoyang-rhel-910-202207211x8664 ~]#
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 (nfs-utils 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/RHBA-2022:8376 |