Description of problem:
Add vm from template, with cdrom payload fail on:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<detail>org.apache.commons.lang.SerializationException: org.codehaus.jackson.map.JsonMappingException: (was java.lang.NullPointerException) (through reference chain: org.ovirt.engine.core.common.action.VmManagementParametersBase["vmPayload"]->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).
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/
<content>cdrom payload via create</content>
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.
VM should have been created.
Created attachment 951339 [details]
test logs (see failing add vm trial @ 9:35 in engine.log)
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.
Verified on vt13.4, on automatic test:
Now same cases that failed due to this bug, now pass.
RHEV-M 3.5.0 has been released