Bug 1109863 - Traceback when trying to remove disk by its name via CLI or SDK.
Summary: Traceback when trying to remove disk by its name via CLI or SDK.
Keywords:
Status: CLOSED DUPLICATE of bug 1091725
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-sdk
Version: 3.5
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.6.0
Assignee: Juan Hernández
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
: 1111217 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-06-16 13:54 UTC by Ondra Machacek
Modified: 2016-02-10 19:32 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-09-03 16:17:35 UTC
oVirt Team: Infra
Embargoed:


Attachments (Terms of Use)

Description Ondra Machacek 2014-06-16 13:54:34 UTC
Description of problem:


Version-Release number of selected component (if applicable):
ovirt-engine-restapi-3.5.0-0.0.master.20140605145557.git3ddd2de.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. try to remove disk specifing it's name(alias):

   [oVirt shell (connected)]# remove disk test

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:
Disable support for removing disk by it's name,
or remove the first one which is found.

Additional info:

Comment 1 Juan Hernández 2014-09-02 09:58:24 UTC
*** Bug 1111217 has been marked as a duplicate of this bug. ***

Comment 2 Juan Hernández 2014-09-03 16:17:35 UTC

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


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