Lines Matching refs:host
82 host = self._hosts.popleft()
85 self._logger.info('Updating host %s' % host)
88 if not CheckSSH(host=host, options=self._options):
90 elif LockHost(host) and ImageHost(host=host, options=self._options):
95 'Completed update for host %s successfully.' % host)
98 self._logger.info('Failed to SSH to host %s.' % host)
99 self._status.ssh_failures.append(host)
101 self._logger.info('Failed to update host %s.' % host)
102 self._status.update_failures.append(host)
104 UnlockHost(host)
108 'Exception encountered during update. Skipping host %s.' % host)
111 def CheckSSH(host, options): argument
116 '%s/src/scripts/ssh_test.sh --remote=%s' % (options.gclient, host),
122 def ImageHost(host, options): argument
126 log_file = open(os.path.join(options.log, host + '.log'), 'w')
127 log_file_err = open(os.path.join(options.log, host + '.log.err'), 'w')
132 options.url, host)),
143 def LockHost(host): argument
149 '%s/atest host mod -l %s' % (AUTOTEST_LOCATION, host),
155 logging.getLogger().info('Failed to lock host %s.' % host)
160 def UnlockHost(host): argument
166 '%s/atest host mod -u %s' % (AUTOTEST_LOCATION, host),
172 logging.getLogger().info('Failed to unlock host %s.' % host)
289 for host in status.ssh_failures:
290 logger.info('Failed to SSH to host %s.' % host)
292 for host in status.update_failures:
293 logger.info('Failed to update host %s.' % host)