Bug 1160460

Summary: [engine-backend] guest boots as Run-once after OS installation is completed
Product: Red Hat Enterprise Virtualization Manager Reporter: Elad <ebenahar>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact:
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5.0CC: ecohen, gklein, iheim, lpeer, lsurette, ofrenkel, rbalakri, Rhev-m-bugs, yeylon
Target Milestone: ---   
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-05 07:37:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine.log and /var/log/ from host none

Description Elad 2014-11-04 21:03:24 UTC
Created attachment 953833 [details]
engine.log and /var/log/ from host

Description of problem:
After installing a guest from CD-ROM using an ISO from Run-once, the VM gets rebooted. When it boots, the boot order remains as it was configured in Run-once and not as it is configured in the VM persistemt configuration. The VM boots from the CD-ROM again and it has to be powered-off/shut-down and start again in order to boot from the configured device (hard-disk).


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

How reproducible:
rhev 3.5 vt8

Steps to Reproduce:
Have an active ISO domain in the DC
1. Create a VM and start it from Run-once. Change the boot order so the VM will boot from CD-ROM. Pick an ISO from the ISO domain
2. Install OS. Once OS installation is done, the VM will be rebooted automatically or the guest will ask the user to reboot it


Actual results:

VM enter to 'rebooting' state:

2014-11-04 17:29:53,506 INFO  [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-31) VM vm-2 2a16d463-4ac5-446d-abb2-c7c1605cc8f3 moved from U
p --> RebootInProgress

And then to Up:

2014-11-04 17:30:54,344 INFO  [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-12) VM vm-2 2a16d463-4ac5-446d-abb2-c7c1605cc8f3 moved from R
ebootInProgress --> Up


VM is still in 'Run-once' mode. It boots from CD-ROM once again instead of booting from the defined device configured in the persistent VM configuration. 

VM boot sequmce after the VM started:
# select vm_name,boot_sequence from vms;

 vm_name | boot_sequence 
---------+---------------
 vm-2    |             5


After that, I powered-off the VM and started it. Boot sequmce after the VM was started:
 
 vm_name | boot_sequence 
---------+---------------
 vm-2    |             0



2014-11-04 22:53:05,290 INFO  [org.ovirt.engine.core.vdsbroker.VdsUpdateRunTimeInfo] (DefaultQuartzScheduler_Worker-39) [10bdb7b4] VM vm-2 2a16d463-4ac5-446d-abb2-c7c1605cc8f3 moved from PoweringUp --> Up


Now the boot sequnce changed to the persistent configuration.

Expected results:
VM shouldn't start in Run-once after the installation has completed and it was rebooted.


Additional info: engine.log and /var/log/ from host

Comment 1 Omer Frenkel 2014-11-05 07:37:28 UTC

*** This bug has been marked as a duplicate of bug 1054070 ***