Bug 1263950 - Migrating VM get stuck when killed on destination host
Migrating VM get stuck when killed on destination host
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm (Show other bugs)
3.6.0
Unspecified Unspecified
unspecified Severity urgent
: ---
: ---
Assigned To: Dan Kenigsberg
Ilanit Stein
virt
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-17 03:35 EDT by Arik
Modified: 2015-09-17 04:17 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-17 04:17:48 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
VDSM log on source (10.97 MB, text/plain)
2015-09-17 03:40 EDT, Arik
no flags Details
VDSM log on destination (6.73 MB, text/plain)
2015-09-17 03:41 EDT, Arik
no flags Details

  None (edit)
Description Arik 2015-09-17 03:35:47 EDT
Description of problem:
Killing the qemu process on the destination host while the VM is migrating causes the VM to get stuck in Migration Source* in VDSM although in the source host the VM is 'running' in libvirt.

Version-Release number of selected component (if applicable):


How reproducible:
VDSM: 4.17.5
Libvirt: 1.2.18 (1.fc22)
QEMU: 2.4.0 (2.fc22)

Steps to Reproduce:
1. Migrate a VM
2. Kill the qemu process on the destination host
3.

Actual results:
VM stays in MigratingFrom status in the engine.

vdsClient 0 list table:
9397bed3-70a4-48bc-a0e5-77ff5a212557   1812  mmm  Migration Source* 

virsh > list
 Id    Name                           State
----------------------------------------------------
 2     mmm                            running

Expected results:
The VM should return to status UP on the source.

Additional info:
The following exception is repeating in VDSM log:
virt.vm::(_getRunningVmStats) vmId=`9397bed3-70a4-48bc-a0e5-77ff5a212557`::Error fetching vm stats
Traceback (most recent call last):
  File "/usr/share/vdsm/virt/vm.py", line 1384, in _getRunningVmStats
    vm_sample.interval)
  File "/usr/share/vdsm/virt/vmstats.py", line 43, in produce
    disks(vm, stats, first_sample, last_sample, interval)
  File "/usr/share/vdsm/virt/vmstats.py", line 262, in disks
    interval))
  File "/usr/share/vdsm/virt/vmstats.py", line 291, in _disk_rate
    (last_sample['block.%d.rd.bytes' % last_index] -
KeyError: 'block.1.rd.bytes'
Comment 1 Arik 2015-09-17 03:40:23 EDT
Created attachment 1074316 [details]
VDSM log on source
Comment 2 Arik 2015-09-17 03:41:31 EDT
Created attachment 1074317 [details]
VDSM log on destination
Comment 3 Arik 2015-09-17 04:17:48 EDT
Apparently a problem in libvirt.

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