Home | History | Annotate | Download | only in hosts

Lines Matching defs:Host

4 This module defines the base classes for the Host hierarchy.
7 You should import the "hosts" package instead of importing each type of host.
9 Host: a machine on which you can run programs
24 class Host(object):
38 to super. When overriding methods that are a NOP in Host, the subclass
46 then the method should raise NotImplementedError in Host, and
78 """Get the host attribute name for job_repo_url.
84 """Close the connection to the host.
90 """Setup the host object.
99 Run a command on this host.
135 """Reboot the host.
141 """Suspend the host.
147 """Execute host reboot via SysRq key.
175 """Retrieve a file from the host.
186 """Send a file to the host.
200 """Create a temporary directory on the host.
206 """Confirm the host is online.
230 calls to Host.get_boot_id() return the same string if the host did
248 """Wait for the host to come up.
256 """Wait for the host to go down.
259 @param warning_timer: Seconds before warning host is not down.
283 """Wait for the host to come back from a reboot.
289 @param down_timeout: Max seconds to wait for host to go down.
290 @param down_warning: Seconds to wait before warning host hasn't gone
292 @param log_failure: bool(Log when host does not go down.)
296 @raises AutoservRebootError if host does not come back up.
303 raise error.AutoservShutdownError("Host did not shut down")
309 "Host did not return from reboot")
310 raise error.AutoservRebootError("Host did not return from reboot")
314 """Check if host is in good state.
322 """Check host hardware.
328 """Check host network connectivity.
334 """Check host software.
359 msg = 'Path does not exist on host: %s' % path
416 """Try and get the host to pass `self.verify()`."""
421 """Allow all network packets in and out of the host."""
435 """Restore host to clean state.
441 """Install on the host.
464 """ Called to start continuous host logging. """
469 """ Called to stop continuous host logging. """
474 # Host
476 # implementations for their specific Host types
479 """ Get the number of CPUs in the host according to /proc/cpuinfo. """
491 cmd_uname = path_utils.must_be_installed('/bin/uname', host=self)
500 cmd_uname = path_utils.must_be_installed('/bin/uname', host=self)
533 """ Helper method for recording status logs against Host.job that
534 silently becomes a NOP if Host.job is not available. The args and
535 dargs are passed on to Host.job.record unchanged. """
543 and we want to explicitly log it. Does nothing if this host isn't
570 """Get a list of files on a remote host given a glob pattern path.
687 host attributes for the host in afe_host_attributes table. For example,
698 """Determine the correct platform label for this host.
700 @return: A string representing this host's platform.