AutoSupport 传输因 DNS 失败 - 在 ONTAP 9 及更早版本中无法解析主机
适用于
- AutoSupport
- ONTAP 9
- SMTP
- HTTP(s)
问题描述
节点无法连接到 DNS 服务器,并且无法解析以下任何主机名。
- Support.netapp.com/cn
- 您的邮件主机服务器(如果使用 SMTP)
- 您的代理服务器(如果已配置)
验证: (3 个选项)
- 运行命令
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.
- 从命令行测试连通性
::> 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
- 查看 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 服务器:
- 验证您有正确的 DNS 路由
- 如果使用端口 e0m,请确保它与 SP/BMC 在同一子网中。SP/BMC 和 e0M 接口可以在不同的子网上配置吗?
- 由于 Bug 952014 - AutoSupport 流量在存储系统为出站流量选择集群间 LIF 时中断的行为,潜在流量从您的集群间 LIF 流出
管理 lif 被防火墙阻止
解决方案
选项 1 执行以下步骤来检查您的 DNS 服务器
- 验证您是否具有到 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
- 编辑 DNS 服务以添加其他 DNS 服务器 配置 DNS 以进行主机名解析
选项 2 查看防火墙策略
- 允许/信任防火墙上的管理 IP(集群管理和节点管理 lifs)
- 要确定需要允许哪些 IP:
Cluster::> network interface show -role *mgmt*Logical Status Network Current Current IsVserver Interface Admin/Oper Address/Mask Node Port Home----------- ---------- ---------- ------------------ ------------- ------- ----ClusterNode1_mgmt1 up/up 10.61.64.38/24 Node1 e0M trueNode2_mgmt1 up/up 10.61.64.40/24 Node1 e0M truecluster_mgmt up/up 10.61.64.42/24 Node1 e0e true选项 3 将 AutoSupport 目标更改为 IP (仅限 SMTP)
如果选项 1 不可用或作为临时修复,您可以在 ONTAP 中将电子邮件主机从电子邮件主机名更改为 IP 地址
::> system node autosupport show::> autosupport modify -node * -mail-hosts <ip address>
选项 4 创建主机条目以解析主机名
以下过程将在 ONTAP 中添加主机条目,以允许名称解析并绕过连接到 DNS 服务器。
注:此为临时修复。您应该与您的网络团队合作,确定节点无法与 DNS 服务器通信的原因。
- 添加 Host 条目以将
'support.netapp.com'手动解析为 216.240.21.18。
::> vserver services dns hosts create -vserver node1 -address 216.240.21.18 -hostname support.netapp.com
注意: 您可以添加类似的条目以手动解析您的代理或邮件主机主机名
追加信息
- AutoSupport 无法通过 SMTP 工作 - 错误消息:FTP: weird server reply
- 为主机名解析配置 DNS
- 如何使用 DNS check 命令诊断名称服务器问题
- 请参阅 TR-4444 和 ONTAP 9 Documentation 以了解 Autosupport 配置和网络要求。
- 根据需要使用以下命令编辑 DNS 服务器:
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