Bug 1393686

Summary: When putting hypervisor into maintenance, HostedEngine does not migrate
Product: Red Hat Enterprise Virtualization Manager Reporter: Marcus West <mwest>
Component: ovirt-hosted-engine-haAssignee: Martin Sivák <msivak>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.4CC: dfediuck, gklein, lsurette, mwest, oourfali, ykaul
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-23 11:51:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: SLA RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marcus West 2016-11-10 07:25:23 UTC
## Description of problem:

When putting a hypervisor into maintenance mode, normal VM's automatically migrate off.  However, HostedEngine does not move, and the host stays in 'preparing for maintenance stage' until HostedEngine is manually migrated (or shut down)

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

rhevm-4.0.4.4-0.1.el7ev.noarch
ovirt-hosted-engine-ha-2.0.4-1.el7ev.noarch
rhvh-4.0-0.20161012.0

## How reproducible:

Always.  Sometimes, i can get HostedEngine to get stuck in a 'migrating' state, but it's not.  Restarting ovirt-engine clears this out.

## Steps to Reproduce:
1. Right click HostedEngine and put into global maintenance state
2. Put hypervisor running HostedEngine into maintenance
3.

## Actual results:

Host says "Preparing for maintenance", but HostedEngine does not start migrating

## Expected results:

HostedEngine should migrate automatically if hypervisor is put into maintenance.

## Additional info:

Same results if Global Maintenance disabled.  If this is not the expected behaviour, it would be nice if there was a pop up reminding you to deal with HostedEngine, or, putting host into maintenance 'fails'

Comment 4 Martin Sivák 2016-11-11 08:59:12 UTC
Marcus, can you please give us the hosted engine logs too? A screenshot of the webadmin (Hosts and VMs tabs) would help us too. This might be a duplicate of https://bugzilla.redhat.com/1362618

Comment 5 Martin Sivák 2016-11-11 09:01:44 UTC
Ah, no.. we still want the logs, but I just noticed the issue is in your steps:

All automatic is disabled when you put the cluster to global maintenance. This includes the local maintenance migrations.

Was there a reason for the global maintenance? If not, then this might be a DUP of https://bugzilla.redhat.com/1359499

Comment 6 Martin Sivák 2016-11-11 09:04:11 UTC
Btw you might want to check for https://bugzilla.redhat.com/show_bug.cgi?id=1362618#c15 when testing with Global maintenance disabled. This part should be fixed in 4.0.5 iirc.

Comment 8 Marcus West 2016-11-16 07:08:08 UTC
Created attachment 1221044 [details]
migration stuck screenshot

I have tried to migrate HostedEngine by putting the host (intelh5) into maintenance.  By checking the hypervisors, I can see that it has actually migrated successfully, but the gui only shows '0% completed'

Comment 9 Doron Fediuck 2016-11-23 11:51:42 UTC

*** This bug has been marked as a duplicate of bug 1362618 ***