Lines Matching defs:hosts

41     An atomic group defines a collection of hosts which must only be scheduled
43 scheduled for a job at the same time as other hosts sharing that label.
73 """Enqueue a job on an associated atomic group of hosts.
509 """Assigns hosts to a shard.
511 For all labels that have been assigned to a shard, all hosts that
520 @param shard: The shard object to assign labels/hosts for.
522 This is used to figure out which hosts should be sent
523 to the shard. If shard_ids were used instead, hosts
526 The number of hosts usually lies in O(100), so the
529 @returns the hosts objects that should be sent to the shard.
540 # than select returned, as concurrently more hosts might have been
543 # hosts for the shard, this is overhead
560 # invalid hosts can be in use by the scheduler (as one-time hosts), so
614 everyone.hosts.add(self)
641 # allow recovery of dead hosts from the frontend
662 def check_no_platform(cls, hosts):
663 """Verify the specified hosts have no associated platforms.
666 @param hosts: The hosts to verify.
667 @raises model_logic.ValidationError if any hosts already have a
670 Host.objects.populate_relationships(hosts, Label, 'label_list')
672 for host in hosts:
723 """Arbitrary keyvals associated with hosts."""
890 hosts = dbmodels.ManyToManyField(Host, blank=True,
897 def check_for_acl_violation_hosts(hosts):
898 """Verify the current user has access to the specified hosts.
900 @param hosts: The hosts to verify against.
909 for host in hosts:
978 # find hosts that aren't in any ACL group and add them to Everyone
984 everyone.hosts.add(*orphaned_hosts.distinct())
986 # find hosts in both Everyone and another ACL group, and remove them
994 everyone.hosts.remove(*acled_hosts)
1216 synch_count: how many hosts should be used per autoserv execution
1274 # Jobs can be created with assigned hosts and have no dependency
1458 def create(cls, owner, options, hosts):
1467 @param hosts: The hosts to use.
1469 AclGroup.check_for_acl_violation_hosts(hosts)
1596 def queue(self, hosts, atomic_group=None, is_template=False):
1597 """Enqueue a job on the given hosts.
1599 @param hosts: The hosts to use.
1603 if not hosts:
1605 # No hosts or labels are required to queue an atomic group
1614 for host in hosts:
1779 # be expanded into many actual hosts within the group at schedule time.
2007 Tasks to run on hosts at the next time they are in the Ready state. Use this