Bug 886792

Summary: RHEVM-CLI: auto complete suggests "from_event_id" while it shouldn't
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED ERRATA QA Contact: Ilia Meerovich <iliam>
Severity: low Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: bazulay, cboyle, dyasny, ecohen, iheim, oramraz, Rhev-m-bugs, sgrinber, ykaul
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 20:29:07 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:
Bug Depends On:    
Bug Blocks: 915537    

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