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

Bug 1123079

Summary: Host hangs when preparing for maintenance and VM's are being stopped
Product: Red Hat Enterprise Virtualization Manager Reporter: Allie DeVolder <adevolder>
Component: ovirt-engineAssignee: Roy Golan <rgolan>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.4.0CC: acathrow, ecohen, ederevea, iheim, lpeer, lsurette, ofrenkel, oourfali, rgolan, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-30 07:17:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Allie DeVolder 2014-07-24 19:22:34 UTC
Description of problem:
There's an issue with the RHEVM infrastructure that causes a host to hang. This happens when the host is preparing for maintenance and at the same time you send a shutdown command to one of the VM's running on it, using the REST API.

This will cause migrating of the VM's to fail preventing the host from ever entering maintenance mode. The VM will also be inaccessible. Operations like "Cancel migration" and "Shutdown" will not work on it anymore. In the RHEVM gui you can see that the host has 0 VM's assigned to it, though in the VM's tab it still shows one in migrating state.

The only known resolution is to reboot the host in question.

Version-Release number of selected component (if applicable):
RHEV-M: rhevm-3.4.0-0.22
Hypervisor: vdsm-4.14.11-5.el6ev.x86_64 on Red Hat Enterprise Linux Server release 6.5

How reproducible:
Always

Steps to Reproduce:
1. On a host, create several VM's and start them.
2. Once they're up and running, switch the host to maintenance mode.
3. When it enters the state "preparing for maintenance", use the rest API to shutdown one ore more of the VM's

Actual results:
Host hangs in "Preparing for maintenance" state and VM hangs in state "Migrating".

Expected results:
Host enters maintenance mode and VM is shut down.

Additional info:

Comment 2 Oved Ourfali 2014-07-27 05:11:17 UTC
This one is somewhere between infra and virt. Marked it as virt for now, due to related work that's ongoing.
Roy - cc-ed you on this bug. Can you have a look?