Bug 957452

Summary: REST-API: async parameter should accept true/false values
Product: Red Hat Enterprise Virtualization Manager Reporter: Ilia Meerovich <iliam>
Component: ovirt-engine-restapiAssignee: Ori Liel <oliel>
Status: CLOSED CURRENTRELEASE QA Contact: Ilia Meerovich <iliam>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 3.2.0CC: acathrow, bazulay, iheim, jkt, oramraz, Rhev-m-bugs, srevivo, yeylon
Target Milestone: ---   
Target Release: 3.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: is2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 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:

Description Ilia Meerovich 2013-04-28 08:40:09 UTC
I tried to run remove command with --async false option via rhevm-shell.
It was found that async dosent accepts boolean values.
According to rhevm-cli help it should.

Comment 1 Michael Pasternak 2013-04-28 08:44:21 UTC
the cause of this is that async by default is false and theretofore
existence of ;async in the path, interpreted as ;async=true, i.e
the actual value of async param is ignored.

Comment 2 Ori Liel 2013-06-03 09:50:42 UTC
http://gerrit.ovirt.org/#/c/15094/1

Comment 3 Ilia Meerovich 2013-07-01 10:54:40 UTC
[root@ilia-rhevm ~]# rpm -qa | grep rhevm-cli
rhevm-cli-3.3.0.3-1.el6ev.noarch

[root@ilia-rhevm ~]#  /usr/bin/rhevm-shell -c --url=https://ilia-rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I
Password: 


 ==========================================
 >>> connected to RHEVM manager 3.3.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# list datacenters 

id         : 5849b030-626e-47cb-ad90-3ce782d831b3
name       : Default
description: The default Data Center

[RHEVM shell (connected)]# add datacenter --storage_type 'nfs' --version-major 3 --version-minor 2 --name 'DefaultRest'

id                              : 3c035613-8a65-48ad-9a01-d8aec5f41b81
name                            : DefaultRest
status-state                    : uninitialized
storage_type                    : nfs
supported_versions-version-major: 3
supported_versions-version-minor: 2
supported_versions-version-major: 3
supported_versions-version-minor: 3
version-major                   : 3
version-minor                   : 2

[RHEVM shell (connected)]# add datacenter --storage_type 'nfs' --version-major 3 --version-minor 2 --name 'DefaultRest1'

id                              : 976a2fca-4666-4b60-9d83-c234befe551e
name                            : DefaultRest1
status-state                    : uninitialized
storage_type                    : nfs
supported_versions-version-major: 3
supported_versions-version-minor: 2
supported_versions-version-major: 3
supported_versions-version-minor: 3
version-major                   : 3
version-minor                   : 2

[RHEVM shell (connected)]# add datacenter --storage_type 'nfs' --version-major 3 --version-minor 2 --name 'DefaultRest2'

id                              : 94a3a28d-c579-444b-aa83-6e9ff7fde31d
name                            : DefaultRest2
status-state                    : uninitialized
storage_type                    : nfs
supported_versions-version-major: 3
supported_versions-version-minor: 2
supported_versions-version-major: 3
supported_versions-version-minor: 3
version-major                   : 3
version-minor                   : 2

[RHEVM shell (connected)]# remove datacenter DefaultRest --async true

accepted.

[RHEVM shell (connected)]# remove datacenter DefaultRest1 --async false

status-state: complete

[RHEVM shell (connected)]# list datacenters 

id         : 5849b030-626e-47cb-ad90-3ce782d831b3
name       : Default
description: The default Data Center

id         : 3c035613-8a65-48ad-9a01-d8aec5f41b81
name       : DefaultRest

id         : 94a3a28d-c579-444b-aa83-6e9ff7fde31d
name       : DefaultRest2

[RHEVM shell (connected)]#

Comment 4 Itamar Heim 2014-01-21 22:29:08 UTC
Closing - RHEV 3.3 Released

Comment 5 Itamar Heim 2014-01-21 22:29:09 UTC
Closing - RHEV 3.3 Released

Comment 6 Itamar Heim 2014-01-21 22:32:03 UTC
Closing - RHEV 3.3 Released