Hi Nikolay,<br><br>We have opened a ticket with your request [1], to provide a generic method to query any VM attribute from the drivers.<br><br>Meanwhile, you can add the deploy_id as the last parameter modifiying src/vmm_mad/ssh/one_vmm_ssh.rb, line 81<br>
<br>- remotes_action("#{@remote_path}/deploy #{remote_dfile}",<br>- id, host, :deploy, @remote_dir, domain)<br>+ remotes_action("#{@remote_path}/deploy #{remote_dfile} #{id}",<br>
+ id, host, :deploy, @remote_dir, domain)<br><br>Cheers,<br>Carlos.<br><br>[1] <a href="http://dev.opennebula.org/issues/633">http://dev.opennebula.org/issues/633</a><br clear="all"><span style="border-collapse:collapse;color:rgb(136, 136, 136);font-family:arial, sans-serif;font-size:13px">--<br>
Carlos Martín, MSc<br>Project Major Contributor<br><span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span> - The Open Source Toolkit for Cloud Computing<br>
<a href="http://www.opennebula.org/" style="color:rgb(42, 93, 176)" target="_blank">www.<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">OpenNebula</span>.org</a> | <a href="mailto:cmartin@opennebula.org" style="color:rgb(42, 93, 176)" target="_blank">cmartin@<span style="background-color:rgb(255, 255, 204);color:rgb(34, 34, 34);background-repeat:initial initial">opennebula</span>.org</a></span><br>
<br><br><div class="gmail_quote">On Tue, May 10, 2011 at 9:48 AM, <span dir="ltr"><<a href="mailto:knawnd@gmail.com">knawnd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Dear ONE developers,<br>
<br>
To perform restore action OpenVZ hypervisor apart from dump file requires VM ID as well, i.e. the command looks like below:<br>
$ vzctl restore VM_ID --dumpfile <path><br>
<br>
For more details please see [1].<br>
As far as I understand from $ONE_LOCATION/var/remotes/vmm/<hypervisor>/restore files ONE invokes restore script only with one argument which is the dump file.<br>
I am using XML type of VM_MAD driver in oned.conf (as below) to perform all actions on OpenVZ VMs:<br>
--------->8-----------------<br>
VM_MAD = [<br>
name = "vmm_ovz",<br>
executable = "one_vmm_ssh",<br>
arguments = "ovz",<br>
type = "xml" ]<br>
-----------8<----------------<br>
<br>
I wonder what file needs to be change to invoke restore script on remote node with one more argument ($deploy_id) needed for OpenVZ hypervisor (it looks for me that such approach should be safe for other hypervisors since they takes into account only the first argument).<br>
<br>
Thanks!<br>
Nikolay.<br>
<br>
[1] <a href="http://wiki.openvz.org/Checkpointing_and_live_migration" target="_blank">http://wiki.openvz.org/Checkpointing_and_live_migration</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br>