Bug 1430198

Summary: can't enable tunneled migration
Product: [oVirt] vdsm Reporter: 马立克 <like.ma>
Component: CoreAssignee: Francesco Romani <fromani>
Status: CLOSED CURRENTRELEASE QA Contact: Israel Pinto <ipinto>
Severity: low Docs Contact:
Priority: medium    
Version: 4.17.32CC: bugs, lveyde, mavital, michal.skrivanek, tjelinek
Target Milestone: ovirt-4.1.2Flags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+
Target Release: 4.19.11   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-23 08:21:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description 马立克 2017-03-08 02:19:53 UTC
Description of problem:
I'm using oVirt 3.6.7 now. I want to enable tunnel migration feature. 
But when i set tunnel_migration value of vm as Ture through python
SDK(I can't find any place to enable tunnel migration on the web ui,
so i use SDK), then migrate the vm i got the following error message:
 
Thread-9417628::ERROR::2017-03-07 11:25:48,538::migration::310::virt.vm::(run) vmId=`08b4ccc1-c508-439b-a9ba-ca0d42a7072c`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/migration.py", line 298, in run
    self._startUnderlyingMigration(time.time())
  File "/usr/share/vdsm/virt/migration.py", line 364, in _startUnderlyingMigration
    self._perform_migration(duri, muri)
  File "/usr/share/vdsm/virt/migration.py", line 403, in _perform_migration
    self._vm._dom.migrateToURI3(duri, params, flags)
  File "/usr/share/vdsm/virt/virdomain.py", line 68, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/libvirtconnection.py", line 124, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 1313, in wrapper
    return func(inst, *args, **kwargs)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 1836, in migrateToURI3
    if ret == -1: raise libvirtError ('virDomainMigrateToURI3() failed', dom=self)
libvirtError: argument unsupported:migration URI is not supported by tunnelled migration

Version-Release number of selected component (if applicable):
OS: RHEL7.2
Libvirt: 1.2.17-13.el7_2.5
Qemu-kvm-ev: 2.3.0-31.el7_2.23
ovirt-engine: 3.6.7.5
vdsm: 4.17.32-2

How reproducible:
always

Steps to Reproduce:
1.use python sdk set the tunnel_migration property of vm as True
2.migrate the vm

Actual results:
vm migration failed

Expected results:
vm migration succeeded

Additional info:
I can't find any place to enable tunneled migration on the Web UI. What's the status of this feature?

Comment 1 Israel Pinto 2017-05-03 12:29:44 UTC
Verify with:
RHVM Version: 4.1.2-0.1.el7

Steps:
1. Set tunnel migration on VM with REST.
PUT:
  <vm>
    <tunnel_migration>true</tunnel_migration>
  </vm>
2. Migration VM
3. Check logs

Results
Migration pass 
Engine log: 
- tunnelMigration='true' 
2017-05-03 06:52:15,101+03 INFO  [org.ovirt.engine.core.vdsbroker.vdsbroker.MigrateBrokerVDSCommand] (org.ovirt.thread.pool-6-thread-37) [bb4307d7-4502-44de-bc2c-4e29e5016ce8] START, MigrateBrokerVDSCommand(HostName = host_mixed_2, MigrateVDSCommandParameters:{runAsync='true', hostId='710fe818-9975-4fdb-a475-3a4cbe49b2c6', vmId='1b1217db-ff0a-4e98-b408-a4f71e8af776', srcHost='puma43.scl.lab.tlv.redhat.com', dstVdsId='57c8450b-d4c1-44e8-9d3d-1f51b7c18cbe', dstHost='puma42.scl.lab.tlv.redhat.com:54321', migrationMethod='ONLINE', tunnelMigration='true', migrationDowntime='0', autoConverge='false', migrateCompressed='false', consoleAddress='null', maxBandwidth='null', enableGuestEvents='false', maxIncomingMigrations='2', maxOutgoingMigrations='2', convergenceSchedule='null'}), log id: 4bcfe201