When attempting to upload a disk image directly, I get a 'network error'

Solution Verified - Updated -

Issue

  • When attempting to upload a disk directly, I get the following error:
Unable to upload image to disk <DISK-ID> due to a network error. Make sure ovirt-imageio-proxy service is installed and configured, and ovirt-engine's certificate is registered as a valid CA in the browser.
  • In the messages file on the manager, we see:
ovirt-imageio-proxy: <client-IP> - - [27/Oct/2016 10:36:39] "OPTIONS /images/13dea932-3c8a-4344-a502-4f307c234ed6 HTTP/1.1" 204 0
journal: ovirt-imageio-proxy root ERROR Failed communicating with vdsm-imaged: An SSL error occurred.#012Traceback (most recent call last):#012  File "/usr/lib/python2.7/site-packages/ovirt_imageio_proxy/image_handler.py", line 177, in make_imaged_request#012    timeout=timeout, stream=stream)#012  File "/usr/lib/python2.7/site-packages/requests/sessions.py", line 576, in send#012    r = adapter.send(request, **kwargs)#012  File "/usr/lib/python2.7/site-packages/requests/adapters.py", line 431, in send#012    raise SSLError(e, request=request)#012SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:765)
  • In RHV 4.4+ the ssl error is present within /var/log/ovirt-imageio/daemon.log on the RHV Manager:
Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line 774, in __call__
    self.dispatch(req, resp)
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/http.py", line 819, in dispatch
    return method(req, resp, *match.groups())
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/cors.py", line 84, in wrapper
    return func(self, req, resp, *args)
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/images.py", line 246, in options
    ctx = backends.get(req, ticket, self.config)
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/backends/__init__    cafile=ca_file)
.py", line 85, in get
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/backends/http.py", line 48, in open
    return Backend(url, **options)
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/backends/http.py", line 76, in __init__
    self._connect()
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/backends/http.py", line 117, in _connect
    self._con = self._create_tcp_connection()
  File "/usr/lib64/python3.6/site-packages/ovirt_imageio/_internal/backends/http.py", line 379, in _create_tcp_connection
    con.connect()
  File "/usr/lib64/python3.6/http/client.py", line 1422, in connect
    server_hostname=server_hostname)
  File "/usr/lib64/python3.6/ssl.py", line 365, in wrap_socket
    _context=self, _session=session)
  File "/usr/lib64/python3.6/ssl.py", line 776, in __init__
    self.do_handshake()
  File "/usr/lib64/python3.6/ssl.py", line 1036, in do_handshake
    self._sslobj.do_handshake()
  File "/usr/lib64/python3.6/ssl.py", line 648, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:897)

Environment

  • Red Hat Virtualization 4
  • RHV-H hypervisor that was previously attached to a different/old environment

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content