Description of problem: Trying to import a VM from configuration using REST command, will cause NPE since the user does not initialize storage domain. 2:54:01,821 INFO [org.ovirt.engine.core.bll.OvfDataUpdater] (DefaultQuartzScheduler_Worker-84) [2fb91bfb] Attempting to update VMs/Templates Ovf. 2014-07-30 12:54:01,823 INFO [org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand] (http--0.0.0.0-8700-3) [67814774] Lock Acquired to object EngineLoc k [exclusiveLocks= key: new value: VM_NAME , sharedLocks= key: 923a6668-5a44-453c-877c-62b66a10dc78 value: REMOTE_VM ] 2014-07-30 12:54:01,842 ERROR [org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand] (http--0.0.0.0-8700-3) [67814774] Error during CanDoActionFailure.: java.lang.NullPointerException at org.ovirt.engine.core.bll.ImportVmFromConfigurationCommand.canDoAction(ImportVmFromConfigurationCommand.java:57) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.internalCanDoAction(CommandBase.java:737) [bll.jar:] at org.ovirt.engine.core.bll.CommandBase.executeAction(CommandBase.java:339) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:430) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runActionImpl(Backend.java:411) [bll.jar:] at org.ovirt.engine.core.bll.Backend.runAction(Backend.java:369) [bll.jar:] at sun.reflect.GeneratedMethodAccessor251.invoke(Unknown Source) [:1.7.0_19] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_19] at java.lang.reflect.Method.invoke(Method.java:601) [rt.jar:1.7.0_19] at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterc eptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final] at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:374) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final] at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.delegateInterception(Jsr299BindingsInterceptor.java:114) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final ] at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:125) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final ] at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:135) [jboss-as-weld-7.1.1.Final.jar:7.1.1.Final] at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.1.Final.jar:7.1. 1.Final] Version-Release number of selected component (if applicable): How reproducible: 100% Steps to Reproduce: 1. Import a VM from configuration 2. 3. Actual results: VM will not be imported and NPE will be noticed in the logs Expected results: VM should be imported Additional info:
Verified ImportVmFromConfigurationCommand executes and doesn't throw NPE (and imports the VM properly). version: ovirt-engine-3.5.0-0.0.master.20140804172041.git23b558e.el6.noarch (ovirt RC1)
oVirt 3.5 has been released and should include the fix for this issue.