Bug 1252475

Summary: Cannot add new cluster using rest-api
Product: [Retired] oVirt Reporter: Omer Frenkel <ofrenkel>
Component: ovirt-engine-coreAssignee: Omer Frenkel <ofrenkel>
Status: CLOSED CURRENTRELEASE QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: high    
Version: 3.6CC: bugs, ecohen, gklein, lsurette, michal.skrivanek, rbalakri, tjelinek, yeylon
Target Milestone: m1   
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: virt
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-30 13:48:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Omer Frenkel 2015-08-11 14:02:57 UTC
Description of problem:
cannot add new cluster when using rest api without setting value to 'error_handling'

Version-Release number of selected component (if applicable):
3.6 master

How reproducible:
always

Steps to Reproduce:
using rest api, create cluster without setting 'error_handling' :

<cluster>
     <name>test-cluster</name>
     <cpu id="Intel Conroe Family"/>
     <data_center>
         <name>Default</name>
     </data_center>
     <version major="3" minor="5"/>
</cluster>

Actual results:
fails, exception in engine log:
2015-08-11 15:26:50,327 ERROR [org.ovirt.engine.core.bll.CommandsFactory] (default task-43) [] Error in invocating CTOR of command 'AddVdsGroup': null
2015-08-11 15:26:50,346 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-43) [] Operation Failed: java.lang.NullPointerException
2015-08-11 15:26:50,346 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (default task-43) [] Exception: javax.ejb.EJBException: java.lang.NullPointerException


Expected results:
add cluster succeed

Comment 1 Omer Frenkel 2015-08-12 08:36:29 UTC
note that this was found and fixed on master branch, after first beta build, so probably not on any officially released build (i assume just nightly)