Bug 1866956

Summary: Hosted-Engine restore from backup and 4.4 upgrade fail if Blank template is set as HA
Product: Red Hat Enterprise Virtualization Manager Reporter: Germano Veit Michel <gveitmic>
Component: ovirt-hosted-engine-setupAssignee: Asaf Rachmani <arachman>
Status: CLOSED ERRATA QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.1CC: arachman, lsurette, mavital, pelauter, sgoodman
Target Milestone: ovirt-4.4.2   
Target Release: 4.4.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: ovirt-ansible-hosted-engine-setup-1.1.8 Doc Type: Bug Fix
Doc Text:
Before this update, when the *Blank* template was set with HA enabled, a backup of the RHVM virtual machine saved this setting. This setting prevented deployment of the RHVM virtual machine during the restore operation. Consequently, upgrading to Red Hat Virtualization 4.4 failed. This update disables the HA setting on the RHVM virtual machine during self-hosted engine deployment, and as a result, the upgrade to 4.4 succeeds.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-23 16:15:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Germano Veit Michel 2020-08-07 00:39:34 UTC
Description of problem:

1. If the Blank template is set with HA enabled (auto_startup), the new HE VM created during deploy has it set as well. 

2. Then when hosted-engine setup does an UpdateVm on this step:
[ INFO  ] TASK [ovirt.hosted_engine_setup : Trigger hosted engine OVF update and enable the serial console]

3. Validation fails on the engine side:
2020-08-07 10:26:06,550+10 WARN  [org.ovirt.engine.core.bll.UpdateVmCommand] (default task-1) [7d6bebfa-d31b-4f03-962b-f9140e00376c] Validation of action 'UpdateVm' failed for user admin@internal-authz. Reasons: VAR__ACTION__UPDATE,VAR__TYPE__VM,ACTION_TYPE_FAILED_VM_CANNOT_BE_HIGHLY_AVAILABLE_AND_HOSTED_ENGINE

4. Deployment fails.

This breaks upgrade to RHV 4.4, in addition to restoring from backup.

Version-Release number of selected component (if applicable):
ovirt-engine-4.4.1.10-0.1.el8e
ovirt-hosted-engine-setup-2.4.5-1.el8ev.noarch
ovirt-ansible-hosted-engine-setup-1.1.7-1.el8ev.noarch
ansible-2.9.11-1.el8ae.noarch

How reproducible:
Always

Steps to Reproduce:
1. Set Blank Template as HA
2. Upgrade from 4.3 to 4.4
    OR
   Backup and Restore on 4.4

Actual results:
Cannot upgrade to 4.4 or restore backup if Blank template is set with HA

Expected results:
Create HE VM with HA set to false, not inheriting it from the blank template.

Comment 4 Petr Matyáš 2020-08-25 16:14:03 UTC
Moving back until necessary package is in a build.

Currently we got ovirt-ansible-hosted-engine-setup-1.1.7-1.el8ev.noarch

Comment 5 Petr Matyáš 2020-08-27 11:37:18 UTC
Verified on ovirt-ansible-hosted-engine-setup-1.1.8-1.el8ev.noarch

Comment 11 errata-xmlrpc 2020-09-23 16:15:11 UTC
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 (RHV Engine and Host Common Packages 4.4.z [ovirt-4.4.2]), 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/RHBA-2020:3820

Comment 12 meital avital 2022-07-28 16:23:57 UTC
Due to QE capacity, we are not going to cover this issue in our automation