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-restapi | Assignee: | Ori Liel <oliel> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Ilia Meerovich <iliam> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.2.0 | CC: | 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
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. [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)]# Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released Closing - RHEV 3.3 Released |