Bug 1808126 - host_service.install() does not work with deploy_hosted_engine as True.
Summary: host_service.install() does not work with deploy_hosted_engine as True.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.4.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ovirt-4.4.0
: ---
Assignee: Ori Liel
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks: 1817450
TreeView+ depends on / blocked
 
Reported: 2020-02-27 21:20 UTC by Siddhant Rao
Modified: 2023-10-06 19:17 UTC (History)
3 users (show)

Fixed In Version: rhvm-4.4.0-0.31
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1817450 (view as bug list)
Environment:
Last Closed: 2020-08-04 13:21:50 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:
lsvaty: testing_plan_complete-


Attachments (Terms of Use)
ovirt-requests-log (626.79 KB, text/plain)
2020-02-27 21:36 UTC, Siddhant Rao
no flags Details
example.log ( the debugger file from logging.getLogger()) (2.81 MB, text/plain)
2020-02-27 21:43 UTC, Siddhant Rao
no flags Details
engine-log(part-1) (454.75 KB, application/gzip)
2020-02-27 21:45 UTC, Siddhant Rao
no flags Details
engine-log(part-2) (2.77 KB, text/plain)
2020-02-27 21:45 UTC, Siddhant Rao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 4925731 0 None None None 2020-03-24 18:26:41 UTC
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:22:10 UTC
oVirt gerrit 107799 0 master MERGED restapi: Install Host - Honor deploy-hosted-engine Flag 2020-07-09 10:26:28 UTC
oVirt gerrit 107917 0 ovirt-engine-4.3 ABANDONED resatpi: Install Host - Honor deploy-hosted-engine Flag 2020-07-17 12:34:48 UTC
oVirt gerrit 107938 0 ovirt-engine-4.3 MERGED resatpi: Install Host - Honor deploy-hosted-engine Flag 2020-07-17 12:34:48 UTC

Description Siddhant Rao 2020-02-27 21:20:18 UTC
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
ovirt-engine-4.3.5.4-0.1.el7.noarch

How reproducible:
100%

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:

Comment 2 Siddhant Rao 2020-02-27 21:36:40 UTC
Created attachment 1666295 [details]
ovirt-requests-log

Comment 3 Siddhant Rao 2020-02-27 21:43:52 UTC
Created attachment 1666296 [details]
example.log ( the debugger file from logging.getLogger())

Comment 4 Siddhant Rao 2020-02-27 21:45:01 UTC
Created attachment 1666297 [details]
engine-log(part-1)

Comment 5 Siddhant Rao 2020-02-27 21:45:37 UTC
Created attachment 1666298 [details]
engine-log(part-2)

Comment 6 Siddhant Rao 2020-02-27 21:49:11 UTC
Hi,

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.

Thanks!

Comment 12 Guilherme Santos 2020-04-23 15:19:22 UTC
Verified on:
ovirt-engine-4.4.0-0.33.master.el8ev.noarch

Steps:
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.4 hosted engine

Results:
host successfully reinstalled and configured
# grep ha-agent /var/log/ovirt-engine/engine.log
2020-04-22 22:05:36,884+03 INFO  [org.ovirt.engine.core.dal.dbbroker.auditloghandling.AuditLogDirector] (EE-ManagedThreadFactory-engine-
Thread-2475) [22c1fb74-449b-4f3b-9c47-1547bbf295f9] EVENT_ID: ANSIBLE_RUNNER_EVENT_NOTIFICATION(559), Installing Host host_mixed_2. Star
t ovirt-ha-agent service.
# hosted-engine --vm-status
< dump of status of all hosted-engine vms >

Comment 15 errata-xmlrpc 2020-08-04 13:21:50 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 (Important: RHV Manager (ovirt-engine) 4.4 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:3247


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