To get more information about the failure, perform the following command from the BOSH CLI:
bosh -e <environment> -d <deployment> task <task number> --cpi
Check the output for login return values to determine the time it takes the user to login to VCenter:
[2020-02-12T17:47:08.822283 #id] DEBUG -- [req_id cpi-id]: Running method 'Login'...
I, [2020-02-12T17:48:38.963541 #23141] INFO -- [req_id cpi-id]: Finished info in 93.1 seconds
[2020-04-12T17:50:58.517503 #id] DEBUG -- [req_id cpi-id]: Running method 'Login'...
I, [2020-04-12T17:54:28.694825 #id] INFO -- [req_id cpi-id]: Finished info in 240.22 seconds
Note: The expected login times are around or under 1 second. If this is the case, this slow login time will cause vSphere and NSX CPI to conflict and lead to creating objects in an unexpected order.
Workaround
Slow login times must be addressed on IaaS level and the issue could range from the following:
- Possible network latency
- VCenter resource congestion
- VC - External PSC issue
- Active Directory misbehaving for AD users
- Other unknown causes