Lines Matching full:hosts
195 hosts = models.Host.get_hosts_with_labels(
197 if not hosts:
198 return hosts
200 return models.Host.query_objects(filter_data, initial_query=hosts)
295 # check that hosts satisfy dependencies
318 {'hosts' : 'Host(s) failed to meet job dependencies (' +
335 hosts = models.Host.objects.filter(static_labels=static_metahost)
337 hosts = models.Host.objects.filter(labels=metahost)
349 hosts = hosts.filter(static_labels__name=label_name)
351 hosts = hosts.filter(labels__name=label_name)
353 if not any(hosts):
354 raise error.NoEligibleHostException("No hosts within %s satisfy %s."
387 or hosts.
390 # Otherwise race conditions happen as a hosts state is changed out from
446 hosts = []
464 hosts.append(queue_entry.host)
474 hosts=hosts,
490 {'hosts' : 'Duplicate hosts: %s'
501 {'hosts':
502 'only %d hosts provided for job with synch_count = %d' %
514 # This only checks targeted hosts, not hosts eligible due to the metahost
522 hosts=all_host_objects)
731 """Figure out which hosts are on which shards.
735 @return: A map of shard hostname: list of hosts on the shard.
749 hosts=(), argument
774 host_args_passed = any((hosts, meta_hosts, one_time_hosts))
778 'hostless': 'Hostless jobs cannot include any hosts!'})
786 " 'hosts', 'meta_hosts', 'one_time_hosts'."
790 # convert hostnames & meta hosts to host/label objects
791 host_objects = models.Host.smart_get_bulk(hosts)
836 """Check that the hosts obey job sharding rules."""
841 'The following hosts are on shard(s), please create '
842 'seperate jobs for hosts on each shard: %s ' %
847 """Check that the hosts are allowed for a job on main."""
850 # num_shards == 1 but number of hosts on shard is less
851 # than total number of hosts: this is a job that spans across
955 @param known_host_ids: List of ids of hosts the shard already has.
958 (hosts, jobs, suite_job_keyvals, invalid_host_ids)
960 hosts, invalid_host_ids = models.Host.assign_to_shard(
966 return hosts, jobs, suite_job_keyvals, invalid_host_ids
1068 """Fanout the given rpc to shards of given hosts.
1078 # Figure out which hosts are on which shards.
1084 kwargs['hosts'] = hostnames
1095 This is i.e. used to propagate changes made to hosts after they are assigned
1215 hosts = list(get_host_query(
1221 if not hosts:
1224 return hosts[0].hostname