使用 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 Intelligence 升級程序之前,請先更新 NSX Manager Unified Appliance 節點的 IP 位址、憑證和憑證指紋的相關資訊。請使用 VMware 知識庫文章 https://kb.vmware.com/s/article/78505 中提供的資訊來解決這個問題。