Bug 1866956 - Hosted-Engine restore from backup and 4.4 upgrade fail if Blank template is set as HA
Summary: Hosted-Engine restore from backup and 4.4 upgrade fail if Blank template is s...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-hosted-engine-setup
Version: 4.4.1
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ovirt-4.4.2
: 4.4.2
Assignee: Asaf Rachmani
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-08-07 00:39 UTC by Germano Veit Michel
Modified: 2023-10-06 21:23 UTC (History)
5 users (show)

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.
Clone Of:
Environment:
Last Closed: 2020-09-23 16:15:11 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github oVirt ovirt-ansible-hosted-engine-setup pull 360 0 None closed Disable high availability for HE VM 2020-11-22 11:26:24 UTC
Red Hat Knowledge Base (Solution) 5303571 0 None None None 2020-08-07 00:50:07 UTC
Red Hat Product Errata RHBA-2020:3820 0 None None None 2020-09-23 16:15:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.