[gpadmin@bogon gpdb]$ vim gpMgmt/bin/gppylib/commands/unix.py 296 def run(self, validateAfter=False): 297 if curr_platform == LINUX or curr_platform == DARWIN or curr_platform == OPENBSD: 298 # Get the family of the address we need to ping. If it's AF_INET6 299 # we must use ping6 to ping it. 300 301 try: 302 # addrinfo = socket.getaddrinfo(self.hostToPing, None) 303 addrinfo = socket.getaddrinfo(self.hostToPing, None, socket.AF_INET) # 修改后 304 if addrinfo and addrinfo[0] and addrinfo[0][0] == socket.AF_INET6: