Lines Matching refs:host

76     def verify(self, host):  argument
79 info = host.get_power_supply_info()
130 def verify(self, host): argument
137 rv = host.run(command=command, ignore_status=True)
152 def verify(self, host): argument
159 output = host.run(command=command, ignore_status=True).stdout
166 output = host.run(command=command, ignore_status=True).stdout
192 def verify(self, host): argument
194 result = host.run('test -f %s' % autoupdater.PROVISION_FAILED,
209 def verify(self, host): argument
211 if _is_virtual_machine(host):
218 status = CryptohomeStatus(host)
251 def verify(self, host): argument
253 result = host.run('python -c "import cPickle"',
258 search = host.run('which python', ignore_status=True)
273 def verify(self, host): argument
276 info = host.host_info_store.get()
281 result = host.run('crossystem devsw_boot', ignore_status=True).stdout
294 def verify(self, host): argument
297 info = host.host_info_store.get()
299 hwid = host.run('crossystem hwid', ignore_status=True).stdout
303 serial_number = host.run('vpd -g serial_number',
308 if info != host.host_info_store.get():
309 host.host_info_store.commit(info)
312 '%s: %s', host.hostname, str(e))
324 def verify(self, host): argument
327 status = CryptohomeStatus(host)
339 result = host.run('cryptohome --action=tpm_status')
356 def verify(self, host): argument
360 result = host.run('cryptohome --action=tpm_more_status')
365 result = host.run('cryptohome --action=tpm_attestation_get_ek')
384 def verify(self, host): argument
387 if not host.upstart_status('ap-controller'):
395 host.run('pgrep ap-controller')
409 def verify(self, host): argument
411 result = host.run('[ ! -e /dev/kvm -a -f /usr/bin/vm_concierge ]',
425 def _collect_logs(self, host): argument
428 local_log_dir = crashcollect.get_crashinfo_dir(host, dirname)
429 host.collect_logs('/var/log', local_log_dir, ignore_errors=True)
431 crashcollect.get_crashinfo(host, None)
433 def _check_reset_success(self, host): argument
435 if host.wait_up(host.BOOT_TIMEOUT):
439 self._collect_logs(host)
450 (host.hostname, self.tag), 'failed_to_boot_after_' + self.tag)
462 def repair(self, host): argument
464 repair_utils.require_servo(host)
470 host.servo.sysrq_x()
477 self._check_reset_success(host)
488 def repair(self, host): argument
490 repair_utils.require_servo(host)
491 host.servo.get_power_state_controller().reset()
492 self._check_reset_success(host)
503 def repair(self, host): argument
507 host.run('/usr/share/vboot/bin/set_gbb_flags.sh 0',
509 host.run('crossystem disable_dev_request=1',
511 super(CrosRebootRepair, self).repair(host)
527 def repair(self, host): argument
529 image_name = host.get_cros_repair_image_name()
531 devserver = dev_server.ImageServer.resolve(image_name, host.hostname)
535 afe_utils.machine_install_and_update_labels(host, update_url)
551 def repair(self, host): argument
553 host.run('echo "fast safe" > '
555 host.reboot(timeout=host.POWERWASH_BOOT_TIMEOUT, wait=True)
556 super(PowerWashRepair, self).repair(host)
572 def repair(self, host): argument
574 repair_utils.require_servo(host)
575 host.servo_install(host.stage_image_for_servo())
590 def repair(self, host): argument
592 host.reboot(reboot_cmd='ectool reboot_ec cold')
593 self._check_reset_success(host)
604 def repair(self, host): argument
606 host.run('rm -f /var/cache/ap/setup-network', ignore_status=True)
607 host.run('rm -f /home/chronos/.oobe_completed', ignore_status=True)
608 host.run('rm -f /home/.shadow/.can_attempt_ownership',
610 host.run('crossystem clear_tpm_owner_request=1', ignore_status=True)
611 host.reboot()
622 def repair(self, host): argument
624 host.cleanup_services()
810 def _is_virtual_machine(host): argument
816 output = host.run('cat /proc/cpuinfo | grep "model name"',
825 def __init__(self, host): argument
827 self.update(_get_cryptohome_status(host))
851 def _get_cryptohome_status(host): argument
885 output = host.run('cryptohome --action=status').stdout.strip()