<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Odd, that's not the behavior I'm seeing.  When I issue a "onevm resched <id>" I am seeing the VM get suspended, a checkpoint file created, then the scheduler attempts to migrate the VM.  The pre/postmigrate scripts never get called for my TM driver, my NFS mount points don't get created on the target host, and the migration fails.  I then have to delete the VM and reschedule from scratch.<br><br>I just verified this using a VM with a single, persistent, disk in my NFS datastore.  The flow I see in the logs is:<br>1.  VM gets flagged for reschedule<br>2.  VM gets saved:  "Successfully execute virtualization driver operation: save."<br>3.  VM gets cleaned:  "Successfully execute network driver operation: clean."<br>4.  ONE looks like it stages the VM on the target host:  "Successfully execute network driver operation: pre."<br>5.  VM fails to restore:  "Command execution fail: /var/tmp/one/vmm/kvm/restore /var/lib/one//datastores/0/72/checkpoint"<br>"Command "virsh --connect qemu:///system restore /var/lib/one//datastores/0/72/checkpoint" failed: error: Failed to restore domain from /var/lib/one//datastores/0/72/checkpoint"<br>"error: Unable to allow access for disk path /var/lib/one//datastores/0/72/disk.0: No such file or directory"<br><br>At this point, the VM is failed state and I have to resubmit it.<br><br>I am able to live migrate this VM just fine and expected that rescheduling it should also have done a live migration.  For some reason, it is doing a plain migration.<br><br>Either way, is there a reason the TM pre/post migrate script is not getting called as it would for a live migration?  It seems like I either have something misconfigured, or there is a bug.  Either way I would expect the pre/postmigrate scripts to be called.<br><br>Thanks for any help,<br>gary<br><br><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>From: </b>"Carlos Martín Sánchez" <cmartin@opennebula.org><br><b>To: </b>"Gary S. Cuozzo" <gary@isgsoftware.net><br><b>Cc: </b>users@lists.opennebula.org<br><b>Sent: </b>Wednesday, December 12, 2012 10:07:12 AM<br><b>Subject: </b>Re: [one-users] TM question about rescheduling a vm<br><br>Hi,<div><br></div><div>There is no 'resched' driver action, the command just marks the VM to be rescheduled. The scheduler then migrates or live-migrates these VMs depending on the LIVE_RESCHED attribute of sched.conf [1]</div>

<div><br></div><div>Regards</div><div><br></div><div>[1] <a href="http://opennebula.org/documentation:rel3.8:schg" target="_blank">http://opennebula.org/documentation:rel3.8:schg</a><br clear="all"><div>--<br>Carlos Martín, MSc<br>Project Engineer<br>

OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>

</div><br>
<br><br><div class="gmail_quote">On Tue, Dec 11, 2012 at 8:32 PM, Gary S. Cuozzo <span dir="ltr"><<a href="mailto:gary@isgsoftware.net" target="_blank">gary@isgsoftware.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif">Hello,<br>I have developed my own TM driver for a NFS based datastore using ZFS.  It works well so far, except in the case of using the "onevm resched <id>" command.<br>

<br>The failure happens because my TM relies on pre/postmigrate scripts to mount/umount ZFS datastores on the hosts as vm's move around.  In the case of the resched command, the pre/postmigrate scripts don't get called, so the vm cannot start on the target host because the disk images are not available.<br>

<br>In my use case, there isn't much difference between the live migration and the saveas/checkpoint way the resched works.  Can the pre/postmigrate scripts be called for the resched?  If not, is there some other way I can get them called so I can setup/teardown my nfs mounts?<br>

<br>Thanks for any help,<br>gary<br><br></div></div><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>
<br></blockquote></div><br></div>
</div><br></div></body></html>