Actions
Bug #51365
openmgr/nfs: show both ipv4 and ipv6 address in cluster info command
% Done:
0%
Source:
Development
Tags:
Backport:
pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
mgr/nfs
Labels (FS):
NFS-cluster
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
https://github.com/ceph/ceph/blob/74df5af8e2d36c6143f214cab0fca1693d39f86e/src/pybind/mgr/nfs/cluster.py#L18-L28
With the current code only one of them is shown
- ceph nfs cluster info
{
"nfs": [ {
"hostname": "test031",
"ip": "2620:52:0:880:225:90ff:fefc:25a6",
"port": 2049
}
]
}
socket.getaddrinfo("test006", None, flags=socket.AI_CANONNAME,type=socket.SOCK_STREAM)
[(<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, 'magna006', ('10.8.129.7', 0))]
socket.getaddrinfo("test031", None, flags=socket.AI_CANONNAME,type=socket.SOCK_STREAM)
[(<AddressFamily.AF_INET6: 10>, <SocketKind.SOCK_STREAM: 1>, 6, 'test031.test.com', ('2620:52:0:880:225:90ff:fefc:25a6', 0, 0, 0)), (<AddressFamily.AF_INET: 2>, <SocketKind.SOCK_STREAM: 1>, 6, '', ('10.8.128.31', 0))]
Actions