跳转到主内容

AutoSupport 传输因 DNS 失败 - 在 ONTAP 9 及更早版本中无法解析主机

Views:
183
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用于

  • AutoSupport
  • ONTAP 9
  • SMTP
  • HTTP(s)

问题描述

节点无法连接到 DNS 服务器,并且无法解析以下任何主机名。

  • Support.netapp.com/cn
  • 您的邮件主机服务器(如果使用 SMTP)
  • 您的代理服务器(如果已配置)

验证: (3 个选项)

  1. 运行命令  Autosupport history show 

::>system autosupport history show::>system autosupport history show -node <node_name>  -fields node,seq-num,status,error,destination

上次报告的错误:

Couldn't resolve host name.

  1. 从命令行测试连通性

::> set advanced

::> system node autosupport check show-details -node node_name

::> vserver services name-service dns check -vserver <name>

Example_1:

Category: smtp
Component: mail-server
Status: failed
Detail: SMTP connectivity check failed for destination:
mailhost. Error: Could not resolve host - 'mailhost'
Corrective Action: Check the hostname of the SMTP server

::> vserver name-service dns check -vserver netappfas01
                Name Server
Vserver     Name Server    Status     Status Details
------------- --------------- ------------ --------------------------
netappfas01   10.15.5.10    down      Connection refused.
netappfas01   172.12.191.114  down      Operation timed out.
2 entries were displayed.

Example_2:

HTTPS PUT connectivity check failed for destination:
           https://support.netapp.com/put/AsupPut/. Error: Could
           not resolve host - 'support.netapp.com'
  Corrective Action: Use "dns check" command to check DNS connection

  1. 查看 notifyd 日志。

::> node run -node (node-name) -command rdfile /etc/log/mlog/notifyd.log

通知日志显示以下错误:

Attempting to deliver ASUP using PUT)
0000001b.000723c6 04233027 Fri Feb 27 2015 02:27:01 -05:00 [kern_notifyd:info:829] (category:
829:1528:deliver) (emittime: 2/27/2015 02:27:01) (message: getaddrinfo(3) failed for
support.netapp.com:443)
0000001b.000723c7 04233027 Fri Feb 27 2015 02:27:01 -05:00 [kern_notifyd:info:829] (category:
829:1528:deliver) (emittime: 2/27/2015 02:27:01) (message: Couldn't resolve host
'support.netapp.com')
0000001b.000723c8 04233027 Fri Feb 27 2015 02:27:01 -05:00 [kern_notifyd:info:829] (category:
829:1528:deliver) (emittime: 2/27/2015 02:27:01) (message: Closing connection #0)

ERR: AutoSupport::StatusCheck:Connectivity check to HTTP PUT destination failed (Couldn't resolve host name) with root CA path: /mroot/etc/vserver_4294967295/certificates/ssl/serverCa

发生原因

可能有多种原因导致无法连接到 DNS 服务器:

解决方案

选项 1 执行以下步骤来检查您的 DNS 服务器
  1. 验证您是否具有到 DNS 服务器的路由(与您的网络团队合作)

验证名称服务器的状态。

::>vserver services name-service dns check -vserver vs1

Vserver  Name Server  Status  Status Details
-------  -----------  ------  -----------------------
vs1      10.0.0.50    up      Response time (msec): 2
vs1      10.0.0.51    up      Response time (msec): 2

  1. 编辑 DNS 服务以添加其他 DNS 服务器  配置 DNS 以进行主机名解析
选项 2 查看防火墙策略
  • 允许/信任防火墙上的管理 IP(集群管理和节点管理 lifs)
  • 要确定需要允许哪些 IP:
    ​​​​​​
Cluster::> network interface show -role *mgmt*
Logical Status Network Current Current Is
Vserver Interface Admin/Oper Address/Mask Node Port Home
----------- ---------- ---------- ------------------ ------------- ------- ----
Cluster
Node1_mgmt1 up/up 10.61.64.38/24  Node1 e0M true
Node2_mgmt1 up/up 10.61.64.40/24  Node1 e0M true
cluster_mgmt up/up 10.61.64.42/24 Node1 e0e true
选项 3 将 AutoSupport 目标更改为 IP (仅限 SMTP)

如果选项 1 不可用或作为临时修复,您可以在 ONTAP 中将电子邮件主机从电子邮件主机名更改为 IP 地址

  1. ::> system node autosupport show
  2. ::> autosupport modify -node * -mail-hosts <ip address>
选项 4 创建主机条目以解析主机名

以下过程将在 ONTAP 中添加主机条目,以允许名称解析并绕过连接到 DNS 服务器。

注:此为临时修复。您应该与您的网络团队合作,确定节点无法与 DNS 服务器通信的原因。

  1. 添加 Host 条目以将 'support.netapp.com' 手动解析为 216.240.21.18。

::> vserver services dns hosts create -vserver node1 -address 216.240.21.18 -hostname support.netapp.com

注意: 您可以添加类似的条目以手动解析您的代理或邮件主机主机名        

追加信息

vserver services name-service dns show - Display DNS configuration
vserver services name-service dns create - Create a new DNS table entry
vserver services name-service dns modify - Change a DNS table entry
vserver services name-service dns delete - Remove a DNS table entry

  • 根据需要使用以下命令编辑 DNS 主机:

vserver services dns hosts create - Create a new host table entry
vserver services dns hosts delete - Remove a host table entry
vserver services dns hosts modify - Modify hostname or aliases
vserver services dns hosts show - Display IP address to hostname mappings

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.