Bug 1924823

Summary: Reboot host after host deploy is not exposed in RESTAPI
Product: [oVirt] ovirt-engine Reporter: Martin Perina <mperina>
Component: RestAPIAssignee: Dana <delfassy>
Status: CLOSED CURRENTRELEASE QA Contact: Guilherme Santos <gdeolive>
Severity: high Docs Contact:
Priority: high    
Version: 4.4.5CC: bugs, gdeolive, pmatyas
Target Milestone: ovirt-4.4.5Flags: pm-rhel: ovirt-4.4+
gdeolive: testing_ack+
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.4.5.5 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-18 15:14:56 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:    
Bug Blocks: 1934407    

Description Martin Perina 2021-02-03 17:26:15 UTC
We have added the option to reboot host after host deploy as a part of BZ1853906, but unfortunately we forgot to expose it in RESTAPI.

Comment 1 RHEL Program Management 2021-02-03 17:26:22 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 2 Martin Perina 2021-02-08 09:56:17 UTC
*** Bug 1925084 has been marked as a duplicate of this bug. ***

Comment 3 Guilherme Santos 2021-03-16 19:58:55 UTC
Verified on:
ovirt-engine-4.4.5.9-0.1.el8ev.noarch

Steps:
1. have a host on Maintenance through web UI
2. reinstall the host using the web UI
# curl -X POST -k -u <user>:<password> -H "Content-Type: application/json" -H "Accept: application/json" https://<engine-fqdn>/ovirt-engine/api/hosts/c8d231e7-4e6e-468a-bac5-c8c29a20ff53/install -d '{"root_password": <root_password>, "reboot": "true"}'

Results:
Host successfully reinstalled and rebooted after the installation, with the option of reboot being exposed through API

Comment 4 Guilherme Santos 2021-03-16 19:59:32 UTC
typo:
on step 2 - reinstall the host using the API***

Comment 5 Sandro Bonazzola 2021-03-18 15:14:56 UTC
This bugzilla is included in oVirt 4.4.5 release, published on March 18th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.5 release, it has been closed with a resolution of CURRENT RELEASE.

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