[ovirt-users] [ovirt-cli] query snapshot in preview of a vm

Jiri Belka jbelka at redhat.com
Fri Mar 4 10:26:31 UTC 2016


I can't figure out how to do nice ovirt-shell command to query current
snapshot in preview of a vm (to commit it later).

This works:

~~~
list snapshots --parent-vm-name jb-w2k8r2 --kwargs "description=Active VM before the preview" --show-all | egrep "^(id|description|type)"
id                                         : 08535a3e-dc9e-42c0-b611-6fea4a0318c9
description                                : Active VM before the preview
type                                       : preview
~~~

But why the following does not work?

~~~
list snapshots --parent-vm-name jb-w2k8r2 --kwargs "type=preview"
~~~

It returns nothing.

j.



More information about the Users mailing list