Bug 1063883

Summary: Cannot run VM for windows VM if sysprep is enabled
Product: [Retired] oVirt Reporter: Francesco Romani <fromani>
Component: ovirt-engine-coreAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: high    
Version: 3.4CC: acathrow, alukiano, gklein, iheim, michal.skrivanek, yeylon
Target Milestone: ---Keywords: Triaged
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: ovirt-3.4.0-beta3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:28:18 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 none

Description Francesco Romani 2014-02-11 15:21:09 UTC
Created attachment 861810 [details]
engine log

Description of problem:
In oVirt engine beta 2, trying to run once a windows VM with sysprep enabled (default settings) results in error, with message:
"Cannot run VM. VM is running."
In engine logs, a NullErrorException is spotted (logs attached)

However, run once can be still used if we disable the sysprep:
Run Once panel -> Boot options -> de-tick the "attach floppy" checkboc (effectively disabling sysprep AFAIK)


Version-Release number of selected component (if applicable):
engine:
  compiled locally from git tag ovirt-engine-3.4.0_beta2
jdk:
  java version "1.7.0_51"
  OpenJDK Runtime Environment (fedora-2.4.5.0.fc19-x86_64 u51-b31)
  OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
jboss: jboss-as-7.1.1-21.fc19.noarch


How reproducible:
100% of times on my tests

Steps to Reproduce:
1. install ovirt-engine 3.4.0 beta2 (I did from sources but shouldn't be relevant)
2. create a windows VM
3. run the windows VM with sysprep enabled (as it is by default)

Actual results:
Error message

Expected results:
Windows VM boots up

Additional info:
Linux VMs seems not affected.

In the attached logs, please note the vm is 'wintest1'; first try is succesfull (sysprep disabled); second try is UNsuccesfull and shows the behaviour dscribed here.

Comment 2 Sandro Bonazzola 2014-02-19 12:27:54 UTC
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA

Comment 3 Artyom 2014-02-24 16:38:37 UTC
Verified on ovirt-engine-3.4.0-0.11.beta3.el6.noarch
Checked via runOnce with attach floppy and simple run

Comment 4 Sandro Bonazzola 2014-03-31 12:28:18 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released