Bug 1192495 - Sysprep problem after upgrade from oVirt Engine 3.5.0.1-1 to 3.5.1.1-1.el6
Summary: Sysprep problem after upgrade from oVirt Engine 3.5.0.1-1 to 3.5.1.1-1.el6
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-webadmin
Version: 3.5
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: ---
: 3.5.2
Assignee: Shahar Havivi
QA Contact: Nisim Simsolo
URL:
Whiteboard: virt
Depends On:
Blocks: 1193058 1196662 1197441
TreeView+ depends on / blocked
 
Reported: 2015-02-13 14:30 UTC by Karel Benes
Modified: 2016-02-10 19:48 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-29 06:18:22 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 37753 0 master MERGED Sysprep is sending apostrophes with sysprep name Never
oVirt gerrit 37800 0 ovirt-engine-3.5 MERGED Sysprep is sending apostrophes with sysprep name Never

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.


Note You need to log in before you can comment on or make changes to this bug.