2018-02-14T14:07:29Z vsfwd: [INFO] Re-read credentials to broker ##.##.##.##:5671: Logging in: Input/output error
2018-02-14T14:07:29Z vsfwd: [ERROR] Bad pw file length: 0
2018-02-14T14:07:29Z vsfwd: [ERROR] Failed to get credentials to broker ##.##.##.##:5671: -1
=ERROR REPORT==== 14-Feb-2018::14:07:21 ===
Error on AMQP connection <0.17646.4> (127.0.0.1:56160 -> 127.0.0.1:5672, state: starting):
PLAIN login refused: user 'uw-host-##' - invalid credentials
esxcli network ip connection list | grep 5671
, similar to:#esxcli network ip connection list | grep 5671
tcp 0 0 ##.##.##.##:19158 ##.##.##.##:5671 TIME_WAIT 0
Note: The preceding log excerpts are only examples. Date, time, and environmental variables may vary depending on your environment.
VMware NSX Data Center for vSphere 6.4.x
If the host failed to connect to the NSX Manager within 2 hours after host preparation completed, its password expires.
This typically happens after fixing an issue preventing the ESXi host from connecting to the NSX Manager (after host prep).
For example:
This is a condition that may occur in a VMware NSX Data Center for vSphere 6.4.x environment.
Workaround
To resolve the occurrence, reset the communication between NSX Manager and the host (or cluster) via REST API call.
For example:
POST https://<NSXMGR_IP>/api/2.0/nwfabric/configure?action=synchronize
<nwFabricFeatureConfig>
<featureId>com.vmware.vshield.vsm.messagingInfra</featureId>
<resourceConfig>
<resourceId>host-##</resourceId>
</resourceConfig>
</nwFabricFeatureConfig>