Bug 1192495

Summary: Sysprep problem after upgrade from oVirt Engine 3.5.0.1-1 to 3.5.1.1-1.el6
Product: [Retired] oVirt Reporter: Karel Benes <karel.benes>
Component: ovirt-engine-webadminAssignee: Shahar Havivi <shavivi>
Status: CLOSED CURRENTRELEASE QA Contact: Nisim Simsolo <nsimsolo>
Severity: medium Docs Contact:
Priority: high    
Version: 3.5CC: amureini, bugs, ecohen, gklein, lsurette, mgoldboi, ofrenkel, rbalakri, yeylon
Target Milestone: ---   
Target Release: 3.5.2   
Hardware: x86_64   
OS: Linux   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-04-29 06:18:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1193058, 1196662, 1197441    

Description Karel Benes 2015-02-13 14:30:25 UTC
Description of problem:
When we seal a Windows 7 virtual machine with sysprep (HKEY_LOCAL_MACHINE → SYSTEM → SETUP (Value name: UnattendFile, Value data: a:\sysprep.inf)) and make tamplate, we use next step to create new VM via Cloud-Init/Sysprep.

It usualy create new machine with sysprep parameters.

Aftetr upgrade oVirt Engine from 3.5.0.1-1 to 3.5.1.1-1.el6 first run generate Event message:

VM vmhostname is down with error. Exit message: [Errno 22] Invalid argument: '/tmp/tmp8Vic9N/"Unattend.xml"'.

Then VM runs, but ignore sysprep virtual floppy


Actual results:
VM vmhostname is down with error. Exit message: [Errno 22] Invalid argument: '/tmp/tmp8Vic9N/"Unattend.xml"'.

Expected results:
Normal install VM from sealed windows template like at ovirt engine 3.5.0.1-1 

Additional info:
ovirt engine Scientific Linux release 6.6 (Carbon)
vdsm node CentOS 7 Linux

upgrade was provided

# yum update "ovirt-engine-setup*"
# engine-setup

Comment 1 Shahar Havivi 2015-02-15 11:20:57 UTC
workaround info:
The problem is that sysperp.inf and Unattend.xml are surrounded with apostrophes ie: 
os.windows_2008x64.sysprepFileName.value = "Unattend.xml"

as a workaround one can override osinfo values as described here:
http://www.ovirt.org/OS_info#value_overriding
with something like that:
os.windows_2008x64.sysprepFileName.value = Unattend.xml

Comment 2 Karel Benes 2015-02-15 22:54:13 UTC
Bug in ovirt-engine/packaging/conf/osinfo-defaults.properties
was fixed. "Unattend.xml" apostrophes removed.

Important to note i had to run engine-setup again to apply changes into engine runtime.

Now VM from template runs with syspreped parameters and no error was displayed.

Thanks

Comment 3 Eyal Edri 2015-02-26 12:32:43 UTC
this ovirt bug was fixed during 3.5.1 cycle and is included in the build, and therefore should be verified.

Comment 4 Nisim Simsolo 2015-03-30 11:27:03 UTC
Verified - rhevm-3.5.1-0.2.el6ev

Comment 5 Eyal Edri 2015-04-29 06:18:22 UTC
ovirt 3.5.2 was GA'd. closing current release.