Re: [one-users] how to configure the vms High Availability?
Hi, i use opennebula4.2 install on centos6.4 and has two esxi hypervisor.(10.24.101.72 and 10.24.101.73) i have change my front-end's oned.conf like HOST_HOOK = [ name = "error", on= "ERROR", command = "ft/host_error.rb", arguments = "$ID -r", remote= "no" ] VM_HOOK = [ name = "on_failure_recreate", on= "UNKNOWN", command = "/usr/bin/env onevm delete --recreate", arguments = "$ID" ] then i create one vm on 10.24.101.73 , after the vm running, i power off the 10.24.101.73,but the vm dose not migrate to 10.24.101.72 i also create one cluser one the sunstone which include the two esxis. the vm log Sun Jan 5 13:54:53 2014 [DiM][I]: New VM state is ACTIVE. Sun Jan 5 13:54:53 2014 [LCM][I]: New VM state is PROLOG. Sun Jan 5 13:55:05 2014 [LCM][I]: New VM state is BOOT Sun Jan 5 13:55:05 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/9/deployment.0 Sun Jan 5 13:55:05 2014 [VMM][I]: Successfully execute network driver operation: pre. Sun Jan 5 13:55:21 2014 [VMM][I]: Successfully execute virtualization driver operation: deploy. Sun Jan 5 13:55:21 2014 [VMM][I]: Successfully execute network driver operation: post. Sun Jan 5 13:55:21 2014 [LCM][I]: New VM state is RUNNING Sun Jan 5 13:58:03 2014 [LCM][I]: New VM state is UNKNOWN Sun Jan 5 13:58:03 2014 [LCM][I]: New VM state is CLEANUP. Sun Jan 5 13:58:03 2014 [VMM][I]: Driver command for 9 cancelled Sun Jan 5 13:58:03 2014 [DiM][I]: New VM state is PENDING Sun Jan 5 13:58:03 2014 [HKM][I]: Success executing Hook: on_failure_recreate: . Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Command execution fail: /var/lib/one/remotes/vmm/vmware/cancel 'one-9' '10.24.101.73' 9 10.24.101.73 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG E 9 cancel: Error executing: virsh -c 'esx://10.24.101.73/?no_verify=1&auto_answer=1' destroy one-9 err: ExitCode: 1 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 out: Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 error: internal error HTTP response code 503 for call to 'RetrieveServiceContent' Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 error: failed to connect to the hypervisor Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 ExitCode: 1 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Failed to execute virtualization driver operation: cancel. Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Successfully execute network driver operation: clean. Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Successfully execute transfer manager driver operation: tm_delete. Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 Command execution fail: /var/lib/one/remotes/tm/vmfs/delete 10.24.101.73:/vmfs/volumes/100/9 9 100 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG E 9 delete: Command "rm -rf /vmfs/volumes/100/9" failed: rm: can't remove '/vmfs/volumes/100/9/disk.0/disk-flat.vmdk': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/vmx-one-9-2219911413-1.vswp': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/one-9.vmx.lck': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/one-9-845128f5.vswp': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0': Directory not empty Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.1': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9': Directory not empty Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG E 9 Error deleting /vmfs/volumes/100/9 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 ExitCode: 1 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 Failed to execute transfer manager driver operation: tm_delete. Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: CLEANUP SUCCESS 9 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to configure the vms High Availability?
Hi, i use opennebula4.2 install on centos6.4 and has two esxi hypervisor.(10.24.101.72 and 10.24.101.73) i have change my front-end's oned.conf like HOST_HOOK = [ name = "error", on= "ERROR", command = "ft/host_error.rb", arguments = "$ID -r", remote= "no" ] VM_HOOK = [ name = "on_failure_recreate", on= "UNKNOWN", command = "/usr/bin/env onevm delete --recreate", arguments = "$ID" ] then i create one vm on 10.24.101.73 , after the vm running, i power off the 10.24.101.73,but the vm dose not migrate to 10.24.101.72 i also create one cluser one the sunstone which include the two esxis. the vm log Sun Jan 5 13:54:53 2014 [DiM][I]: New VM state is ACTIVE. Sun Jan 5 13:54:53 2014 [LCM][I]: New VM state is PROLOG. Sun Jan 5 13:55:05 2014 [LCM][I]: New VM state is BOOT Sun Jan 5 13:55:05 2014 [VMM][I]: Generating deployment file: /var/lib/one/vms/9/deployment.0 Sun Jan 5 13:55:05 2014 [VMM][I]: Successfully execute network driver operation: pre. Sun Jan 5 13:55:21 2014 [VMM][I]: Successfully execute virtualization driver operation: deploy. Sun Jan 5 13:55:21 2014 [VMM][I]: Successfully execute network driver operation: post. Sun Jan 5 13:55:21 2014 [LCM][I]: New VM state is RUNNING Sun Jan 5 13:58:03 2014 [LCM][I]: New VM state is UNKNOWN Sun Jan 5 13:58:03 2014 [LCM][I]: New VM state is CLEANUP. Sun Jan 5 13:58:03 2014 [VMM][I]: Driver command for 9 cancelled Sun Jan 5 13:58:03 2014 [DiM][I]: New VM state is PENDING Sun Jan 5 13:58:03 2014 [HKM][I]: Success executing Hook: on_failure_recreate: . Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Command execution fail: /var/lib/one/remotes/vmm/vmware/cancel 'one-9' '10.24.101.73' 9 10.24.101.73 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG E 9 cancel: Error executing: virsh -c 'esx://10.24.101.73/?no_verify=1&auto_answer=1' destroy one-9 err: ExitCode: 1 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 out: Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 error: internal error HTTP response code 503 for call to 'RetrieveServiceContent' Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 error: failed to connect to the hypervisor Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 ExitCode: 1 Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Failed to execute virtualization driver operation: cancel. Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Successfully execute network driver operation: clean. Sun Jan 5 13:58:06 2014 [VMM][W]: Ignored: LOG I 9 Successfully execute transfer manager driver operation: tm_delete. Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 Command execution fail: /var/lib/one/remotes/tm/vmfs/delete 10.24.101.73:/vmfs/volumes/100/9 9 100 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG E 9 delete: Command "rm -rf /vmfs/volumes/100/9" failed: rm: can't remove '/vmfs/volumes/100/9/disk.0/disk-flat.vmdk': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/vmx-one-9-2219911413-1.vswp': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/one-9.vmx.lck': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0/one-9-845128f5.vswp': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.0': Directory not empty Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9/disk.1': Device or resource busy Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 rm: can't remove '/vmfs/volumes/100/9': Directory not empty Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG E 9 Error deleting /vmfs/volumes/100/9 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 ExitCode: 1 Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: LOG I 9 Failed to execute transfer manager driver operation: tm_delete. Sun Jan 5 13:58:07 2014 [VMM][W]: Ignored: CLEANUP SUCCESS 9 ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to configure the vms High Availability?
#--- VM_HOOK = [ name = "on_failure_recreate", on= "UNKNOWN", command = "onevm delete --recreate", arguments = "$VMID" ] #- http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html?highlight=high%20availability On 30 December 2013 14:20, hansz wrote: > Hi, > should i configure my oned.conf like > > > HOST_HOOK = [ > name = "error", > on= "", > > command = "ft/host_error.rb", > arguments = "$HID -r n", > remote= no ] > > > VM_HOOK = [ >name = "on_failure_recreate", >on= "FAILED", >command = "/usr/bin/env onevm delete --recreate", >arguments = "ID" ] > > ? > or like what? > > > > > > > > > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to configure the vms High Availability?
Hi, should i configure my oned.conf like HOST_HOOK = [ name = "error", on= "", command = "ft/host_error.rb", arguments = "$HID -r n", remote= no ] VM_HOOK = [ name = "on_failure_recreate", on= "FAILED", command = "/usr/bin/env onevm delete --recreate", arguments = "ID" ] ? or like what? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] how to configure the vms High Availability?
HI, If you power off the host the VM will enter in the "unknown" state. Try specifying a hook for this state ("on" argument) on = UNKNOWN Cheers On 30 December 2013 09:27, hansz wrote: > Hi, > i use opennebula4.4 install on centos6.4 , and add two hosts(esxi5.1, > esxi01,esxi02) on the sunstone. and create a cluster with the two hosts > and one virtual networks and two datastores.(the datastores i use iscsi > mounted both on esxi01 and esxi02) > today i have a try ,i create one vm on host esxi01 . what i want is if > i power the esxi01 the vm could migrate to esxi02 . > clould i make it sucessfully? > > i also read > http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide > but i does not work , > and the oned.conf in my opennebula 4.4 is > > > HOST_HOOK = [ > name = "error", > on= "ERROR", > command = "ft/host_error.rb", > arguments = "$HID -r n", > remote= no ] > > > VM_HOOK = [ >name = "on_failure_recreate", >on= "FAILED", >command = "/usr/bin/env onevm delete --recreate", >arguments = "ID" ] > > > the red are not same with the > http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide > > > anything wrong? > > > > > > ___ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- -- Daniel Molina Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
[one-users] how to configure the vms High Availability?
Hi, i use opennebula4.4 install on centos6.4 , and add two hosts(esxi5.1, esxi01,esxi02) on the sunstone. and create a cluster with the two hosts and one virtual networks and two datastores.(the datastores i use iscsi mounted both on esxi01 and esxi02) today i have a try ,i create one vm on host esxi01 . what i want is if i power the esxi01 the vm could migrate to esxi02 . clould i make it sucessfully? i also read http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide but i does not work , and the oned.conf in my opennebula 4.4 is HOST_HOOK = [ name = "error", on= "ERROR", command = "ft/host_error.rb", arguments = "$HID -r n", remote= no ] VM_HOOK = [ name = "on_failure_recreate", on= "FAILED", command = "/usr/bin/env onevm delete --recreate", arguments = "ID" ] the red are not same with the http://docs.opennebula.org/stable/advanced_administration/high_availability/ftguide.html#ftguide anything wrong? ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org