Lines Matching refs:timeout

106         assert connect_timeout > 0 # can't disable the timeout
190 command = ("rsync %s %s --timeout=1800 --rsh='%s' -az --no-o --no-g "
515 def ssh_ping(self, timeout=60, connect_timeout=None, base_cmd='true'):
519 @param timeout: Time in seconds before giving up.
528 ctimeout = min(timeout, connect_timeout or timeout)
530 self.run(base_cmd, timeout=timeout, connect_timeout=ctimeout,
533 msg = "Host (ssh) verify timed out (timeout = %d)" % timeout
545 def is_up(self, timeout=60, connect_timeout=None, base_cmd='true'):
549 @param timeout: timeout in seconds.
551 @returns True if the remote host is up before the timeout expires,
555 self.ssh_ping(timeout=timeout,
564 def wait_up(self, timeout=None):
566 Wait until the remote host is up or the timeout expires.
571 @param timeout time limit in seconds before returning even
574 @returns True if the host was found to be up before the timeout expires,
577 if timeout:
579 end_time = current_time + timeout
582 while not timeout or current_time < end_time:
583 if self.is_up(timeout=end_time - current_time,
599 self.hostname, int(timeout + time.time() - end_time))
603 def wait_down(self, timeout=None, warning_timer=None, old_boot_id=None):
605 Wait until the remote host is down or the timeout expires.
616 Based on this definition, the 4 possible permutations of timeout
618 1. timeout and old_boot_id: wait timeout seconds for either the
623 2. only timeout: wait timeout seconds for the host to become unpingable.
624 If the host remains pingable throughout timeout seconds
629 4. not timeout, not old_boot_id: wait forever till the host becomes
632 @param timeout Time limit in seconds before returning even
645 if timeout:
646 end_time = current_time + timeout
661 # while not timeout or time.time() < end_time: [23 < 30]
664 # new_boot_id = self.get_boot_id(timeout=end_time - time.time())
669 while not timeout or current_time < end_time:
671 new_boot_id = self.get_boot_id(timeout=end_time-current_time)
746 self.start_master_ssh(timeout=30)
768 def start_master_ssh(self, timeout=5):
776 timeout: timeout in seconds (default 5) to wait for master ssh
777 connection to be established. If timeout is reached, a
816 end_time = time.time() + timeout