[one-users] second argument for restore script

knawnd at gmail.com knawnd at gmail.com
Thu May 12 06:20:57 PDT 2011


Carlos Martín Sánchez wrote on 12/05/11 15:03:
> Hi Nikolay,
Hi Carlos,
>
> We have opened a ticket with your request [1], to provide a generic 
> method to query any VM attribute from the drivers.
>
> Meanwhile, you can add the deploy_id as the last parameter modifiying 
> src/vmm_mad/ssh/one_vmm_ssh.rb, line 81
>
> -        remotes_action("#{@remote_path}/deploy #{remote_dfile}",
> -                        id, host, :deploy, @remote_dir, domain)
> +        remotes_action("#{@remote_path}/deploy #{remote_dfile} #{id}",
> +                          id, host, :deploy, @remote_dir, domain)
Since the problem with restore script and not deploy I guess the changes 
need to be done as below:
$ diff one-2.2.0/lib/mads/one_vmm_ssh.rb 
one-2.2.0_src/src/vmm_mad/ssh/one_vmm_ssh.rb
104c104
<         remotes_action("#{@remote_path}/restore #{file} #{deploy_id}",
---
 >         remotes_action("#{@remote_path}/restore #{file}",

Regards,
Nikolay.

>
> Cheers,
> Carlos.
>
> [1] http://dev.opennebula.org/issues/633
> --
> Carlos Martín, MSc
> Project Major Contributor
> OpenNebula - The Open Source Toolkit for Cloud Computing
> www.OpenNebula.org <http://www.opennebula.org/> | 
> cmartin at opennebula.org <mailto:cmartin at opennebula.org>
>
>
> On Tue, May 10, 2011 at 9:48 AM, <knawnd at gmail.com 
> <mailto:knawnd at gmail.com>> wrote:
>
>     Dear ONE developers,
>
>     To perform restore action OpenVZ hypervisor apart from dump file
>     requires VM ID as well, i.e. the command looks like below:
>     $ vzctl restore VM_ID --dumpfile <path>
>
>     For more details please see [1].
>     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.
>     I am using XML type of VM_MAD driver in oned.conf (as below) to
>     perform all actions on OpenVZ VMs:
>     --------->8-----------------
>     VM_MAD = [
>        name       = "vmm_ovz",
>        executable = "one_vmm_ssh",
>        arguments  = "ovz",
>        type       = "xml" ]
>     -----------8<----------------
>
>     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).
>
>     Thanks!
>     Nikolay.
>
>     [1] http://wiki.openvz.org/Checkpointing_and_live_migration
>     _______________________________________________
>     Users mailing list
>     Users at lists.opennebula.org <mailto:Users at lists.opennebula.org>
>     http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>



More information about the Users mailing list