Project

General

Profile

Actions

Bug #51365

open

mgr/nfs: show both ipv4 and ipv6 address in cluster info command

Added by Varsha Rao almost 3 years ago. Updated over 2 years ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% 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

  1. 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

Also available in: Atom PDF