Trying to allocate a VM from a pool produces a NPE: Caused by: java.lang.NullPointerException at org.ovirt.engine.core.common.action.VmPoolUserParameters.<init>(VmPoolUserParameters.java:12) at org.ovirt.engine.api.restapi.resource.BackendVmPoolResource.allocatevm(BackendVmPoolResource.java:143) [restapi-jaxrs.jar:] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_55] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_55] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_55] at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_55] at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:155) [resteasy-jaxrs-2.3.2.Final.jar:] at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257) [resteasy-jaxrs-2.3.2.Final.jar:] at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222) [resteasy-jaxrs-2.3.2.Final.jar:] at org.jboss.resteasy.core.ResourceLocator.invokeOnTargetObject(ResourceLocator.java:152) [resteasy-jaxrs-2.3.2.Final.jar:] at org.jboss.resteasy.core.ResourceLocator.invoke(ResourceLocator.java:91) [resteasy-jaxrs-2.3.2.Final.jar:] at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:525) [resteasy-jaxrs-2.3.2.Final.jar:] Easy to reproduce with the following script: #!/bin/sh -x url="https://fedora.example.com/ovirt-engine/api" user="admin@internal" password="******" curl \ --insecure \ --request POST \ --header "Accept: application/xml" \ --header "Content-Type: application/xml" \ --user "${user}:${password}" \ --data " <action/> " \ ${url}/vmpools/<vmpool_id>/allocatevm
Verified on ovirt-engine-3.5.0-0.0.master.20140722232058.git8e1babc.el6.noarch. Run the script in the description. got these events: 014-Jul-30, 11:26 Attaching User admin to VM POOL-1 in VM Pool POOL was initiated by admin. 2014-Jul-30, 11:26 VM POOL-1 was restarted on Host Non interactive user engine.log attached. no NPE.
Created attachment 922459 [details] verification engine.log
oVirt 3.5 has been released and should include the fix for this issue.