Hi Your VM has reached and inconsistent state. Probably because of a bug. The reason because OpenNebula refuses to migrate your VM is this history record:
3 kvm-04 none 07/31 12:33:13 00 21:40:10 00 00:00:00 As you see there is a previous host (kvm-04) without any migration reason so, OPenNebula thinks that the VM is actually migrating. Upon the migration failure this entry should have been updated. Could you please send the vm.log for this VM, and your oned.log file? I'll try to track down this issue. Thanks for reporting! Ruben PS: The only way to overcome this is directly change the DB, and set reason to any other value for that entry. Also I suggest to upgrade to 3.6 On Wed, Aug 1, 2012 at 5:59 PM, Shantanu Pavgi <[email protected]> wrote: > > I am getting following error while trying to migrate a VM: > > {{{ > $ onevm livemigrate 30 kvm-04 > [VirtualMachineMigrate] Wrong state to perform action > > }}} > > The VM is not really in wrong 'state', but it failed to migrate during > first migration attempt because of connection (name resolution) issue. So > it is reporting an error as show below: > > {{{ > $ onevm show 30 > VIRTUAL MACHINE 30 INFORMATION > ID : 30 > NAME : one-30 > USER : oneadmin > GROUP : oneadmin > STATE : ACTIVE > LCM_STATE : RUNNING > HOSTNAME : kvm-03 > START TIME : 02/27 10:57:50 > END TIME : - > DEPLOY ID : one-30 > > VIRTUAL MACHINE MONITORING > USED MEMORY : 1070528 > USED CPU : 1 > NET_RX : 2139556799 > NET_TX : 1687949043 > > PERMISSIONS > OWNER : um- > GROUP : --- > OTHER : --- > > … > … > … > > ERROR=[ > MESSAGE="Error live migrating VM: Error connecting to kvm-04", > TIMESTAMP="Tue Jul 31 12:33:13 2012" ] > FEATURES=[ > ACPI=yes ] > GRAPHICS=[ > KEYMAP=en-us, > LISTEN=0.0.0.0, > PORT=5930, > TYPE=vnc ] > MEMORY=1024 > NAME=one-30 > NIC=[ > BRIDGE=br1 ] > OS=[ > ARCH=x86_64, > BOOT=hd ] > TEMPLATE_ID=13 > VCPU=1 > VMID=30 > > VIRTUAL MACHINE HISTORY > SEQ HOSTNAME REASON START TIME PTIME > 0 kvm-03 user 02/27 10:57:56 09 06:18:21 00 00:08:30 > 1 kvm-04 user 03/07 17:16:11 00 00:03:14 00 00:00:00 > 2 kvm-03 user 03/07 17:19:20 145 18:13:5 00 00:00:00 > 3 kvm-04 none 07/31 12:33:13 00 21:40:10 00 00:00:00 > 4 kvm-03 none 07/31 12:33:13 00 21:40:10 00 00:00:00 > > }}} > > Is there any way to migrate this VM again? Can be it recovered from this > error? > > I am using OpenNebula 3.2 version. > > -- > Thanks, > Shantanu > > > _______________________________________________ > Users mailing list > [email protected] > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > -- Ruben S. Montero, PhD Project co-Lead and Chief Architect OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | [email protected] | @OpenNebula
_______________________________________________ Users mailing list [email protected] http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
