
6 Apr
2009
6 Apr
'09
6:12 p.m.
+ +@do_main(sup_types) +def main(): + options = main.options + virt = options.virt + s_sysname = gethostbyaddr(options.ip)[0] + t_sysname = gethostbyaddr(options.t_url)[0] + if options.virt == 'KVM' and (t_sysname == s_sysname or \ + t_sysname in s_sysname): + logger.info("Libvirt does not support local migratoin for KVM") + return SKIP
This should be a function.. since you'll need to cal it in the live migration case as well. Since this patch looks good otherwise, I've applied this as is. Can you follow up with a patch to break this bit out into a function? -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com