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 1058078

Summary: Update vm OS type throws an NPE
Product: Red Hat Enterprise Virtualization Manager Reporter: Ohad Basan <obasan>
Component: ovirt-engineAssignee: Roy Golan <rgolan>
Severity: unspecified Docs Contact:
Priority: high    
Version: 3.4.0CC: acathrow, eedri, gklein, iheim, lpeer, michal.skrivanek, ofrenkel, Rhev-m-bugs, yeylon
Target Milestone: ---Keywords: AutomationBlocker
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 15:10:55 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:

Description Ohad Basan 2014-01-26 21:45:45 UTC
Description of problem:
REST query sent: 

2014-01-26 22:48:17,216 - MainThread - vms - DEBUG - PUT request content is --  url:/ovirt-engine/api/vms/84e1a52a-bc9f-4764-ae0f-f843dca51c7d body:<vm>
    <os type="windows_xp"/>
2014-01-26 22:48:17,385 - MainThread - core_api - DEBUG - Request PUT response time: 0.040
2014-01-26 22:48:17,385 - MainThread - vms - DEBUG - Response body for PUT request is: 
    <reason>Operation Failed</reason>
    <detail>[General command validation failure.]</detail>

[org.ovirt.engine.core.bll.UpdateVmCommand] (ajp-/ [418] Error during CanDoActionFailure.: java.lang.NullPointerException
	at org.ovirt.engine.core.bll.UpdateVmCommand.isValidPciAndIdeLimit( [bll.jar:]
	at org.ovirt.engine.core.bll.UpdateVmCommand.canDoAction( [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction( [bll.jar:]
	at org.ovirt.engine.core.bll.CommandBase.executeAction( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runAction( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runActionImpl( [bll.jar:]
	at org.ovirt.engine.core.bll.Backend.runAction( [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor138.invoke(Unknown Source) [:1.7.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_51]
	at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_51]
	at$ManagedReferenceMethodInterceptor.processInvocation( [jboss-as-ee.jar:7.3.0.Final-redhat-14]
	at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.jboss.invocation.WeavedInterceptor.processInvocation( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at$1.processInvocation( [jboss-as-ee.jar:7.3.0.Final-redhat-14]
	at org.jboss.invocation.InterceptorContext.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.jboss.invocation.InterceptorContext$Invocation.proceed( [jboss-invocation.jar:1.1.2.Final-redhat-1]
	at org.ovirt.engine.core.bll.interceptors.ThreadLocalSessionCleanerInterceptor.injectWebContextToThreadLocal( [bll.jar:]
	at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source) [:1.7.0_51]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke( [rt.jar:1.7.0_51]
	at java.lang.reflect.Method.invoke( [rt.jar:1.7.0_51]

Comment 2 Michal Skrivanek 2014-02-03 15:10:55 UTC

*** This bug has been marked as a duplicate of bug 1059780 ***