Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 854490

Summary: ovirt-engine-cli : RFE : Add option to see the current VM snapshot when when using list snapshot command
Product: Red Hat Enterprise Virtualization Manager Reporter: Oded Ramraz <oramraz>
Component: ovirt-engine-cliAssignee: Michael Pasternak <mpastern>
Status: CLOSED DUPLICATE QA Contact: Oded Ramraz <oramraz>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 3.1.0CC: amureini, bazulay, dyasny, ecohen, iheim, Rhev-m-bugs, ykaul
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: 3.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: storage
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-05 09:46:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Storage RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Oded Ramraz 2012-09-05 07:29:50 UTC
Description of problem:

Please add option to see the current VM snapshot when using list snapshot command .
We had this option in the past as well , and Rest also show it by default ( see Additional Information ) 

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


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

## Rest API

snapshots>
<snapshot href="/api/vms/050b6b91-771c-4674-b994-029380a03f1c/snapshots/008eb853-d908-413c-9401-38f7b5ad22df" id="008eb853-d908-413c-9401-38f7b5ad22df"><actions><link href="/api/vms/050b6b91-771c-4674-b994-029380a03f1c/snapshots/008eb853-d908-413c-9401-38f7b5ad22df/restore" rel="restore"/></actions><description>Active VM</description><type>active</type><date>2012-09-02T10:10:01.947+03:00</date><snapshot_status>ok</snapshot_status></snapshot>
</snapshots>


## Trying to retrieve same VM snapshots using CLI

[RHEVM shell (connected)]# list snapshots --vm-identifier fire-rh1 
[RHEVM shell (connected)]#

Comment 2 Michael Pasternak 2012-09-05 09:10:41 UTC
cli shows all properties api resources has, please see 'list' command 
documentation, the default mode of shown items is 'reduced', use --show-all
flag to see items in 'expended' mode (all properties will be displayed)

Comment 3 Oded Ramraz 2012-09-05 09:17:09 UTC
Thanks for the tip , I tried to use --show-all parameter and it still not working:

## Here I'm trying to use list --show-all parameter 

[RHEVM shell (connected)]# list snapshots --vm-identifier fire-rh1 --show-all

[RHEVM shell (connected)]# 


## using show command does not work as well: 

## here the error is about missing snapshot , while it should be about the VM

[RHEVM shell (connected)]# show snapshot --vm-identifier fire-rh1


error: snapshot "['fire-rh1']" does not exist.


[RHEVM shell (connected)]# show snapshot --vm-identifier 050b6b91-771c-4674-b994-029380a03f1c
error: syntax error


Please note that snapshots are not independent , they should be retrieved in VM context

Comment 4 Oded Ramraz 2012-09-05 09:46:13 UTC

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