• Home
  • Raw
  • Download

Lines Matching full:machines

8 """This module controls locking and unlocking of test machines."""
19 from cros_utils import machines
49 """Class for locking/unlocking machines vie three different modes.
51 This class contains methods for checking the locked status of machines,
52 and for changing the locked status. It handles HW lab machines and local
53 machines, using appropriate locking mechanisms for each.
78 empty, the lock manager will get all known machines.
96 self.machines = list(set(remotes)) or []
99 if not self.machines:
100 self.machines = self.toolchain_lab_machines
116 if not machines.MachineIsPingable(machine, logging_level="none"):
118 if not machines.MachineIsPingable(
124 """Gets a list of all the toolchain machines in the ChromeOS HW lab.
127 A list of names of the toolchain machines in the ChromeOS HW lab.
157 """Prints the status header lines for machines."""
209 """Gets and prints the current status for a list of machines.
211 Prints out the current status for all of the machines in the current
212 LockManager's list of machines (set when the object is initialized).
216 the current LockManager's list of machines. Normally obtained by
246 """Use file lock for local machines,
270 """Sets the locked state of the machines to the requested value.
272 The machines updated are the ones in self.machines (specified when the
276 lock_machines: Boolean indicating whether to lock the machines (True) or
277 unlock the machines (False).
280 A list of the machines whose state was successfully updated.
284 for m in self.machines:
305 self.machines = updated_machines
309 """Remove machine from internal list of machines.
321 self.machines = [
322 m for m in self.machines if m not in (cros_machine, machine)
333 the current LockManager's list of machines. Normally obtained by
335 cmd: The user-requested action for the machines: 'lock' or 'unlock'.
368 """Gets the current state of all the requested machines.
370 Gets the current state of all the requested machines. Stores the data in a
375 important because if one of the requested machines is missing we raise
379 A dictionary of machine states for all the machines in the LockManager
383 for m in self.machines:
384 # For local or crosfleet machines, we simply set {'locked': status} for
488 help="List current status of all known machines.",
512 "--remote", dest="remote", help="machines on which to operate"
525 help="Force lock/unlock of machines, even if not"
532 parser.error("No machines specified for operation.")