• Home
  • Raw
  • Download

Lines Matching full:host

17 def require_servo(host, ignore_state=False):  argument
20 @param host Host object that require servo.
26 servo_initialized = host.servo is not None
27 servo_working = (host.get_servo_state() ==
32 '%s has no working servo.' % host.hostname, 'no_working_servo')
38 Verifier to test a host's accessibility via `ssh`.
40 This verifier checks whether a given host is reachable over `ssh`.
43 * The host can't be found with a DNS lookup.
44 * The host doesn't answer to ping.
45 * The host answers to ping, but not to ssh.
49 def verify(self, host): argument
50 if host.is_up():
54 socket.gethostbyname(host.hostname)
59 if utils.ping(host.hostname, tries=1, deadline=1) != 0:
61 raise hosts.AutoservVerifyError(msg % host.hostname)
65 return 'host is available via ssh'
70 Verifier to test a host's accessibility via `ping`.
72 This verifier checks whether a given host is reachable over `ping`.
76 * The host can't be found with a DNS lookup.
77 * The host doesn't booted with network drivers.
81 def verify(self, host): argument
82 if host.is_up_fast(count=10):
87 ip_address = socket.gethostbyname(host.hostname)
90 msg = 'Unable to look up %s in DNS: %s' % (host.hostname, str(e))
93 msg = 'Hostname: %s not present in DNS' % host.hostname
95 msg = 'Hostname: %s not pingable' % host.hostname
100 return 'host is available via ping'
105 Ask a Host instance to perform its own verification.
113 def verify(self, host): argument
114 host.verify_software()
115 host.verify_hardware()
119 return 'Legacy host verification checks'
126 def repair(self, host): argument
127 host.reboot()
131 return 'Reboot the host'
147 def repair(self, host): argument
148 if not host.has_power():
150 '%s has no RPM connection.' % host.hostname,
152 host.power_cycle()
157 return 'Power cycle the host with RPM'