Bug 1111217 - Remove disk when use name instead of id, throw exception
Summary: Remove disk when use name instead of id, throw exception
Keywords:
Status: CLOSED DUPLICATE of bug 1109863
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.4.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
: 3.6.0
Assignee: Juan Hernández
QA Contact: Shai Revivo
URL:
Whiteboard: infra
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-19 13:35 UTC by Artyom
Modified: 2016-02-10 19:43 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-02 09:58:24 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Artyom 2014-06-19 13:35:04 UTC
Description of problem:
Remove disk when use name instead of id, throw exception

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

How reproducible:
Always

Steps to Reproduce:
1. Create some disk with alias = test_disk
2. Run via rhevm-shell remove disk "test_disk"
3.

Actual results:
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 191, in execute_string
    self._execute_command(command)
  File "/usr/lib/python2.6/site-packages/cli/context.py", line 411, in _execute_command
    command.run(self)
  File "/usr/lib/python2.6/site-packages/cli/command/command.py", line 101, in run
    self.execute()
  File "/usr/lib/python2.6/site-packages/ovirtcli/command/remove.py", line 149, in execute
    context_variants=typs[args[0]]
  File "/usr/lib/python2.6/site-packages/ovirtcli/command/command.py", line 357, in get_object
    return self.__get_by_name(coll, obj_id, kwargs)
  File "/usr/lib/python2.6/site-packages/ovirtcli/command/command.py", line 371, in __get_by_name
    return coll.get(name=name)
TypeError: get() got an unexpected keyword argument 'name'


Expected results:
Some error message: "Impossible to remove disk by alias, please use disk id"

Additional info:

Comment 1 Juan Hernández 2014-09-02 09:58:24 UTC

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


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