Bug 1252475 - Cannot add new cluster using rest-api
Summary: Cannot add new cluster using rest-api
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-core
Version: 3.6
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: m1
: 3.6.0
Assignee: Omer Frenkel
QA Contact: Ilanit Stein
URL:
Whiteboard: virt
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-11 14:02 UTC by Omer Frenkel
Modified: 2016-02-10 19:49 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-08-30 13:48:38 UTC
oVirt Team: Virt
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 44700 0 master MERGED core: move initialization code to init Never

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)


Note You need to log in before you can comment on or make changes to this bug.