Description of problem: The scenario: User runs ovirt-hosted-engine setup,creates VM,installs OS on that VM,installs RHEVM. All that time setup is waiting for user to install RHEVM on created VM and than press enter in order to install the host into the RHEVM. If ,for some reason, setup was terminated at this point (cntlr-D,power off,screen window terminated) user must to do all the process again which is takes a lot of time considering that user must to create VM, install OS,update VM with all relevant packages and install RHEVM again. Could take an hour or more. We have to give user an option to install host into RHEVM setup when VM has already been created and RHEVM is already installed e.g. if user already run the setup and VM with RHEVM already created go straight to the stage where setup waits for user to hit "enter" in order to install host into RHEVM.
We can add a check on vm.conf and hosted-engine.conf existence and use its content for checking if the vm is already up. If it's up, we can disable all stages before the CLOSEUP stage. Then we need to change CLOSEUP stage for allowing to recover from the right point in the setup flow depending if the os is installed or not (checking boot media).
An answer file is generated at validation stage before changing the system state, including before starting the VM. If the user run "hosted-engine --deploy --config-append=/etc/ovirt-hosted-engine/answer.conf" question are answered automatically. If the disk image has not been deleted from the within the storage domain, it will be reused by the VM preserving the content if boot is pxe or cdrom, overwritten in boot is from ovf. User just need to confirm that OS have been installed on first checkpoint and rhevm has been installed at second checkpoint and if rhevm was really installed and able to run everything is already in place without any more action needed. Is this enough? If so, we can move this to closed, current release, target 3.4.0.
No comments n one month, assuming current state is good enough. Moving to ON_QA. Please reopen if something more is needed.
Verified on ovirt-hosted-engine-setup-1.2.1-4.el6ev.noarch 1) Run hosted-engine --deploy 2) Continue deployment until you finish rhevm setup on vm, and interrupt setup(CTRL+D) 3) Run hosted-engine --deploy ----config-append=conf_file deploy fill all details and only ask for accept from OS installation and for rhevm-setup
Hey Sandro, Doc text has been updated for inclusion in RHBA-2014:18366-01 Can you please give it a quick check to ensure it's still technically accurate. Cheers, Andrew
Hi Andrew, doc text looks ok to me.
It was still going to fail if the NFS path was entered with a trailing slash.
Simone, you moved to POST but the referenced patch has been merged. Can you sync this bug status?
Yes, it was merged on Jan 14th so we can move it to modified
Stop support of redeploy feature under 3.6 according to https://bugzilla.redhat.com/show_bug.cgi?id=1238709#c2
Moving 'requires_doc_text' to '-', so this text will not be included in the Release Notes for 3.6. Also updated the 'oVirt Team' field in order to allow my changes to save.