tempest/services/compute/v3/xml/servers_client.py
def wait_for_server_termination(self, server_id, ignore_error=False):
        """Waits for server to reach termination."""
        start_time = int(time.time())
        while True:
            try:
                resp, body = self.get_server(server_id)
            except exceptions.NotFound:
                return

            server_status = body['status']
            if server_status == 'ERROR' and not ignore_error:
                raise exceptions.BuildErrorException

            if int(time.time()) - start_time >= self.build_timeout:
                raise exceptions.TimeoutException

            time.sleep(self.build_interval)
Waits for server to reach termination.
Waits for server to reach termination.
Waits for server to reach termination .
def wait_for_server_termination(self, server_id, ignore_error=False):
        start_time = int(time.time())
        while True:
            try:
                resp, body = self.get_server(server_id)
            except exceptions.NotFound:
                return
            server_status = body['status']
            if server_status == 'ERROR' and not ignore_error:
                raise exceptions.BuildErrorException
            if int(time.time()) - start_time >= self.build_timeout:
                raise exceptions.TimeoutException
            time.sleep(self.build_interval)
def wait_for_server_termination ( self , server_id , ignore_error = False ) : start_time = int ( time . time ( ) ) while True : try : resp , body = self . get_server ( server_id ) except exceptions . NotFound : return server_status = body [ 'status' ] if server_status == 'ERROR' and not ignore_error : raise exceptions . BuildErrorException if int ( time . time ( ) ) - start_time >= self . build_timeout : raise exceptions . TimeoutException time . sleep ( self . build_interval )
Waits for server to reach termination.
Waits for server to reach termination .
"""Waits for server to reach termination."""
self
server_id
ignore_error