跳转到主内容

Coming soon...New Support-Specific categorization of Knowledge Articles in the NetApp Knowledge Base site to improve navigation, searchability and your self-service journey.

MNode 上的 setup -mNode 脚本无法使用 HTTP 500 :添加存储资产时出错

Views:
21
Visibility:
Public
Votes:
0
Category:
element-software
Specialty:
solidfire
Last Updated:

适用于

Element OS 11.3+

问题

MNode 11.3+ 上的 setup -mNode 脚本因 HTTP 500 而失败: 添加存储资产时出错

mNodeCLI # /sf/packages/mnode/setup-mnode --mnode_admin_user XXX--storage_mvip XXX--storage_username XXX --telemetry_active true

[2019-10-24T11:02:38.088538Z]:[mnodecfg:69] ERROR:Error: HTTP 500: Error adding storage asset. - Internal Server Error
Traceback (most recent call last):
  File "setup_scripts/mnodecfg.py", line 67, in config_pre_networked_mnode
  File "setup_scripts/mnodecfg.py", line 172, in _config_mnode
  File "setup_scripts/config_util.py", line 501, in launch_mnode_assets
  File "setup_scripts/config_util.py", line 609, in _ensure_storage_asset
  File "setup_scripts/config_util.py", line 115, in retry_operation
  File "setup_scripts/config_util.py", line 106, in retry_operation
  File "setup_scripts/mnode_api_client.py", line 81, in add_storage_asset
  File "setup_scripts/mnode_api_client.py", line 334, in handle_response
sfprime.MnodeCfgError: Error: HTTP 500: Error adding storage asset. - Internal Server Error
[2019-10-24T11:02:38.088952Z]:[mnodecfg:74] ERROR:mNode configuration has failed in a unrecoverable state. Attempting to cleanup docker environment.
[2019-10-24T11:02:38.089303Z]:[config_util:1107] WARNING:Starting docker environment cleanup.
[2019-10-24T11:02:38.113904Z]:[config_util:1074] INFO:Finding networks to delete.
[2019-10-24T11:02:38.114269Z]:[config_util:1078] INFO:Found following networks to attempt to delete: docker_gwbridge, internal
[2019-10-24T11:02:38.114588Z]:[config_util:1082] INFO:Finding volumes to delete.
[2019-10-24T11:02:38.115059Z]:[config_util:1085] INFO:Found following volumes to attempt to delete: NetApp-HCI-nks-service, NetApp-HCI-mnode-api, NetApp-HCI-credential-svc, NetApp-HCI-cloud-service, NetApp-HCI-hci-monitor, NetApp-Simple-data
[2019-10-24T11:02:38.115968Z]:[config_util:1112] INFO:Leaving swarm.
[2019-10-24T11:02:51.363140Z]:[config_util:1114] INFO:Pruning any stopped containers.
[2019-10-24T11:02:51.365058Z]:[config_util:1091] INFO:Deleting networks.
[2019-10-24T11:02:51.511237Z]:[config_util:1097] INFO:Deleting volumes.
[2019-10-24T11:02:51.549372Z]:[config_util:1103] INFO:Docker environment cleanup complete.
[2019-10-24T11:02:51.564742Z]:[config_util:1132] INFO:Cleaned up vcp database folder.


脚本将执行自动清理,因此在发生故障后将不会有正在运行的容器。

mNodeCLI $ sudo su
mNodeCLI # docker ps
CONTAINER ID     IMAGE         COMMAND        CREATED        STATUS        PORTS         NAMES


要获取 mNode 日志、请在清理并运行以下命令之前中断脚本:

mNodeCLI# docker ps
mNodeCLI# docker service logs mnode_mnode.1.XXXXXXXXXXXXXX --follow > /tmp/mnode.logs

mnode_mnode.1.oviesreopg7z@SF-323B  | 2019-10-24T13:20:12.592312Z |   10 |  197568 |   MainProcess-uWSGIWorker3Core0  | bearer_scheme:51 | WARNING | Unable to authenticate request: (JWTClaimsError('The token is not yet valid (nbf)',), 'The token is not yet valid, please ensure client system and auth-server clocks match.')
mnode_mnode.1.oviesreopg7z@SF-323B  | [pid: 10|app: 0|req: 21/47] 10.0.1.29 () {30 vars in 1104 bytes} [Thu Oct 24 13:20:12 2019] GET /1/assets => generated 0 bytes in 1 msecs (HTTP/1.1 401) 5 headers in 192 bytes (0 switches on core 0)


检查 mNode 容器日志后发现: " 令牌尚不有效、请确保客户端系统和验证服务器时钟匹配 " 消息

 

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

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device