Bug 957452 - REST-API: async parameter should accept true/false values
Summary: REST-API: async parameter should accept true/false values
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: 3.3.0
Assignee: Ori Liel
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-28 08:40 UTC by Ilia Meerovich
Modified: 2016-02-10 19:40 UTC (History)
8 users (show)

Fixed In Version: is2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 15094 0 None MERGED restapi: 'async' URL Parameter Malfunction (#957452) 2020-11-09 16:41:42 UTC

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


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