Urlopen error EOF occurred in violation of protocol (_ssl.c:2427)

Hi All,

I’m using ansible to deploy OVA on standalone ESXi, and am facing this error only on a particular VM, and I’m not sure what is this error.

The deployment reaches about 38% and then this errors throws up..

I’m using Rocky Linux 10, tried this in Rocky Linux 9.5, same issue, and the error seems to have something to do with SSL certificates as learned..

I get a Max retries exceeded with url: (Caused by SSLError(SSLEOFError(8, ‘EOF occurred in violation of protocol (_ssl.c:2427)’))) when trying to inject data in pinecone DB - Support - Pinecone Community

But can’t find any solutions..

<localhost> ESTABLISH LOCAL CONNECTION FOR USER: root
<localhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252 `" && echo ansible-tmp-1755952979.2788837-5978-170818868593252="` echo /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252 `" ) && sleep 0'
Using module file /usr/local/lib/python3.12/site-packages/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py
<localhost> PUT /root/.ansible/tmp/ansible-local-5701vqa25bp4/tmp3w3pbs4x TO /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252/AnsiballZ_vmware_deploy_ovf.py
<localhost> EXEC /bin/sh -c 'chmod u+rwx /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252/ /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252/AnsiballZ_vmware_deploy_ovf.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252/AnsiballZ_vmware_deploy_ovf.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1755952979.2788837-5978-170818868593252/ > /dev/null 2>&1 && sleep 0'
The full traceback is:
  File "/tmp/ansible_vmware_deploy_ovf_payload_u_fy_3u1/ansible_vmware_deploy_ovf_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py", line 445, in run
    self._open_url()
  File "/tmp/ansible_vmware_deploy_ovf_payload_u_fy_3u1/ansible_vmware_deploy_ovf_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py", line 439, in _open_url
    open_url(self.url, data=self.f, validate_certs=self.validate_certs, **self._request_opts())
  File "/tmp/ansible_vmware_deploy_ovf_payload_u_fy_3u1/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/urls.py", line 995, in open_url
    return Request().open(method, url, data=data, headers=headers, use_proxy=use_proxy,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/tmp/ansible_vmware_deploy_ovf_payload_u_fy_3u1/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/urls.py", line 899, in open
    r = urllib.request.urlopen(request, None, timeout)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 215, in urlopen
    return opener.open(url, data, timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 515, in open
    response = self._open(req, data)
               ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 532, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 492, in _call_chain
    result = func(*args)
             ^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 1392, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3.12/urllib/request.py", line 1347, in do_open
    raise URLError(err) <-------------------
fatal: [eur -> localhost]: FAILED! => {  <-------------------
    "changed": false,
    "invocation": {
        "module_args": {
            "allow_duplicates": true,
            "cluster": null,
            "datacenter": "ha-datacenter",
            "datastore": "EUR_Disk1_VM",
            "deployment_option": null,
            "disk_provisioning": "thin",
            "enable_hidden_properties": false,
            "esxi_hostname": null,
            "fail_on_spec_warnings": false,
            "folder": null,
            "hostname": "192.168.1.156",
            "inject_ovf_env": true,
            "name": "EUR-VCSA",
            "networks": {
                "Network 1": "EUR_VL1135_VMware"
            },
            "ovf": "/root/VMware-vCenter-Server-Appliance-8.0.3.00600-24853646_OVF10.ova",
            "password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "port": 443,
            "power_on": false,
            "properties": {
                "domain": "vlab.lab",
                "guestinfo.cis.appliance.net.addr": "192.168.1.199",
                "guestinfo.cis.appliance.net.addr.family": "ipv4",
                "guestinfo.cis.appliance.net.dns.servers": "192.168.1.189",
                "guestinfo.cis.appliance.net.gateway": "192.168.1.1",
                "guestinfo.cis.appliance.net.mode": "static",
                "guestinfo.cis.appliance.net.pnid": "vcsa.vlab.lab",
                "guestinfo.cis.appliance.net.prefix": "24",
                "guestinfo.cis.appliance.root.passwd": "password",
                "guestinfo.cis.ceip_enabled": "False",
                "guestinfo.cis.deployment.autoconfig": "True",
                "guestinfo.cis.vmdir.password": "********$"
            },
            "proxy_host": null,
            "proxy_port": null,
            "resource_pool": "Resources",
            "url": null,
            "username": "root",
            "validate_certs": false,
            "wait": true,
            "wait_for_ip_address": true
        }
    },
    "msg": "<urlopen error EOF occurred in violation of protocol (_ssl.c:2427)>" <-------------------
}

Ran Ansible debugging and found the below to be the lines showing the issue from the start..

{"exception": "  File \"/tmp/ansible_vmware_deploy_ovf_payload_jej2hlbu/ansible_vmware_deploy_ovf_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py\", line 445, in run\n    self._open_url()\n

File\"/tmp/ansible_vmware_deploy_ovf_payload_jej2hlbu/ansible_vmware_deploy_ovf_payload.zip/ansible_collections/community/vmware/plugins/modules/vmware_deploy_ovf.py\", line 439, in _open_url\n    open_url(self.url, data=self.f, validate_certs=self.validate_certs, **self._request_opts())\n

File\"/tmp/ansible_vmware_deploy_ovf_payload_jej2hlbu/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/urls.py\", line 995, in open_url\n    return Request().open(method, url, data=data, headers=headers, use_proxy=use_proxy,\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n

File\"/tmp/ansible_vmware_deploy_ovf_payload_jej2hlbu/ansible_vmware_deploy_ovf_payload.zip/ansible/module_utils/urls.py\", line 899, in open\n    r = urllib.request.urlopen(request, None, timeout)\n        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n

File \"/usr/lib64/python3.12/urllib/request.py\", line 215, in urlopen\n    return opener.open(url, data, timeout)\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/urllib/request.py\", line 515, in open\n    response = self._open(req, data)\n               ^^^^^^^^^^^^^^^^^^^^^\n

File \"/usr/lib64/python3.12/urllib/request.py\", line 532, in _open\n    result = self._call_chain(self.handle_open, protocol, protocol +\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/usr/lib64/python3.12/urllib/request.py\", line 492, in _call_chain\n    result = func(*args)\n             ^^^^^^^^^^^\n

File \"/usr/lib64/python3.12/urllib/request.py\", line 1392, in https_open\n    return self.do_open(http.client.HTTPSConnection, req,\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n

File \"/usr/lib64/python3.12/urllib/request.py\", line 1347, in do_open\n    raise URLError(err)\n", "failed": true, "msg": "<urlopen error EOF occurred in violation of protocol (_ssl.c:2427)>"