• Home
  • Raw
  • Download

Lines Matching refs:hosts

133     hosts = []
135 hosts.append(models.Host.smart_get(h.id))
140 rpc_utils.fanout_rpc(hosts, 'delete_label', False, id=id)
173 def add_label_to_hosts(id, hosts): argument
185 host_objs = models.Host.smart_get_bulk(hosts)
194 def _create_label_everywhere(id, hosts): argument
234 host_objs = models.Host.smart_get_bulk(hosts)
242 def label_add_hosts(id, hosts): argument
256 _create_label_everywhere(id, hosts)
259 add_label_to_hosts(id, hosts)
262 host_objs = models.Host.smart_get_bulk(hosts)
266 def remove_label_from_hosts(id, hosts): argument
272 host_objs = models.Host.smart_get_bulk(hosts)
278 'modify this label.' % (label.name, hosts))
284 def label_remove_hosts(id, hosts): argument
292 host_objs = models.Host.smart_get_bulk(hosts)
293 remove_label_from_hosts(id, hosts)
426 hosts = models.Host.query_objects(host_filter_data)
432 for host in hosts:
449 for host in hosts:
560 hosts = rpc_utils.get_host_query((), False, True, host_filter_data)
561 hosts = list(hosts)
562 models.Host.objects.populate_relationships(hosts, models.HostAttribute,
566 for host_obj in hosts:
610 hosts = models.Host.query_objects(host_filter_data)
611 models.AclGroup.check_for_acl_violation_hosts(hosts)
612 for host in hosts:
617 rpc_utils.fanout_rpc(hosts, 'set_host_attribute_impl', False,
639 hosts = rpc_utils.get_host_query(multiple_labels,
642 hosts = list(hosts)
643 models.Host.objects.populate_relationships(hosts, models.Label,
645 models.Host.objects.populate_relationships(hosts, models.AclGroup,
647 models.Host.objects.populate_relationships(hosts, models.HostAttribute,
649 models.Host.objects.populate_relationships(hosts,
653 for host_obj in hosts:
712 hosts = rpc_utils.get_host_query(multiple_labels,
715 return len(hosts)
814 def acl_group_add_hosts(id, hosts): argument
817 hosts = models.Host.smart_get_bulk(hosts)
818 group.hosts.add(*hosts)
822 def acl_group_remove_hosts(id, hosts): argument
825 hosts = models.Host.smart_get_bulk(hosts)
826 group.hosts.remove(*hosts)
841 for host in acl_group_obj.hosts.all()]
970 hosts=(), argument
1047 hosts=hosts,
1102 def _call_special_tasks_on_hosts(task, hosts): argument
1108 models.AclGroup.check_for_acl_violation_hosts(hosts)
1109 shard_host_map = rpc_utils.bucket_hosts_by_shard(hosts)
1114 for host in hosts:
1116 return list(sorted(host.hostname for host in hosts))
1133 hosts = models.Host.query_objects(filter_data)
1134 shard_host_map = rpc_utils.bucket_hosts_by_shard(hosts)
1140 hosts = [h for h in hosts if h.shard is None]
1167 return _call_special_tasks_on_hosts(task, hosts)
1297 hosts=host_dicts)
2086 hosts, jobs, suite_keyvals, inc_ids = rpc_utils.find_records_for_shard(
2090 'hosts': [host.serialize() for host in hosts],