Bug 1408834 - [SR-IOV] - VF leakage on destination host in case of migration failure
Summary: [SR-IOV] - VF leakage on destination host in case of migration failure
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Network
Version: 4.1.0
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ovirt-4.1.0-beta
: 4.1.0.2
Assignee: Arik
QA Contact: Michael Burman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-27 14:26 UTC by Michael Burman
Modified: 2017-02-01 14:54 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.1.0-0.4.master.20170105161132.gitf4e2c11.el7.centos.noarch.rpm
Clone Of:
Environment:
Last Closed: 2017-02-01 14:54:59 UTC
oVirt Team: Network
Embargoed:
rule-engine: ovirt-4.1+


Attachments (Terms of Use)
Logs (755.58 KB, application/x-gzip)
2016-12-27 14:26 UTC, Michael Burman
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 69113 0 master MERGED core: move cleanup of passthrough nics to runningFailed 2017-01-02 13:50:43 UTC
oVirt gerrit 69114 0 master MERGED core: cleanup passthrough nics on rerun vm migration 2016-12-29 11:42:35 UTC
oVirt gerrit 69669 0 ovirt-engine-4.1 MERGED core: proper handling on failure to unplug passthrough nics 2017-01-05 09:49:28 UTC
oVirt gerrit 69670 0 ovirt-engine-4.1 MERGED core: names of not replugged nics as a variable 2017-01-05 09:49:44 UTC
oVirt gerrit 69671 0 ovirt-engine-4.1 MERGED core: plug passthrough nics while migrated vm is locked 2017-01-05 09:49:32 UTC
oVirt gerrit 69672 0 ovirt-engine-4.1 MERGED core: cleanup passthrough nics on rerun vm migration 2017-01-05 09:49:36 UTC
oVirt gerrit 69673 0 ovirt-engine-4.1 MERGED core: minor cleanup in vm migration 2017-01-05 09:49:24 UTC
oVirt gerrit 69674 0 ovirt-engine-4.1 MERGED core: move cleanup of passthrough nics to runningFailed 2017-01-05 09:49:40 UTC
oVirt gerrit 69675 0 ovirt-engine-4.1 MERGED core: cache unplugged passthrough nics on vm migration 2017-01-05 09:49:20 UTC

Description Michael Burman 2016-12-27 14:26:56 UTC
Created attachment 1235520 [details]
Logs

Description of problem:
[SR-IOV] - VF leakage on destination host in case of migration failure.

Assuming that engine allocated VFs on the destination host, and started
migration on Vdsm. However, migration has failed (a bug in Vdsm or
timeout or failure to contact the destination), in such migration failure there is a vf leakage on destination host and the reserved vf can't be allocated to other VMs, until shutting down the vm on source host.


Version-Release number of selected component (if applicable):
4.1.0-0.3.beta2.el7

Steps to Reproduce:
1. Try to migrate vm with sr-iov vNIC(engine allocate vfs on destination) and brake the connection on the destination
2. Once destination host is up, try to use the reserved vf


Actual results:
Failed. vf leakage on the destination host, Engine still consider the vf as taken.  
On the destination host the vf is free. 
Once shutting down the vm on source host, the vf released.

Expected results:
In case of migration failure, the reserved vf shouldn't leak.

Comment 1 Michael Burman 2017-01-10 07:01:46 UTC
Verified on - 4.1.0-0.4.master.20170105161132.gitf4e2c11.el7.centos

Now, in case of migration failure, the reserved vf on destination host doesn't leak and can be used.


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