[one-users] second argument for restore script
Carlos Martín Sánchez
cmartin at opennebula.org
Thu May 12 04:03:46 PDT 2011
Hi Nikolay,
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)
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
On Tue, May 10, 2011 at 9:48 AM, <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
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110512/dd694c90/attachment-0003.htm>
More information about the Users
mailing list