Bug 1033079

Summary: rhevm-shell shows "host" as an option for the "list nics" option, which is invalid
Product: Red Hat Enterprise Virtualization Manager Reporter: Robert McSwain <rmcswain>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED DUPLICATE QA Contact: Elena <edolinin>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.4.0CC: acathrow, bazulay, dsulliva, iheim, mpastern, oramraz, Rhev-m-bugs, srevivo, yeylon
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-11-21 14:27:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert McSwain 2013-11-21 14:15:56 UTC
Description of problem:
RHEV 3.2 rhevm-shell 'list nics' tab-completion suggests there is a '--host' flag to specify the host / hypervisor, but the flag is really '--host-identifier'.

[RHEVM shell (connected)]# list nics
host      show-all  snapshot  template  vm
[RHEVM shell (connected)]# list nics --host <hostname>

unknown error: not enough arguments for format string

[RHEVM shell (connected)]# list nics --host-identifier <hostname>

id         : 2fc18254-1e74-4b2a-acc3-2cdd41ea2637
name       : p1p1
<snip>

Additionally, tab completing the "list nics host" completes to "list nics --host-identifier"

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

How reproducible:
Reliably

Steps to Reproduce:
1. Log into rhevm-shell, type "list nics" and hit tab twice. 
2. The output shows host as an option, but this should be host-identifier

Actual results:
"list nics host" returns "unknown error: not enough arguments for format string"

Expected results:
The option "hosts" is not shown in the possible options for commands. "host-identifier" should be shown instead.

Comment 1 Michael Pasternak 2013-11-21 14:27:57 UTC
this is by design behaviour, in 3.4 it was changed to show X-identifier
from the beginning.

Comment 2 Robert McSwain 2013-11-21 15:14:41 UTC
Michael,

I could not find an RFE bug for this, do you know if this was being tracked elsewhere?

Comment 4 Michael Pasternak 2013-11-21 16:07:24 UTC
(In reply to Robert McSwain from comment #2)
> Michael,
> 
> I could not find an RFE bug for this, do you know if this was being tracked
> elsewhere?

it was fixed in context of Bug 1027281.

Comment 6 Michael Pasternak 2013-11-21 16:14:26 UTC
(In reply to Michael Pasternak from comment #4)
> (In reply to Robert McSwain from comment #2)
> > Michael,
> > 
> > I could not find an RFE bug for this, do you know if this was being tracked
> > elsewhere?
> 
> it was fixed in context of Bug 1027281.

forgot to mention, #1027281 is target to 3.3, so you'll get this change for free,
and can validate (requested change) against this bug,

hope it helps.

*** This bug has been marked as a duplicate of bug 1027281 ***