KR> +def check_virsh_poll(ip, virt, dom_name):
KR> + cs = None
KR> +
KR> + dom_list = domain_list(ip, virt)
KR> + if dom_name in dom_list:
KR> + timeout = 10
KR> +
KR> + for i in range(0, timeout):
KR> + rc, cs = get_cs_instance(dom_name, ip, virt)
KR> + if rc == 0:
KR> + return cs
KR> +
KR> + sleep(1)
KR> +
KR> + return cs
How many iterations does this normally have to go through to get fresh
data?
I suppose it's a reasonable band-aid for now.
--
Dan Smith
IBM Linux Technology Center
Open Hypervisor Team
email: danms(a)us.ibm.com