"Host is not reachable. Cannot complete login due to an incorrect username or password"./var/log/proton/nsxapi.log2023-01-31T02:29:54.826Z INFO http-nio-127.0.0.1-7440-exec-30 InstallFailed 138228 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" reqId="e95947f2-####-####-####-416b9fd29df1" subcomp="manager" username="admin"] Issue INSTALL_FAILED observed for node : ####-####-####-####-########ea35. Msg : Failed to install software on host. Host 192.#.#.1 not reachable. java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.] : java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.]2023-01-31T02:45:58.541Z INFO pool-856-thread-4 InstallFailed 138228 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Issue INSTALL_FAILED observed for node : 32e6a6ee-####-####-b3cf-51ec7739ea35. Msg : Failed to install software on host. Host 192.#.#.1 not reachable. java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.] : java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.]For example:
curl -k -u admin:password -X GET https://192.#.#.1/api/v1/####-####-####-####-########ea35/<TN-UUID>/status{ "node_uuid" : "####-####-####-####-########ea35", "node_display_name" : "192.#.#.1", "status" : "UNKNOWN", "mgmt_connection_status" : "UNKNOWN", "node_status" : { "mpa_connectivity_status" : "UNKNOWN", "mpa_connectivity_status_details" : "Client has not responded to heartbeats yet", "lcp_connectivity_status" : "UNKNOWN", "lcp_connectivity_status_details" : [ ], "host_node_deployment_status" : "INSTALL_FAILED", "inventory_sync_paused" : false, "software_version" : "" }For example:
curl -k -u admin:password -X GET https://192.#.#.1/api/v1/transport-nodes/####-####-####-####-########ea35/state{ "transport_node_id" : "####-####-####-####-########ea35", "maintenance_mode_state" : "DISABLED", "node_deployment_state" : { "state" : "failed", "details" : [ { "sub_system_id" : "####-####-####-####-########ea35", "state" : "failed", "failure_message" : "Failed to install software on host. Host 1.#.#.1 not reachable. java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.] : java.rmi.RemoteException: VI SDK invoke exception:SoapFaultException [Cannot complete login due to an incorrect user name or password.]", "failure_code" : 26080 } ] }, "deployment_progress_state" : { "progress" : 0, "current_step_title" : "Preparing Installation" }, "state" : "pending"This is a known issue impacting VMware NSX. This is resolved in NSX 4.1.1 - release notes available here
Workaround:
GET /policy/api/v1/infra/sites/default/enforcement-points/default/host-transport-nodes
GET /policy/api/v1/infra/sites/default/enforcement-points/vmc-enforcementpoint/host-transport-nodes{ "results": [ { "node_deployment_info": { "fqdn": "esx-04.example.com", "ip_addresses": [ "192.#.#.34" "resource_type": "HostTransportNode", "id": "####-####-####-####-#######066b3", "display_name": "esx-04.example.com","id": "####-####-####-####-#######066b3""ip_addresses": ["192.#.#.34"DELETE https://<mgr-ip>/api/v1/transport-nodes/<tn_id_1>?unprepare_host=false&force=true