Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 947482

Summary: [RHEVM-CLI] 'list' command - throw error on extra param
Product: Red Hat Enterprise Virtualization Manager Reporter: Shruti Sampat <ssampat>
Component: ovirt-engine-cliAssignee: Ravi Nori <rnori>
Status: CLOSED WONTFIX QA Contact: Elena <edolinin>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dtsang, iheim, jkt, knarra, mmahoney, mpastern, oramraz, pprakash, pstehlik, Rhev-m-bugs, sdharane, srevivo
Target Milestone: ---Keywords: Improvement, Triaged
Target Release: 3.4.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-10-16 12:00:11 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:

Description Shruti Sampat 2013-04-02 14:32:51 UTC
Description of problem:
---------------------------------------
list command gives unexpected output in the following cases - 

1. list clusters xyz 

[RHEVM shell (connected)]# list clusters xyz

id         : 99408929-82cf-4dc7-a532-9d998063fa95
name       : Default
description: The default server cluster

This command should result in a proper error message.

2. list clusters --max x

[RHEVM shell (connected)]# list clusters --max x

id         : 99408929-82cf-4dc7-a532-9d998063fa95
name       : Default
description: The default server cluster

This command should result in an error message saying that the option max expects a numeric input.

Version-Release number of selected component (if applicable):
Pasting the output of the info command - 

backend version: 3.2
sdk version    : 3.2.0.5
cli version    : 3.2.0.5
python version : 2.6.6.final.0

How reproducible:
Always

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


Expected results:
An appropriate error message should be displayed for cases like the ones described above.

Additional info:

Comment 1 Michael Pasternak 2013-05-02 09:19:56 UTC
(In reply to comment #0)
> Description of problem:
> ---------------------------------------
> list command gives unexpected output in the following cases - 
> 
> 1. list clusters xyz 
> 
> [RHEVM shell (connected)]# list clusters xyz
> 
> id         : 99408929-82cf-4dc7-a532-9d998063fa95
> name       : Default
> description: The default server cluster
> 
> This command should result in a proper error message.
> 
> 2. list clusters --max x
> 
> [RHEVM shell (connected)]# list clusters --max x
> 
> id         : 99408929-82cf-4dc7-a532-9d998063fa95
> name       : Default
> description: The default server cluster
> 
> This command should result in an error message saying that the option max
> expects a numeric input.
> 

this is api issue, please file separate bug.

> Version-Release number of selected component (if applicable):
> Pasting the output of the info command - 
> 
> backend version: 3.2
> sdk version    : 3.2.0.5
> cli version    : 3.2.0.5
> python version : 2.6.6.final.0
> 
> How reproducible:
> Always
> 
> Steps to Reproduce:
> 1.
> 2.
> 3.
>   
> Actual results:
> 
> 
> Expected results:
> An appropriate error message should be displayed for cases like the ones
> described above.
> 
> Additional info:

Comment 4 Michael Pasternak 2013-10-16 12:00:11 UTC
Shruti,

We have continues discussion on this issue, the thing is that we obviously
can block unknown options/arguments in cli, but avoid doing that to not
block new functionalities in cli that might not be exposed at rsdl/sdk yet,

therefore we won't fix this bug in this stage, but may reconsider this
in future,

thanks.