When upgrading TAS or uploading a stemcell, the task fails during the create_stemcell CPI method with an error:
Unknown CPI error 'Unknown' with message 'Connection reset by peer - SSL_connect' in 'create_stemcell' CPI method
This failure may occur after the stemcell upload starts or any AZ/Infrastructure changes.
TAS v10.2.4
The vSphere CPI requires direct HTTPS (TCP 443) access from Ops Manager/BOSH Director to all ESXi hosts in order to perform stemcell creation tasks. In this scenario, the failure is caused by ESXi host firewall rules blocking HTTPS client traffic.
Check the ESXi host firewall rules on each ESXI host:
esxcli network firewall ruleset list
Enable httpClient and httpsClient
esxcli network firewall ruleset set -e true -r httpClient
esxcli network firewall ruleset set -e true -r httpsClient
Verify connectivity from OpsMan
curl -vk https://<esxi-host-fqdn>