AutoSupportの配信がDNSの問題で失敗する - ONTAP 9以前でホスト名を解決できません
環境
- AutoSupport
- ONTAP 9
- SMTP
- HTTP(s)
問題
ノードを DNS サーバに接続できず、次のホスト名を解決できませんでした。
- Support.netapp.com
- お使いのメールホスト サーバ(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インターフェイスを異なるサブネットに設定できますか?
- のバグ 952014の動作が原因で、クラスタ間LIFからトラフィックが送信される可能性があります - ストレージ システムがアウトバウンド トラフィックにクラスタ間LIFを選択すると、AutoSupportトラフィックが中断されます
管理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(クラスタ管理LIFとノード管理LIF)を許可/信頼します
- 許可する必要がある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でEメール ホストをEメール ホスト名からIPアドレスに変更できます
::> system node autosupport show::> autosupport modify -node * -mail-hosts <ip address>
オプション4:ホスト名を解決するホストエントリを作成します。
次の手順では、名前解決を許可してDNSサーバへの接続をバイパスするホスト エントリをONTAPに追加します。
注:これは一時的な修正です。ネットワーク チームと協力して、ノードが DNS サーバと通信できない原因を特定する必要があります。
'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:サーバからの異常な応答
- ホスト名解決に使用するDNSの設定
- DNSチェックコマンドを使用してネームサーバの問題を診断する方法
- 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