Bug 1844787

Summary: Operation canceled while trying to move a host to another cluster/DC in HE environment
Product: [oVirt] ovirt-engine Reporter: Michael Burman <mburman>
Component: BLL.InfraAssignee: Martin Perina <mperina>
Status: CLOSED DUPLICATE QA Contact: Lucie Leistnerova <lleistne>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.4.1CC: bpelled, bugs
Target Milestone: ---Keywords: Automation, AutomationBlocker, Regression
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-18 14:05:17 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Michael Burman 2020-06-07 07:16:53 UTC
Description of problem:
Operation canceled while trying to move a host to another cluster in HE environment.

We noticed a new regression on our HE environments during our automation executions.

Many tests failed while trying to move a host to a different cluster and we have new engine operation canceled error. 

'Error while executing action:

host_mixed_2:
Cannot edit Host. You are using host from data center other than hosted engine VM runs on. In order to start the hosted engine import process, please select host from the same data center or move the host there first.'

Version-Release number of selected component (if applicable):
rhvm-4.4.1.2-0.10.el8ev.noarch

How reproducible:
100% on HE environments.

Steps to Reproduce:
1. Have a 4.4 HE setup in non default cluster
2. Try to move host to default cluster

Actual results:
Operation cancelled in engine
Error while executing action:

host_mixed_2:
Cannot edit Host. You are using host from data center other than hosted engine VM runs on. In order to start the hosted engine import process, please select host from the same data center or move the host there first.

In fact the host moved to another cluster. But the operation cancelled and had failed many tests. 

Expected results:
Should work as expected.

Comment 1 Michael Burman 2020-06-07 07:19:54 UTC
2020-06-07 10:17:11,202+03 WARN  [org.ovirt.engine.core.bll.hostdeploy.UpdateVdsCommand] (default task-48) [bf8a6586-c8c8-4b39-af09-27519fbe8c58] Validation of action 'UpdateVds' failed for user admin@internal-authz. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__HOST,ACTION_TYPE_FAILED_HOSTED_ENGINE_HOST_IN_ANOTHER_DC

This is a new error and warning. The hosts are all in the same DC of course.

Comment 3 Michael Burman 2020-06-07 07:27:40 UTC
It seems that we now don't allowed to move hosts to another DC in a HE setup and this is blocking many automated tests that rely that this operation can work.

Comment 4 Martin Perina 2020-06-18 14:05:17 UTC
All additional development around adding/moving hosts with HE configuration to different DC/cluster will be handled in 1702016

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