Bug 966053

Summary: REST-API: sync DELETE (;async=false) is ignored
Product: Red Hat Enterprise Virtualization Manager Reporter: Michael Pasternak <mpastern>
Component: ovirt-engine-restapiAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.3.0CC: acathrow, bazulay, iheim, jkt, oramraz, Rhev-m-bugs
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-01-21 22:10:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1019461    

Description Michael Pasternak 2013-05-22 11:32:14 UTC
Description of problem:

when URI contains ;async=false, DELETE ignored.

Comment 1 Michael Pasternak 2013-05-22 11:37:13 UTC
Ravi,

please check impacts of bug 957452 on this BZ.

Comment 2 Ori Liel 2013-07-01 14:35:48 UTC
patch posted upstream: 

  http://gerrit.ovirt.org/#/c/16295/

Comment 3 Ilia Meerovich 2013-07-04 16:52:02 UTC
build IS4
After running this code:

import java.io.IOException;

import org.apache.http.client.ClientProtocolException;
import org.ovirt.engine.sdk.Api;
import org.ovirt.engine.sdk.entities.DataCenter;
import org.ovirt.engine.sdk.entities.Version;
import org.ovirt.engine.sdk.exceptions.ServerException;
import org.ovirt.engine.sdk.exceptions.UnsecuredConnectionAttemptError;


public class debugRemove {
        private static final String URL = "https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api";

    public static void main(String[] args) throws ClientProtocolException, ServerException,
            UnsecuredConnectionAttemptError, IOException {
        Api api = new Api(URL, "admin@internal", "123456", true);
        DataCenter dc = new DataCenter();
        Version ver = new Version();
        ver.setMajor(3);
        ver.setMinor(2);
        dc.setName("foo");
        dc.setStorageType("nfs");
        dc.setVersion(ver);
        api.getDataCenters().add(dc);
        org.ovirt.engine.sdk.decorators.DataCenter dcDecor = api.getDataCenters().get("foo");
        dcDecor.delete(false, "667");
    }
}

datacenter was created and removed

Comment 5 Itamar Heim 2014-01-21 22:10:59 UTC
Closing - RHEV 3.3 Released