Bug 1817450 - host_service.install() does not work with deploy_hosted_engine as True. [RHV clone - 4.3.10]
Summary: host_service.install() does not work with deploy_hosted_engine as True. [RHV ...
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.0
Hardware: x86_64
OS: Linux
Target Milestone: ovirt-4.3.10
: 4.3.10
Assignee: Ori Liel
QA Contact: Guilherme Santos
Depends On: 1808126
TreeView+ depends on / blocked
Reported: 2020-03-26 11:27 UTC by RHV bug bot
Modified: 2023-10-06 19:30 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.3.10
Doc Type: No Doc Update
Doc Text:
Clone Of: 1808126
Last Closed: 2020-06-04 15:04:01 UTC
oVirt Team: Infra
Target Upstream Version:
lsvaty: testing_plan_complete-

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4925731 0 None None None 2020-03-26 11:28:26 UTC
Red Hat Product Errata RHBA-2020:2396 0 None None None 2020-06-04 15:04:18 UTC
oVirt gerrit 107799 0 master MERGED restapi: Install Host - Honor deploy-hosted-engine Flag 2020-09-08 13:02:35 UTC
oVirt gerrit 107917 0 ovirt-engine-4.3 ABANDONED resatpi: Install Host - Honor deploy-hosted-engine Flag 2020-09-08 13:02:34 UTC
oVirt gerrit 107938 0 ovirt-engine-4.3 MERGED resatpi: Install Host - Honor deploy-hosted-engine Flag 2020-09-08 13:02:34 UTC

Description RHV bug bot 2020-03-26 11:27:45 UTC
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1808126 +++

Description of problem:
When we use the host_services.host_service.install() method and pass deploy_hosted_engine as True, it does send it in the script converted XML, but when the host is installed, it does not have any hosted-engine configurations.

Version-Release number of selected component (if applicable):
ovirt-engine-sdk-python       4.4.1

How reproducible:

Steps to Reproduce:
1. Prepare the python SDK script to reinstall the host using host_service().install

Actual results:
The script is executed, but the hosted-engine configurations are not added to the host.

Expected results:
The hosted-engine configurations are added to the host.

Additional info:

(Originally by Siddhant Rao)

Comment 2 RHV bug bot 2020-03-26 11:27:52 UTC
Created attachment 1666295 [details]

(Originally by Siddhant Rao)

Comment 3 RHV bug bot 2020-03-26 11:27:55 UTC
Created attachment 1666296 [details]
example.log ( the debugger file from logging.getLogger())

(Originally by Siddhant Rao)

Comment 4 RHV bug bot 2020-03-26 11:27:58 UTC
Created attachment 1666297 [details]

(Originally by Siddhant Rao)

Comment 5 RHV bug bot 2020-03-26 11:28:01 UTC
Created attachment 1666298 [details]

(Originally by Siddhant Rao)

Comment 6 RHV bug bot 2020-03-26 11:28:03 UTC

There is a customer that is facing the issue, can we know if there is a workaround possible other than remove and hosts_service.add()?. They mention they have gluster storage running on it so they cannot remove it.

A response is appreciated.


(Originally by Siddhant Rao)

Comment 11 Guilherme Santos 2020-05-11 11:00:32 UTC
Verified on:

1. have the target host (to be reinstalled) in maintenance mode
2. run the script to reinstall the host via sdk with host_service().install against the 4.3.10 hosted engine

host successfully reinstalled and configured
# grep ha-agent /var/log/ovirt-engine/engine.log
2020-05-11 13:45:19,678+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (VdsDeploy) [bca615cd-c2aa-4d13-a9c3-d74c91384a5b] EVENT_ID: VDS_INSTALL_IN_PROGRESS(509), Installing Host host_mixed_2. Starting ovirt-ha-agent.
# hosted-engine --vm-status
< dump of status of all hosted-engine vms >

Comment 13 errata-xmlrpc 2020-06-04 15:04:01 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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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