Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1169854

Summary: Host pending resources are not cleared after migration canceling.
Product: Red Hat Enterprise Virtualization Manager Reporter: Nisim Simsolo <nsimsolo>
Component: ovirt-engineAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.5.0CC: gklein, lpeer, lsurette, mavital, michal.skrivanek, nsimsolo, rbalakri, Rhev-m-bugs, sherold, srevivo, ykaul
Target Milestone: ovirt-3.6.0-rcKeywords: ZStream
Target Release: 3.6.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-3-6-0-2 Doc Type: Bug Fix
Doc Text:
Host's pending resources tracking was fixed. Previously the required memory was not freed on the destination host during live migration when the migration was cancelled, leading eventually to an apparent memory exhaustion on the destination host - preventing VMs to be launched there. Resources are now tracked correctly
Story Points: ---
Clone Of:
: 1174816 (view as bug list) Environment:
Last Closed: 2016-04-20 01:26:59 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:
Bug Depends On:    
Bug Blocks: 1174816    
Attachments:
Description Flags
engine-log
none
engine-log-collector none

Description Nisim Simsolo 2014-12-02 14:54:17 UTC
Description of problem:
After migration canceling, host pending resources (pending_vmem_size and pending_vcpus_count) are not cleared. eventually causing to insufficiant memory when trying to create new VM or migrating VM.

Version-Release number of selected component (if applicable):
engine (3.5):
rhevm-3.5.0-0.21.el6ev.noarch
hosts (7.1):
qemu-kvm-rhev-1.5.3-60.el7_0.11.x86_64
vdsm-4.16.7.6-1.el7ev.x86_64
libvirt-1.2.8-9.el7.x86_64
sanlock-3.2.2-1.el7.x86_64

How reproducible:
Consistently

Steps to Reproduce:
1. Via RHEV UI, virtual machine tab, create new VM and install OS on it.
2. Right click on created VM and select "Migrate".
3. Right after migration started, right click on VM and selet "cancel migration"

Actual results:
Afetr migration canceled, pending mem and pending cpu should be released.

Expected results:
Pending cpu and mem are not released after migration canceling.

Additional info:
Host and engine logs attached (migration started at 2014-12-02 16:28:18)

Comment 1 Nisim Simsolo 2014-12-02 15:24:19 UTC
Created attachment 963792 [details]
engine-log

Comment 2 Nisim Simsolo 2014-12-02 16:01:38 UTC
Created attachment 963832 [details]
engine-log-collector

Comment 4 Eyal Edri 2014-12-14 13:25:46 UTC
bug pushed to 3.5.1, removing from 3.5.0 trackers.

Comment 6 Nisim Simsolo 2015-09-16 07:55:15 UTC
Verified:
rhevm-3.6.0-0.13.master.el6
vdsm-4.17.6-1.el7ev.noarch
qemu-kvm-rhev-2.3.0-19.el7.x86_64
sanlock-3.2.4-1.el7.x86_64
libvirt-client-1.2.17-5.el7.x86_64