Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 1158010 - Add new vm from template with cdrom payload via create fail on JsonMappingException
Summary: Add new vm from template with cdrom payload via create fail on JsonMappingExc...
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
: 3.5.0
Assignee: Shahar Havivi
QA Contact: Ilanit Stein
Whiteboard: virt
Depends On:
Blocks: rhev35rcblocker rhev35gablocker
TreeView+ depends on / blocked
Reported: 2014-10-28 09:46 UTC by Ilanit Stein
Modified: 2015-02-17 10:50 UTC (History)
12 users (show)

Fixed In Version: vt9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-02-17 08:29:49 UTC
oVirt Team: ---
Target Upstream Version:

Attachments (Terms of Use)
test logs (see failing add vm trial @ 9:35 in engine.log) (deleted)
2014-10-28 09:59 UTC, Ilanit Stein
no flags Details

System ID Priority Status Summary Last Updated
oVirt gerrit 34584 master MERGED Engine: set device-id in payload constructor Never
oVirt gerrit 34629 ovirt-engine-3.5 MERGED Engine: set device-id in payload constructor Never

Description Ilanit Stein 2014-10-28 09:46:36 UTC
Description of problem:
Add vm from template, with cdrom payload fail on:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <reason>Operation Failed</reason>
    <detail>org.apache.commons.lang.SerializationException: (was java.lang.NullPointerException) (through reference chain: org.ovirt.engine.core.common.action.VmManagementParametersBase["vmPayload"]-&gt;org.ovirt.engine.core.common.businessentities.VmPayload["deviceId"])</detail>

It was discovered in payload automatic test:
and also restored manually

Version-Release number of selected component (if applicable):
(On VT6 it worked fine).

How reproducible:

Steps to Reproduce (via REST api):
Create vm from template with cdrom payload (The template used in the automatic test is sealed rhel based, but on manual reproduce, same failure occur with some basic template, with nothing installed on it):
url: https://<engine fqdn>:443/ovirt-engine/api/vms/

method: POST

        <payload type="cdrom">
                    <content>cdrom payload via create</content>

Actual results:
1. VM creation operation failed with the error in description.
2. VM is seen in UI, stuck in lock status, and it's disk also locked.

Expected results:
VM should have been created.

Comment 1 Ilanit Stein 2014-10-28 09:59:02 UTC
Created attachment 951339 [details]
test logs (see failing add vm trial @ 9:35 in engine.log)

Comment 3 Ilanit Stein 2014-10-29 12:04:42 UTC
1. Same VM creation problem occur with floppy payload.
2. Add VM with no payload, and then update it to have cdrom/floppy payload work fine.

Comment 4 Ilanit Stein 2014-12-21 10:51:10 UTC
Verified on vt13.4, on automatic test:

Now same cases that failed due to this bug, now pass.

Comment 5 Omer Frenkel 2015-02-17 08:29:49 UTC
RHEV-M 3.5.0 has been released

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