Bug 1702016
Summary: | Block moving HE hosts into different Data Centers and make HE host moved to different cluster NonOperational after activation | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | nijin ashok <nashok> | ||||
Component: | ovirt-engine | Assignee: | Artur Socha <asocha> | ||||
Status: | CLOSED ERRATA | QA Contact: | Nikolai Sednev <nsednev> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 4.2.8 | CC: | asocha, dfediuck, didi, fgarciad, gveitmic, lsvaty, mavital, mburman, mkalinin, mmartinv, mperina, nsednev, pelauter, sbonazzo, sgoodman, stefano.stagnaro, stirabos, vito.carambia | ||||
Target Milestone: | ovirt-4.4.3 | Keywords: | Triaged, ZStream | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rhv-4.4.3-8 | Doc Type: | Bug Fix | ||||
Doc Text: |
Previously, the Manager allowed adding or migrating hosts configured as self-hosted engine hosts to a data center or cluster other than the one in which the self-hosted engine VM is running, even though all self-hosted engine hosts should be in the same data center and cluster. The hosts' IDs were identical to what they were when initially deployed, causing a Sanlock error. Consequently, the agent failed to start.
With this update, an error is raised when adding a new self-hosted engine host or migrating an existing one to a data center or cluster other than the one in which the self-hosted engine is running.
To add or migrate a self-hosted engine host to a data center or cluster other than the one in which the self-hosted engine is running, you need to disable the host from being a self-hosted engine host by reinstalling it. Follow these steps in the Administration Portal:
1. Move the host to Maintenance mode.
2. Invoke Reinstall with the *Hosted Engine UNDEPLOY* option selected. If using the REST API, use the `undeploy_hosted_engine` parameter.
3. Edit the host and select the target data center and cluster.
4. Activate the host.
For details, see the Administration Guide or REST API Guide.
|
Story Points: | --- | ||||
Clone Of: | Environment: | ||||||
Last Closed: | 2020-11-24 13:09:18 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: | |||||||
Bug Depends On: | 1859586 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
nijin ashok
2019-04-22 17:55:33 UTC
Re-targeting to 4.3.6 not being identified as blocker for 4.3.5. sync2jira sync2jira *** Bug 1844787 has been marked as a duplicate of this bug. *** Now you can't add ha-host to different DC as there is no such option available during addition of the host in GUI (Hosted engine tab unavailable). Please see attached Screenshot from 2020-06-18 18-33-09.png. In case that after addition you'll try to follow "Installation->reinstall->Hosted Engine->Deploy", you'll receive an error: " Operation Canceled Error while executing action: alma03.qa.lab.tlv.redhat.com: 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." . Tested on following components: Software Version:4.4.1.2-0.10.el8ev rhvm-appliance-4.4-20200604.0.el8ev.x86_64 ovirt-hosted-engine-setup-2.4.4-1.el8ev.noarch ovirt-hosted-engine-ha-2.4.3-1.el8ev.noarch Linux 4.18.0-193.9.1.el8_2.x86_64 #1 SMP Sun Jun 14 15:03:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.2 (Ootpa) Created attachment 1697979 [details]
Screenshot.png
Moving back to POST, current code was reverted, complete solution will be part of 4.4.2 release What is the fix then? Tried to add ha-capable host alma07 to none-ha cluster inside the HE's datacenter and received this error: "Failed to connect Host alma07.qa.lab.tlv.redhat.com to Storage Pool Default 10/13/205:43:57 PM" "Cannot activate host alma07.qa.lab.tlv.redhat.com in cluster test. Hosts with active hosted engine configuration can be activated only in the same cluster as Hosted Engine VM is running". Tried to add ha-capable host alma07 to none-HE datacenter and got error: " Operation Canceled Error while executing action: alma07.qa.lab.tlv.redhat.com: 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. " 1. Moving host with hosted engine configuration into a different DC (other than HE VM is running in) is completely forbidden. - Checked and verified. 2. Moving host with hosted engine configuration into a different cluster (other than HE VM is running in) is allowed, but host cannot be activated successfully -> after activation it will become Non Operational with the relevant message. - Checked and verified. 3. Moving regular host without hosted engine configuration can be successfully moved between DCs/clusters and successfully activated in them. - Checked and verified. Tested on: rhvm-4.4.3.6-0.13.el8ev.noarch ovirt-hosted-engine-setup-2.4.7-2.el8ev.noarch ovirt-hosted-engine-ha-2.4.5-1.el8ev.noarch Linux 4.18.0-240.el8.x86_64 #1 SMP Wed Sep 23 05:13:10 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux Red Hat Enterprise Linux release 8.3 (Ootpa) Current doc text is helpful, but too long for a release note, so I'm copying it into this comment for now to save it before editing it for the Release Notes: Cause: Currently, RHV-M allows adding additional hosts with hosted engine configuration into different Data Center/Cluster than hosted engine VM is running in. But per the HE concept, all hosts with hosted engine configuration should be in the same Data Center/Cluster. Since above flows are allowed, the user can incorrectly start the installation of new host or move existing host to another Data Center/Cluster. No errors are shown during the deployment and the deployment will be successful and the host status will be "UP". Consequence: The agent will fail to start because of Sanlock error since the host ID will be the same as that of initially deployed HE hosts. Fix: Following flows have been changed: 1. Adding a new host with hosted engine configuration into a different DataCenter (other than the one where hosted engine VM is running in) is not allowed and relevant error is raised 2. Moving an existing host with hosted engine configuration into a different DataCenter (other than the one where hosted engine VM is running in) is not allowed and relevant error is raised 3. Adding a new host with hosted engine configuration into a different Cluster (other than the one where hosted engine VM is running in) is allowed, but such host cannot be activated, upon activation host is moved to NonOperational status and relevant error is raised 4. Moving an existing host with hosted engine configuration into a different Cluster (other than the one where hosted engine VM is running in) is allowed, but such host cannot be activated, upon activation host is moved to NonOperational status and relevant error is raised Additional notes: Following steps need to be taken in order to successfully activate host with hosted engine configuration in different DataCenter/Cluster: 1. Move such host to Maintenance 2. Invoke Reinstall with Hosted Engine UNDEPLOY option selected. For RestApi please use 'undeploy_hosted_engine' param. Detailed documentation here [1]: 3. Edit host and select cluster from desired DC 4. Activate In order to move above host back to original DataCenter/Cluster and make it available for HE please use following steps: 1) Put HE host to maintenance 2) Edit host and select cluster from desired DC. Save the change. 3) Chooser Reinstall with HE DEPLOY option selected. For RestApi please use 'deploy_hosted_engine' param. Detailed documentation here [1]: 4) Activate [1] http://ovirt.github.io/ovirt-engine-api-model/4.4/#services/host/methods/install Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Low: Red Hat Virtualization security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5179 |