Bug 1101297

Summary: [RFE] Allow fully automatic deployment process for hosted-engine
Product: Red Hat Enterprise Virtualization Manager Reporter: Artyom <alukiano>
Component: ovirt-hosted-engine-setupAssignee: Simone Tiraboschi <stirabos>
Status: CLOSED ERRATA QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: medium    
Version: 3.4.0CC: alukiano, asegundo, didi, gklein, iheim, istein, juwu, lbednar, sbonazzo, s.kieske, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: FutureFeature, Triaged
Target Release: 3.6.0Flags: sherold: Triaged+
Hardware: x86_64   
OS: Linux   
Fixed In Version: ovirt-3.6.0-alpha1 Doc Type: Enhancement
Doc Text:
With this release, Self-Hosted Engine setup can be fully automated by using the RHEV-M Virtual Appliance and dynamically configuring it with cloud-init.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 18:51:07 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:
Bug Depends On:    
Bug Blocks: 1217106    

Description Artyom 2014-05-26 16:35:50 UTC
Description of problem:
Now hosted-engine --deploy process wait input from user, on steps, like OS installation and engine installation. It very useful to make it fully automatically also for testing and also for user it will useful just give answer-file and not wait for each step.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Run hosted-engine --deploy

Actual results:
Deployment process waiting for user input on stages like OS and engine installation.

Expected results:
Fully automatic deployment with answer file 

Additional info:
Sandro proposed, something like this:
I guess we can just pass 1 to OS setup dialog with an additional env variable:
it will wait for VM shutdown before continuing.
For the next one we can just add a 5 seconds sleep and pass 1 using the same additional env variable:
it will cause an output saying engine is not live and try again after checking its config.(for this option we also need to add some flag to answer file like automatic_deployment, also timeout and sample time values)

Comment 1 Itamar Heim 2014-06-02 10:36:50 UTC
is this just for unattended setup for testing?
(because for production deployments, the plan is to make this simpler via the hosted-engine guest image as described in https://bugzilla.redhat.com/show_bug.cgi?id=1103409#c2)

Comment 2 Yedidyah Bar David 2014-06-02 11:31:28 UTC
It's about the interaction on the host, unrelated to the engine VM stuff. Currently this interaction can't be fully automatic. In principle it can be - we'll need to make the verification questions (OS is setup? engine is setup?) loop until success (probably with some timeout) (as well as making them answerable from the answer file).

Comment 3 Sandro Bonazzola 2015-02-03 13:29:45 UTC
*** Bug 1186742 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2016-03-09 18:51:07 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.