コード例 #1
0
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()
コード例 #2
0
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()
コード例 #3
0
 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
コード例 #4
0
    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
コード例 #5
0
 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
コード例 #6
0
 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