使用 NSX Manager Unified Appliance 2.5.x 升级 NSX Intelligence 时,升级过程有时可能会在 UI 插件注册步骤失败。

问题

NSX Manager Unified Appliance 节点的 IP 地址或证书更改可能会导致 UI 插件注册失败。在 NSX Intelligence CLI 会话中升级失败后,升级状态检查会显示所发生的失败情况,如 get upgrade progress-status 命令的以下示例输出中所示。
nsx-intelligence> get upgrade progress-status
...output snipped...
Upgrade step status:
Name: update_plugin_registration
State: TASK_FAILURE

Errors:
Registration of node failed with status code 400

Status file:
wait_for_intelligence_server: resp_status: 200, body: b'{"results":[{"_links":[],"_revision":0,"_create_user":"admin","_create_time":1581934303820,"_last_modified_user":"admin","_last_modified_time":1581934303820,"_system_owned":false,"id":"default","path":"endpoints/default","end_point_address":"20.20.0.11","protocol":"https","thumbprint":"2d7efed079858e3b9d8b83647f38e48c177d56cbb1ab6669a8d63899be0a5206"}]}'
Node Registration response - 400, b'{"error_code":400,"module_name":"common-service","error_message":"I/O error on GET request for \\\\\\"https://20.20.0.11/api/v1/node/version\\\\\\": No route to host (Host unreachable); nested exception is java.net.NoRouteToHostException: No route to host (Host unreachable)"}'
/var/log/resume-upgrade.log 文件中的以下错误代码段也提供了有关 UI 插件注册失败的信息。
...output snipped...
2020-03-26 15:26:07,291 - Playbook failed at step update_plugin_registration. Run the command 'set debug-mode' followed by 'start upgrade-bundle VMware-NSX-Intelligence-appliance-1.1.0.0.0.15898874 step get_upgrade_task_history' for more info.
{
  "info": "[MUS] UpgradeError: Playbook failed at step update_plugin_registration. Run the command 'set debug-mode' followed by 'start upgrade-bundle VMware-NSX-Intelligence-appliance-1.1.0.0.0.15898874 step get_upgrade_task_history' for more info.",
  "state_text": "CMD_ERROR",
  "state": 2,
  "body": null
}

原因

如果关于 NSX Manager Unified Appliance 节点的信息与 NSX Intelligence 设备中保存的信息不同,可能会出现此问题。自上次安装 NSX Intelligence 设备后,NSX Manager Unified Appliance 节点的 IP 地址或证书可能已发生更改。

解决方案

更新有关 NSX Manager Unified Appliance 节点的 IP 地址、证书和证书指纹的信息,然后恢复 NSX Intelligence 升级过程。请使用 VMware 知识库文章 https://kb.vmware.com/s/article/78505 中提供的信息解决此问题。