Bug 856164 - rhevm-cli : --storagedomain appears as an option in all vm actions
Summary: rhevm-cli : --storagedomain appears as an option in all vm actions
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-cli
Version: 3.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ---
Assignee: Michael Pasternak
QA Contact: Ilia Meerovich
URL:
Whiteboard: infra
Depends On:
Blocks: 915537
TreeView+ depends on / blocked
 
Reported: 2012-09-11 11:09 UTC by Oded Ramraz
Modified: 2016-07-05 00:07 UTC (History)
10 users (show)

Fixed In Version: si20
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-12-04 19:56:57 UTC
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Oded Ramraz 2012-09-11 11:09:47 UTC
Description of problem:

When trying to detach VM from pool using CLI I see storagedomain parameter and don't see pool id parameter . 
I didn't understand the meaning of detaching VM from storagedomain.
It seems like pool id should be added to RSDL.  






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)]# action vm w7-temp detach 
correlation_id  storagedomain

Comment 1 Michael Pasternak 2012-09-11 11:16:28 UTC
you should not see pool-id parameter, as vm can be attached only to one
vm-pool, only bug here is that you see not relevant --storagedomain 
option,

correct syntax (as suggested by cli) is: 'action vm xxx detach'

Comment 2 Michael Pasternak 2012-09-24 06:29:40 UTC
the reason for this is that actions for vm exist in two dimensions:

1. None
2. storagedomain

e.g vm has actions when it in context of storagedomain (like import)
and without any context (like start, stop, etc.), auto-completion refactored
to be action context-aware and exclude not relevant options for the
given context.

Comment 4 Ilia Meerovich 2012-11-25 09:13:22 UTC
[RHEVM shell (connected)]# action vm boo 
cancelmigration  detach           export           import_vm        migrate          move             shutdown         start            stop             suspend          ticket           
[RHEVM shell (connected)]# action vm boo detach --correlation_id --correlation_id

only --correlation_id left as it should be


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