Bug 826593 - [RHEVM] [backend] [Required Networks] VM migration algorithm doesn't include networks when it supplies the optional hosts for migration
Summary: [RHEVM] [backend] [Required Networks] VM migration algorithm doesn't include ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.0.7
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: ---
Assignee: Laszlo Hornyak
QA Contact: Martin Pavlik
URL:
Whiteboard: network sla
Depends On:
Blocks: 810675 830836 833648
TreeView+ depends on / blocked
 
Reported: 2012-05-30 14:56 UTC by Martin Pavlik
Modified: 2015-09-22 13:10 UTC (History)
10 users (show)

Fixed In Version: si10
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm.log + engine.log (15.75 KB, application/x-gzip)
2012-05-30 14:56 UTC, Martin Pavlik
no flags Details

Description Martin Pavlik 2012-05-30 14:56:38 UTC
Created attachment 587763 [details]
vdsm.log + engine.log

Description of problem:
VM migration algorithm doesn't include networks when it supplies the optional hosts for migration

With introduction of new feature Required_Networks
(http://lists.ovirt.org/wiki/Features/Design/Network/Required_Networks) not all hosts in cluster have to have same set of networks, since some networks can be marked as non-required. 

This can lead to situation when VM migration will fail because user or rhevm will select for VM migration (VM is connected to non-required network) host without non-required network. 

Version-Release number of selected component (if applicable):
oVirt Enterprise Virtualization Engine Manager Version: 3.1.0_0001-11.el6ev 

How reproducible:
100%

Steps to Reproduce:
Have 2 hosts (Host1, Host2)
1. Create logcial network and attach to cluster
2. configure new network as required=false
3. add network only to one host (Host1)
5. start VM on Host1
6. try to perform migration of VM from Host1 to Host2
  
Actual results:
in case VM is connected to non-required network all active hosts in cluster are offered for VM migration

Expected results:
in case VM is connected to non-required network all active hosts in cluster which contain non-required network are offered for VM migration


Additional info:

Thread-11477::ERROR::2012-05-30 16:50:09,569::vm::239::vm.Vm::(run) vmId=`e81eb68f-e3d6-471f-a003-c89118e97457`::Failed to migrate
Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 222, in run
    self._startUnderlyingMigration()
  File "/usr/share/vdsm/libvirtvm.py", line 451, in _startUnderlyingMigration
    None, maxBandwidth)
  File "/usr/share/vdsm/libvirtvm.py", line 491, in f
    ret = attr(*args, **kwargs)
  File "/usr/lib/python2.6/site-packages/vdsm/libvirtconnection.py", line 82, in wrapper
    ret = f(*args, **kwargs)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 1100, in migrateToURI2
    if ret == -1: raise libvirtError ('virDomainMigrateToURI2() failed', dom=self)
libvirtError: Cannot get interface MTU on 'nonRequired': No such device

Comment 3 Laszlo Hornyak 2012-07-02 15:15:14 UTC
http://gerrit.ovirt.org/#/c/5838/

Comment 4 Laszlo Hornyak 2012-07-03 12:38:10 UTC
merged upstream


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