Bug 886792 - RHEVM-CLI: auto complete suggests "from_event_id" while it shouldn't
Summary: RHEVM-CLI: auto complete suggests "from_event_id" while it shouldn't
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 3.2.0
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 915537
TreeView+ depends on / blocked
 
Reported: 2012-12-13 07:59 UTC by Oded Ramraz
Modified: 2016-02-10 19:16 UTC (History)
9 users (show)

Fixed In Version: SF4
Doc Type: Bug Fix
Doc Text:
When using auto complete 'from_event_id' was being included in the results. This error was triggered when the 'list events' command was executed, subsequent auto completes would erroneously include 'from_event_id'. The code has been altered to exclude this happening.
Clone Of:
Environment:
Last Closed: 2013-06-10 20:29:07 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2013:0890 0 normal SHIPPED_LIVE rhevm-cli bug fix and enhancement update 2013-06-11 00:24:57 UTC

Description Oded Ramraz 2012-12-13 07:59:15 UTC
Description of problem:

auto complete suggests  "from_event_id" while it shouldn't: I don't see the meaning of from_event_id for list vms for example ( see Additional Information ) 

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)]# list vms 
case_sensitive  from_event_id   kwargs          max             query           show-all        storagedomain   


[RHEVM shell (connected)]# list quotas 
case_sensitive  datacenter      from_event_id   kwargs          max             query           show-all      


[RHEVM shell (connected)]# list events --max 5

id         : 1534
description: User admin@internal logged in.

id         : 1533
description: User admin logged in.

id         : 1532
description: VM Windows started on Host blue-vdsb

id         : 1531
description: VM Windows was started by admin (Host: blue-vdsb).

id         : 1530
description: VM Windows was stopped ungracefully by admin (Host: blue-vdsb).

[RHEVM shell (connected)]# list vms --from_event_id  1535

[RHEVM shell (connected)]# list vms --from_event_id  1533

Comment 1 Michael Pasternak 2012-12-13 08:20:38 UTC
Oded,

what sdk/cli version you're using? i can't reproduce this:

[oVirt shell (connected)]# list vms 
case_sensitive  kwargs          max             query           show-all        storagedomain

Comment 3 Oded Ramraz 2012-12-13 08:28:51 UTC
I think i understand how to reproduce it :

[RHEVM shell (connected)]# list events --max 1

id         : 1561
description: User admin@internal logged in.

[RHEVM shell (connected)]# show event --id "1561"

id         : 1561
description: User admin@internal logged in.
code       : 30
severity   : normal
time       : 2012-12-13T10:27:27.985+02:00
user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc

[RHEVM shell (connected)]# list vms 
case_sensitive  from_event_id   kwargs          max             query           show-all        storagedomain   
[RHEVM shell (connected)]# list vms

Comment 5 Michael Pasternak 2012-12-16 09:31:58 UTC
(In reply to comment #3)
> I think i understand how to reproduce it :
> 
> [RHEVM shell (connected)]# list events --max 1
> 
> id         : 1561
> description: User admin@internal logged in.
> 
> [RHEVM shell (connected)]# show event --id "1561"
> 
> id         : 1561
> description: User admin@internal logged in.
> code       : 30
> severity   : normal
> time       : 2012-12-13T10:27:27.985+02:00
> user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc
> 
> [RHEVM shell (connected)]# list vms 
> case_sensitive  from_event_id   kwargs          max             query       
> show-all        storagedomain   
> [RHEVM shell (connected)]# list vms

thanks, i was able reproducing it like this:

1)
[oVirt shell (connected)]# list events 
case_sensitive  from_event_id   kwargs          max             query           show-all        

2)
[oVirt shell (connected)]# list vms 
case_sensitive  from_event_id   kwargs          max             query           show-all        storagedomain  

i.e trigger is "list events"

Comment 6 Michael Pasternak 2012-12-16 10:01:51 UTC
http://gerrit.ovirt.org/10102

Comment 7 Oded Ramraz 2013-02-06 10:16:38 UTC
[RHEVM shell (connected)]# list events --max 1

id         : 12375
description: User admin@internal logged in.

[RHEVM shell (connected)]# show event --id "12374"

id         : 12374
description: User admin@internal logged in.
code       : 30
custom_id  : -1
flood_rate : 30
origin     : oVirt
severity   : normal
time       : 2013-02-06T12:14:58.356+02:00
user-id    : fdfc627c-d875-11e0-90f0-83df133b58cc

[RHEVM shell (connected)]# list vms 
case_sensitive  kwargs          max             query           show-all        storagedomain  


Verified sf5

Comment 8 errata-xmlrpc 2013-06-10 20:29:07 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-0890.html


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