Bug 1111217
| Summary: | Remove disk when use name instead of id, throw exception | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Artyom <alukiano> |
| Component: | ovirt-engine-cli | Assignee: | Juan Hernández <juan.hernandez> |
| Status: | CLOSED DUPLICATE | QA Contact: | Shai Revivo <srevivo> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 3.4.0 | CC: | acathrow, amureini, gklein, iheim, oramraz, Rhev-m-bugs, yeylon |
| Target Milestone: | --- | ||
| Target Release: | 3.6.0 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | infra | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-09-02 09:58:24 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: | |||
*** This bug has been marked as a duplicate of bug 1109863 *** |
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: