Bug 890524 - [REST-API] : error when adding disk with missing parameters need to be fixed [TEXT]
[REST-API] : error when adding disk with missing parameters need to be fixed ...
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-restapi (Show other bugs)
3.2.0
Unspecified Unspecified
unspecified Severity low
: ---
: 3.2.0
Assigned To: Ravi Nori
Ilia Meerovich
infra
:
Depends On:
Blocks: 915537 917401
  Show dependency treegraph
 
Reported: 2012-12-27 09:16 EST by Oded Ramraz
Modified: 2016-02-10 14:18 EST (History)
8 users (show)

See Also:
Fixed In Version: sf9
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:


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 10820 None None None Never
oVirt gerrit 12039 None None None Never

  None (edit)
Description Oded Ramraz 2012-12-27 09:16:40 EST
Description of problem:

When trying to add disk with missing parameters I get error with superfluous 0:
 Disk [format, interface] required for invoke0
I saw this invoke error in other places as well .

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

[RHEVM shell (connected)]# add disk --name oded

error:
status: 400
reason: Bad Request
detail: Disk [format, interface] required for invoke0
Comment 1 Ravi Nori 2013-01-09 10:04:45 EST
Link : http://gerrit.ovirt.org/#/c/10820/

change id : Idc57a93fee99859ba26bcc0bd5b25035358f5734
Comment 2 Ilia Meerovich 2013-02-10 14:56:57 EST
still function name appears in error message:

[imeerovi@imeerovi ART]$ /usr/bin/rhevm-shell -c --url=https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal -I 

 ==========================================
 >>> connected to RHEVM manager 3.1.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# add disk --name this_is_bug

error: 
status: 400
reason: Bad Request
detail: Disk [format, interface] required for validateDiskForCreation

[RHEVM shell (connected)]# exit
[imeerovi@imeerovi ART]$ rpm -q rhevm-cli
rhevm-cli-3.2.0.3-1.el6ev.noarch
[imeerovi@imeerovi ART]$
Comment 3 Ravi Nori 2013-02-11 12:47:13 EST
It works for me with 3.2. Why does it say >>> connected to RHEVM manager 3.1.0.0 <<< in your message?

(In reply to comment #2)
> still function name appears in error message:
> 
> [imeerovi@imeerovi ART]$ /usr/bin/rhevm-shell -c
> --url=https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal
> -I 
> 
>  ==========================================
>  >>> connected to RHEVM manager 3.1.0.0 <<<
>  ==========================================
> 
> 
>         
>  ++++++++++++++++++++++++++++++++++++++++++
>  
>            Welcome to RHEVM shell
>  
>  ++++++++++++++++++++++++++++++++++++++++++
>         
>     
> [RHEVM shell (connected)]# add disk --name this_is_bug
> 
> error: 
> status: 400
> reason: Bad Request
> detail: Disk [format, interface] required for validateDiskForCreation
> 
> [RHEVM shell (connected)]# exit
> [imeerovi@imeerovi ART]$ rpm -q rhevm-cli
> rhevm-cli-3.2.0.3-1.el6ev.noarch
> [imeerovi@imeerovi ART]$
Comment 4 Michael Pasternak 2013-02-13 03:27:34 EST
(In reply to comment #2)
> still function name appears in error message:
> 
> [imeerovi@imeerovi ART]$ /usr/bin/rhevm-shell -c
> --url=https://leonid_rhevm.qa.lab.tlv.redhat.com:443/api/ -u admin@internal
> -I 
> 
>  ==========================================
>  >>> connected to RHEVM manager 3.1.0.0 <<<
>  ==========================================
> 
> 

Ilia,

this is 3.2 bug, but from your cli prompt, looks like you verifying it against 3.1, please recheck on 3.2 build >= sf4
Comment 5 Ilia Meerovich 2013-02-13 09:21:55 EST
 >>> connected to RHEVM manager 3.2.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# add disk --name this_is_bug --format bug --interface bug

error: 
status: 400
reason: Bad Request
detail: Disk [provisionedSize|size] required for invoke

[RHEVM shell (connected)]#
Comment 6 Ilia Meerovich 2013-05-13 05:23:11 EDT
with sf15:

 ==========================================
 >>> connected to RHEVM manager 3.2.0.0 <<<
 ==========================================


        
 ++++++++++++++++++++++++++++++++++++++++++
 
           Welcome to RHEVM shell
 
 ++++++++++++++++++++++++++++++++++++++++++
        
    
[RHEVM shell (connected)]# add disk --name this_is_bug --format bug --interface bug

error: 
status: 400
reason: Bad Request
detail: Disk [provisionedSize|size] required for add

[RHEVM shell (connected)]# 
[imeerovi@imeerovi ART]$ rpm -q rhevm-cli
rhevm-cli-3.2.0.9-1.el6ev.noarch
Comment 7 Itamar Heim 2013-06-11 05:03:29 EDT
3.2 has been released
Comment 8 Itamar Heim 2013-06-11 05:03:37 EDT
3.2 has been released
Comment 9 Itamar Heim 2013-06-11 05:03:45 EDT
3.2 has been released
Comment 10 Itamar Heim 2013-06-11 05:04:15 EDT
3.2 has been released
Comment 11 Itamar Heim 2013-06-11 05:33:20 EDT
3.2 has been released

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