Clicking on ‘Open Site Recovery’ in the Site Recovery plugin within the vCenter Server, the Site Recovery console failing to load and displaying the errors listed below:
Unable to connect to Lookup Service at https://########:443/lookupservice/sdk. Reason: https://########:443/lookupservice/sdk invocation failed with "java.net.SocketException: Connection reset"'Unable to connect to the lookup service''Unable to retrieve site recovery manager summary data''Unable to retrieve vSphere replication summary data'When attempting to pair sites in VMware Live Site Recovery, on Step "2. Peer vCenter Server", when "Find vCenter Server Instances" is clicked, the following error is seen immediately:
"Unable to connect to Lookup Service at https://<remote_vc_fqdn>:443/lookupservice/sdk. Reason: javax.net.ssl.SSLException: SSL handshake from 0.0.0.0/0.0.0.0:56312 to <remote_vc_fqdn>/<remote_vc_ip>:443 failed in 12 ms"
root@local_VR/SRM [/]# curl -v telnet://<target_vCenter_ip/fqdn>:443* Established connection to <target_vCenter_ip/fqdn> (<target_vCenter_ip> port 443) from <local_vr_ip> port 35296root@local_vCenter [/]# curl -v telnet://<target_VR/SRM_ip/fqdn>:443* Established connection to <target_VR/SRM_ip/fqdn> (<target_VR/SRM_ip> port 443) from <local_vCenter_ip> port 35299The same error is seen from either site (Protected or Recovery site's VLSR page).
vSphere Replication (VR) appliance's reconfiguration completes with no errors.
VMware vSphere Replication 9.0.x
Firewall level SSL filtering enabled on port 443 is intercepting and dropping the SSL handshake packets between the vSphere Replication/Site Recovery Manager appliance and the remote vCenter Server.
YYYY-MM-DD HH:MM:SS,584 [srm-reactive-thread-276] WARN com.vmware.dr.client.shared.pairing.CheckPscCredentialsRequestHandler 7816271827614690435 80e89403-3996-####-####-############ checkPscCredentials - DrRequestHandlerError:com.vmware.vim.vmomi.client.exception.SslException: Unable to connect to Lookup Service at https://<remote-vcenter-fqdn>:443/lookupservice/sdk. Reason: javax.net.ssl.SSLException: SSL handshake from 0.0.0.0/0.0.0.0:59752 to <target_vc_fqdn>/<target_vc_ip>:443 failed in 8 ms..Caused by: java.net.SocketException: Connection resetThe /var/log/vmware/srm/vmware-dr.log file on the source SRM/VR appliance confirms that the SSL handshakes failures with a "Connection reset by peer" error, indicating a network layer blockage or timeout when attempting to reach the target vCenter:
YYYY-MM-DD HH:MM:SS.sss+ss:ss verbose vmware-dr[776797] [SRM@#### sub=RemoteSite.RemoteSsoServer connID=###-####] Attempting to connectYYYY-MM-DD HH:MM:SS.sss+ss:ss verbose vmware-dr[1633379] [SRM@####sub=IO.Connection] Attempting connection; <resolver p:0x00007f9f0ee51470, '############:443', next:<TCP '##.###.##.### : 443'>>, last e: 0(Success)YYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@#### sub=IO.Connection] Failed to SSL handshake; SSL(<io_obj p:#######, h:34, <TCP '##.###.##.### : 58306'>, <TCP '##.###.##.### : 443'>>), e: 104(Connection reset by peer), duration: 0msecYYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@#### sub=HttpConnectionPool-000001] Failed to get pooled connection; <cs p:00007f9f22feaeb0, TCP:############:443>, SSL(<io_obj p:#######, h:34, <TCP '##.###.##.### : 58306'>, <TCP '##.###.##.### : 443'>>), duration: 4msec, N7Vmacore15SystemExceptionE(Connection reset by peer: The connection is terminated by the remote end with a reset packet. Usually, this is a sign of a network problem, timeout, or service overload.)--> [context]zKq7AVECAAQAAGz3dwEKdm13YXJlLWRyAAAsGRxsaWJ2bWFjb3JlLnNvAADHCjQAi9QxAEPoMQCmBjIAzik0ANJCNADgfUkBsI4AbGlicHRocmVhZC5zby4wAALf+g9saWJjLnNvLjYA[/context]YYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@####sub=RemoteSite.RemoteSsoServer connID=###-####] Failed to connect--> (dr.fault.ConnectionDownFault) {--> faultCause = (vmodl.MethodFault) null,--> faultMessage = <unset>--> msg = ""--> }
Even though port 443 appears open, analysis of packet captures between the local VR and target vCenter confirms that enabled SSL filtering drops the SSL packets in transit.
To perform packet capture, below are the commands and procedure:
SSH to local vSphere Replication appliance and run following command to start packet capture: tcpdump -i eth0 -w output_filename.pcap
SSH to target vCenter appliance and run following command to start packet capture: tcpdump -i eth0 -w output_filename.pcap
Click on "Find vCenter Server Instances" in Create Site pair wizard to trigger the error. Click a few times, so that the packets are captured for multiple events.
Press "Ctrl+C" on both SSH sessions to stop the packet capture.
Reviewing the packet capture between the local vSphere Replication and target vCenter, the below would be observed for this issue:
When the "Find vCenter Server Instances" is clicked on the local site's Site Recovery page, a "client hello" is sent from the local vSphere Replication to the target vCenter:
(From local VR's pcap file)
This packet is then received by the target vCenter, and it sends back an acknowledgement packet back to the local VR:
(From target VC's pcap file)
The local VR receives this acknowledgement:
(From local VR's pcap file)
Next, the target vCenter sends a "Server Hello" along with the "Certificate" and the "Key Exchange" to the local VR. But this packet is never received on the local VR, due to which a (reset) [RST, ACK] packet is seen from the local VR to the target VC:
(From target VR's pcap file)
On the local VR's pcap file, it can be confirmed that the "Server Hello", along with the certificate and keys, was never received, and similarly here a reset (reset) [RST, ACK] packet is seen from target vCenter to local VR:
(From local VR's pcap file)
Point 4 of the PCAP analysis indicates that the SSL handshake fails between the local vSphere Replication (VR) and target vCenter (VC) because the certificate and key exchange never completes. This suggests the firewall is dropping or filtering SSL certificate traffic over port 443.
Coordinate with the infrastructure network team to identify the firewall device inspecting traffic on port 443.
Disable SSL filtering/inspection bi-directionally on port 443 between the local vSphere Replication appliance and the target vCenter Server, for both sites.
Attempt the site pairing process again in the VMware Live Site Recovery wizard.