Failed to migrate VM, with message as : " gaierror: [Errno -2] Name or service not known " on the source host

Solution Verified - Updated -

Issue

  • Failed to migrate VM, with message as : " gaierror: [Errno -2] Name or service not known " on the source host
Thread-3620194::ERROR::2016-06-24 17:30:03,187::migration::208::virt.vm::(_recover) vmId=`b74e6f61-5cb4-4ca3-8c91-594af32c09bb`::[Errno -2] Name or service not known
Thread-3620194::ERROR::2016-06-24 17:30:03,187::migration::213::virt.vm::(_recover) vmId=`b74e6f61-5cb4-4ca3-8c91-594af32c09bb`::Failed to destroy remote VM 
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/migration.py", line 211, in _recover
    self._destServer.destroy(self._vm.id)
AttributeError: 'SourceThread' object has no attribute '_destServer'
Thread-3620194::DEBUG::2016-06-24 17:30:03,188::__init__::206::jsonrpc.Notification::(emit) Sending event {"params": {"notify_time": 5533386610, "b74e6f61-5cb4-4ca3-8c91-594af32c09bb": {"status": "Migration Source"}}, "jsonrpc": "2.0", "method": "|virt|VM_status|b74e6f61-5cb4-4ca3-8c91-594af32c09bb"}
Thread-3620194::ERROR::2016-06-24 17:30:03,188::migration::309::virt.vm::(run) vmId=`b74e6f61-5cb4-4ca3-8c91-594af32c09bb`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/migration.py", line 278, in run
    self._setupVdsConnection()
  File "/usr/share/vdsm/virt/migration.py", line 143, in _setupVdsConnection
    client = self._createClient(port)
  File "/usr/share/vdsm/virt/migration.py", line 130, in _createClient
    self.remoteHost, int(port), sslctx)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1269, in create_connected_socket
    sock.connect((host, port))
  File "/usr/lib64/python2.7/site-packages/M2Crypto/SSL/Connection.py", line 181, in connect
    self.socket.connect(addr)
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
gaierror: [Errno -2] Name or service not known

Environment

  • Red Hat Enterprise Virtualization 3.6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.