Bug 1430198 - can't enable tunneled migration
Summary: can't enable tunneled migration
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: vdsm
Classification: oVirt
Component: Core
Version: 4.17.32
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.1.2
: 4.19.11
Assignee: Francesco Romani
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-03-08 02:19 UTC by 马立克
Modified: 2017-05-23 08:21 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-23 08:21:00 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: planning_ack+
rule-engine: devel_ack+
mavital: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 73696 0 master MERGED migration: do not send URI for tunneled migrations 2017-03-15 13:08:58 UTC
oVirt gerrit 73697 0 master MERGED migration: reorganize the handling of flags 2017-03-19 13:30:26 UTC
oVirt gerrit 73699 0 master MERGED migration: move params handling in a method 2017-03-19 13:30:29 UTC
oVirt gerrit 74138 0 ovirt-4.1 MERGED migration: do not send URI for tunneled migrations 2017-03-30 11:02:14 UTC

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


Note You need to log in before you can comment on or make changes to this bug.