def restart_compute_service(extra_args=None): extra_args = extra_args or [] test_config.compute_service.restart(extra_args=extra_args) # Be absolutely certain the compute manager is ready before passing control # back to caller. poll_until(lambda: hosts_up('compute'), sleep_time=1, time_out=60) wait_for_compute_service()
def restart_compute_service(extra_args=None): extra_args = extra_args or [] test_config.compute_service.restart(extra_args=extra_args) # Be absolutely certain the compute manager is ready before passing control # back to caller. poll_until(lambda: hosts_up("compute"), sleep_time=1, time_out=60) wait_for_compute_service()
def test_10_wait_for_topics(self): """Wait until the volume topic is up before proceeding.""" topics = ["volume"] from tests.util.topics import hosts_up while not all(hosts_up(topic) for topic in topics): pass
def test_start(self): topics = ["compute", "volume"] from tests.util.topics import hosts_up while not all(hosts_up(topic) for topic in topics): pass