メインコンテンツまでスキップ

リモートサーバから次のエラーが返されました:(401)Unauthorized

Views:
127
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas<a>2009410813</a>
Last Updated:

環境

  • ONTAP 9
  • ONTAP AVコネクタ1.0.6

問題

  • ONTAP AVコネクタ1.0.6が管理LIFに接続できない

REST API call to <ip-address> using account "<account>" failed. The remote server returned an error: (401) Unauthorized
ONTAP AV Connector log

  • ONTAP / ASUPのログ: APACHE-ERROR.log

[dot:error]        [client <ip-address>:x] [vserver ID x] [service rest] Denied access to role 'vsadmin' for user '<account>'
[authz_core:error] [client <ip-address>:x] user encrypt: authorization failure for "/api/network/ip/interfaces":
[dot:error]        [client <ip-address>:x] [vserver ID x] [service rest] Denied access to role 'vsadmin' for user '<account>'
[authz_core:error] [client <ip-address>:x] user encrypt: authorization failure for "/api/cluster":

  • ONTAP AV connector log (e.g. avshim.log)

Curl request to <ip-address> failed with http error code 401
Error 22: HTTP response code said error
Failed to fetch data LIF(s) from <ip-address>
Problem fetching vserver LIFs from mgmt-lif <ip-address>

  • vserver services web show 名前エントリにロールがリストされていないことを示します rest security (role:none)。

例:

::> vserver services web show -vserver <vserver> -name rest

  • ロールにはAPIへのアクセス権がなく /api/cluster 、 /api/network/ip/interfaces
::> security login show -user-or-group-name <account> -vserver <vserver> -instance
 
::> security login show -vserver <vserver> -role <role>

::> security login role show -vserver <vserver> -role <role> -cmddirname "network interface"

::> security login rest-role show -vserver <vserver> -role <role> -api /api/cluster

::> security login rest-role show -vserver <vserver> -role <role> -api /api/network/ip/interfaces

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.

 

  • この記事は役に立ちましたか?