Created attachment 1094076 [details] vdsm log from the source host Description of problem: Migration fails when using the jsonrpc client to start the migration: 2015-11-14 18:44:37,277 ERROR [virt.vm] (Thread-206) vmId=`b938182d-7f19-435b-9499-4cb8f1578e1b`::Failed to migrate [migration:310(run)] Traceback (most recent call last): File "/usr/share/vdsm/virt/migration.py", line 294, in run self._startUnderlyingMigration(time.time()) File "/usr/share/vdsm/virt/migration.py", line 331, in _startUnderlyingMigration result = self._destServer.migrationCreate(self._machineParams) File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 119, in migrationCreate params) File "/usr/lib/python2.7/site-packages/vdsm/jsonrpcvdscli.py", line 101, in _callMethod raise JsonRpcNoResponseError(method) JsonRpcNoResponseError: [-32605] No response for JSON-RPC VM.migrationCreate request. On the destination host, we do reply to the VM.migrationCreate: jsonrpc.Executor/6::DEBUG::2015-11-14 18:44:37,261::API::590::vds::(migrationCreate) Destination VM creation succeeded jsonrpc.Executor/6::DEBUG::2015-11-14 18:44:37,262::__init__::539::jsonrpc.JsonRpcServer::(_serveRequest) Return 'VM.migrationCreate' in bridge with {'migrationPort': 0, 'param s': {'username': 'Unknown', 'acpiEnable': 'true', 'emulatedMachine': 'pc-i440fx-rhel7.1.0', 'afterMigrationStatus': u'', 'pid': '0', 'memGuaranteedSize': 512, 'transparentHugeP... Looks like issue receiving the reply from the destination host. Version-Release number of selected component (if applicable): master How reproducible: Always Steps to Reproduce: 1. Start 2 hosts using el 7.1 (updated today) 2. Start vm on host 1 3. Try to migrate to other host Actual results: Migration fails Expected results: Should succeed Additional info: Skipping the jsonrpc client for migration fix the migration: # diff -u /root/src/vdsm/vdsm/virt/migration.py /usr/share/vdsm/virt/migration.py --- /root/src/vdsm/vdsm/virt/migration.py 2015-11-04 14:01:36.836210623 +0200 +++ /usr/share/vdsm/virt/migration.py 2015-11-14 18:57:57.866324608 +0200 @@ -140,6 +140,7 @@ self.remoteHost, port = hostPort.rsplit(':', 1) try: + raise JsonRpcBindingsError() client = self._createClient(port) requestQueues = config.get('addresses', 'request_queues') requestQueue = requestQueues.split(",")[0] @@ -147,7 +148,8 @@ self.log.debug('Initiating connection with destination') self._destServer.ping() - except (JsonRpcBindingsError, JsonRpcNoResponseError): + except (JsonRpcBindingsError, JsonRpcNoResponseError) as e: + self.log.warning("Cannot use jsonrpc: %s, using xmlrpc", e) if config.getboolean('vars', 'ssl'): self._destServer = vdscli.connect( hostPort, 2015-11-14 18:59:39,659 INFO [virt.vm] (Thread-45) vmId=`b938182d-7f19-435b-9499-4cb8f1578e1b`::migration took 11 seconds to complete [migration:369(_startUnderlyingMigration)]
Created attachment 1094100 [details] vdsm log from the destination host
Created attachment 1094101 [details] Vdsm log from source host using master
Created attachment 1094102 [details] Vdsm log from destination host using master
The first logs were using https://gerrit.ovirt.org/48570 on top of master using vm with non-ascii vm name. I have seen this failure before, but to be on the safe side I reproduced again with master using a vm with ascii name. See attachment 1094101 [details] and attachment 1094102 [details].
*** This bug has been marked as a duplicate of bug 1274670 ***