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 1057214

Summary: Unable to add group via RESTAPI
Product: [Retired] oVirt Reporter: Ondra Machacek <omachace>
Component: ovirt-engine-apiAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Ondra Machacek <omachace>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4CC: acathrow, gklein, iheim, sbonazzo, yeylon
Target Milestone: ---Keywords: Regression
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: ovirt-3.4.0-beta3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-31 12:23:09 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 Ondra Machacek 2014-01-23 16:08:22 UTC
Description of problem:
Unable to add group via RESTAPI

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

How reproducible:

Steps to Reproduce:
curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml"
    -u admin@internal:password -d
'<group<name></name></group>'  https://ovirt:443/api/groups

Actual results:
    <reason>Operation Failed</reason>
    <detail>Entity not found:</detail>

Expected results:
Group is successfully added.

Additional info:

2014-01-23 17:56:05,391 ERROR [org.ovirt.engine.api.restapi.resource.AbstractBackendResource] (ajp-- Operation Failed: Entity not found:

Comment 1 Itamar Heim 2014-01-26 08:10:16 UTC
Setting target release to current version for consideration and review. please
do not push non-RFE bugs to an undefined target release to make sure bugs are
reviewed for relevancy, fix, closure, etc.

Comment 2 Sandro Bonazzola 2014-02-19 11:56:12 UTC
merged also on 3.4 branch.

Comment 3 Sandro Bonazzola 2014-02-19 12:26:18 UTC
This bug is referenced in ovirt-engine-3.4.0-beta3 logs. Moving to ON_QA

Comment 4 Ondra Machacek 2014-02-25 09:27:27 UTC
Ok in ovirt-engine-restapi-3.4.0-0.11.beta3.el6.noarch

curl -k -X POST -H "Accept: application/xml" -H "Content-Type: application/xml"
 -u $USER -d '<group><name></name></group>'

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<group href="/api/groups/e4cf3a80-b9fb-4b9d-bfba-ac5924788643" id="e4cf3a80-b9fb-4b9d-bfba-ac5924788643">
    <link href="/api/groups/e4cf3a80-b9fb-4b9d-bfba-ac5924788643/permissions" rel="permissions"/>
    <link href="/api/groups/e4cf3a80-b9fb-4b9d-bfba-ac5924788643/roles" rel="roles"/>
    <link href="/api/groups/e4cf3a80-b9fb-4b9d-bfba-ac5924788643/tags" rel="tags"/>
    <domain href="/api/domains/6272712d-6f70-656e-6c64-61702e726865" id="6272712d-6f70-656e-6c64-61702e726865"/>

Comment 5 Sandro Bonazzola 2014-03-31 12:23:09 UTC
this is an automated message: moving to Closed CURRENT RELEASE since oVirt 3.4.0 has been released