how to pause a VM from rest-api?

This is a multi-part message in MIME format. --------------070900040009080707030501 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I'd like to pause a VM from rest-api. But the docs are not mentioning pause, only suspend. This works: URL/api/vms/ID/suspend and pause doesn't. Pausing from vdsClient works however, but I'd like to use rest-api: vdsClient -s host1 pause ID -- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2-62410360 +421-903-482603 --------------070900040009080707030501 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body bgcolor="#FFFFFF" text="#000000"> I'd like to pause a VM from rest-api. But the docs are not mentioning pause, only suspend. This works: URL/api/vms/ID/suspend and pause doesn't. Pausing from vdsClient works however, but I'd like to use rest-api:<br> vdsClient -s host1 pause ID<br> <br> <br> <br> <div class="moz-signature">-- <br> <div id="oernii_footer" style="color: gray;"> <span style="font-family: Lucida Console, Luxi Mono, Courier, monospace; font-size: 90%;"> Ernest Beinrohr, AXON PRO<br> <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/ing.php">Ing</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/vca.php">VCA</a>, <br> +421-2-62410360 +421-903-482603 <br> </span> </div> <img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" moz-do-not-send="true" border="0" width="1" height="1"> </div> </body> </html> --------------070900040009080707030501--

On 05/21/2015 02:43 PM, Ernest Beinrohr wrote:
I'd like to pause a VM from rest-api. But the docs are not mentioning pause, only suspend. This works: URL/api/vms/ID/suspend and pause doesn't. Pausing from vdsClient works however, but I'd like to use rest-api: vdsClient -s host1 pause ID
Unfortunately the "pause" operation isn't implemented in the RESTAPI. If you need it I'd suggest opening a RFE. -- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L.

On May 21, 2015, at 15:00 , Juan Hernández <jhernand@redhat.com> wrote:
On 05/21/2015 02:43 PM, Ernest Beinrohr wrote:
I'd like to pause a VM from rest-api. But the docs are not mentioning pause, only suspend. This works: URL/api/vms/ID/suspend and pause doesn't. Pausing from vdsClient works however, but I'd like to use rest-api: vdsClient -s host1 pause ID
Unfortunately the "pause" operation isn't implemented in the RESTAPI. If you need it I'd suggest opening a RFE.
"pause" is not supported in the UI either, other than pause on start; and error states (e.g. in case of IO error the VM is "paused") what is the use case?
-- Dirección Comercial: C/Jose Bardasano Baos, 9, Edif. Gorbea 3, planta 3ºD, 28016 Madrid, Spain Inscrita en el Reg. Mercantil de Madrid – C.I.F. B82657941 - Red Hat S.L. _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------010905090902010104040404 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Dňa 21.05.2015 o 16:07 Michal Skrivanek napísal(a): As I do not have live-merge (iscsi & el6) I do my own backups. Now I wanted to emulate snapshots without creating them in ovirt. For that pause is essential. is using "vdsClient -s host1 pause ID" safe? -- Ernest Beinrohr, AXON PRO Ing <http://www.beinrohr.sk/ing.php>, RHCE <http://www.beinrohr.sk/rhce.php>, RHCVA <http://www.beinrohr.sk/rhce.php>, LPIC <http://www.beinrohr.sk/lpic.php>, VCA <http://www.beinrohr.sk/vca.php>, +421-2-62410360 +421-903-482603 --------------010905090902010104040404 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit <html> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <div class="moz-cite-prefix">Dňa 21.05.2015 o 16:07 Michal Skrivanek napísal(a):<br> </div> <br> As I do not have live-merge (iscsi & el6) I do my own backups. Now I wanted to emulate snapshots without creating them in ovirt. For that pause is essential.<br> <br> <br> is using "vdsClient -s host1 pause ID" safe?<br> <br> <div class="moz-signature">-- <br> <div id="oernii_footer" style="color: gray;"> <span style="font-family: Lucida Console, Luxi Mono, Courier, monospace; font-size: 90%;"> Ernest Beinrohr, AXON PRO<br> <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/ing.php">Ing</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCE</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/rhce.php">RHCVA</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/lpic.php">LPIC</a>, <a style="text-decoration: none; color: gray;" href="http://www.beinrohr.sk/vca.php">VCA</a>, <br> +421-2-62410360 +421-903-482603 <br> </span> </div> <img src="http://nojsstats.appspot.com/UA-44497096-1/email.beinrohr.sk" moz-do-not-send="true" border="0" width="1" height="1"> </div> </body> </html> --------------010905090902010104040404--

On May 21, 2015, at 16:20 , Ernest Beinrohr <Ernest.Beinrohr@axonpro.sk> wrote:
Dňa 21.05.2015 o 16:07 Michal Skrivanek napísal(a):
As I do not have live-merge (iscsi & el6) I do my own backups. Now I wanted to emulate snapshots without creating them in ovirt. For that pause is essential.
ok…probably better than suspend, certainly faster. OTOH you don't get the file system consistency
is using "vdsClient -s host1 pause ID" safe?
yeah, it's ok Thanks, michal
-- Ernest Beinrohr, AXON PRO Ing, RHCE, RHCVA, LPIC, VCA, +421-2-62410360 +421-903-482603
participants (3)
-
Ernest Beinrohr
-
Juan Hernández
-
Michal Skrivanek