Home
last modified time | relevance | path

Searched refs:host_id (Results 1 – 25 of 32) sorted by relevance

12

/external/autotest/scheduler/
Drdb_unittest.py46 self.get_hosts_manager.add_request(host_id=1)
52 response.append(rdb_testing_utils.FakeHost(hostname='host', host_id=1))
66 self.get_hosts_manager.add_request(host_id=1)
67 self.get_hosts_manager.add_request(host_id=2)
70 response = [rdb_testing_utils.FakeHost(hostname='host', host_id=1)]
102 for host_id in range(1, 4):
103 self.get_hosts_manager.add_request(host_id=host_id)
105 rdb_testing_utils.FakeHost('host%s'%host_id, host_id))
112 self.assertTrue(request.host_id == client_host.id)
118 host_id = 10
[all …]
Drdb.py186 if unique_host_requests.get(request.host_id):
187 unique_host_requests[request.host_id].update(request.payload)
189 unique_host_requests[request.host_id] = request.payload
193 for host_id, payload in unique_host_requests.iteritems():
194 similar_requests.setdefault(payload, []).append(host_id)
208 host_id=host, payload=payload).get_request()
221 host_ids = set([request.host_id for request in host_requests])
229 if request.host_id in host_map:
230 self.update_response_map(request, [host_map[request.host_id]])
286 if request.host_id and request.host_id != host.id:
[all …]
Drdb_testing_utils.py46 def __init__(self, hostname, host_id, **kwargs): argument
47 kwargs.update({'hostname': hostname, 'id': host_id})
120 def create_special_task(cls, job_id=None, host_id=None, argument
125 host_id = queue_entry.host.id
128 host = models.Host.objects.get(id=host_id)
342 deps=deps, acls=acls, host_id=None, priority=priority,
415 def assert_host_db_status(self, host_id): argument
426 host = models.Host.objects.get(id=host_id)
467 def check_host_assignment(self, job_id, host_id): argument
484 host = models.Host.objects.get(id=host_id)
[all …]
Drdb_lib.py59 'host_id': queue_entry.host_id,
104 for host_id in host_ids:
105 request_manager.add_request(host_id=host_id)
Dhost_scheduler_unittests.py44 jobs_without_hosts[0].host_id is None)
93 hqes = list(self.db_helper.get_hqes(host_id=host.id))
113 hqes = list(self.db_helper.get_hqes(host_id=host.id))
136 hqes = list(self.db_helper.get_hqes(host_id=host.id))
155 task2 = self.db_helper.create_special_task(host_id=host.id)
185 task = self.db_helper.create_special_task(host_id=host.id)
186 task1 = self.db_helper.create_special_task(host_id=host1.id)
200 self.assertTrue(hqe.active and hqe.host_id == host.id and
203 self.assertTrue(task.is_active == 0 and task.host_id == host.id)
218 task = self.db_helper.create_special_task(host_id=host.id)
[all …]
Dmonitor_db_unittest.py86 agent_or_task.hostnames = dict((host_id, '192.168.1.1')
87 for host_id in id_list)
190 def _record_job_scheduled(self, job_id, host_id): argument
191 record = (job_id, host_id)
194 (job_id, host_id))
198 def _assert_job_scheduled_on(self, job_id, host_id): argument
199 record = (job_id, host_id)
203 (job_id, host_id, self._jobs_scheduled))
210 for host_id in host_ids:
211 record = (job_id, host_id)
[all …]
Dhost_scheduler.py134 if self.hosts_to_suites.get(queue_entry.host_id, None) == parent_id:
141 self.hosts_to_suites[queue_entry.host_id] = parent_id
236 if queue_entry.host_id is None:
238 elif host.id != queue_entry.host_id:
Dscheduler_models.py502 if self.host_id:
503 self.host = rdb_lib.get_hosts([self.host_id])[0]
583 def block_host(self, host_id): argument
584 logging.info("creating block %s/%s", self.job.id, host_id)
585 row = [0, self.job.id, host_id]
590 def unblock_host(self, host_id): argument
591 logging.info("removing block %s/%s", self.job.id, host_id)
593 'job_id=%d and host_id=%d' % (self.job.id, host_id))
952 return (self.host_id is None
1267 host=models.Host.objects.get(id=queue_entry.host_id),
Dquery_managers.py199 host_id = hqe.host_id
203 hosts_to_suites[host_id] = parent_job_id
/external/ltp/testcases/lib/
Dtest_net.sh242 local counter host_id net_id max_host_id max_net_id tmp type
262 host_id=$((tmp % max_host_id))
265 if [ $host_id -eq 0 ]; then
266 host_id=$max_host_id
271 host_id="${2:-0}"
274 host_id=$(printf %d $host_id)
277 [ $host_id -lt 0 ] && host_id=1
281 host_id=$((host_id % max_net_id))
284 echo "${IPV4_NET16_UNUSED}.${net_id}.${host_id}"
288 [ $host_id -gt 0 ] && host_id="$(printf %x $host_id)" || host_id=
[all …]
/external/autotest/database/
Dschema_051.sql60 `host_id` int(11) default NULL,
61 UNIQUE KEY `acl_groups_hosts_both_ids` (`aclgroup_id`,`host_id`),
62 KEY `acl_groups_hosts_host_id` (`host_id`),
64 …CONSTRAINT `acl_groups_hosts_host_id_fk` FOREIGN KEY (`host_id`) REFERENCES `afe_hosts` (`id`) ON …
156 `host_id` int(11) NOT NULL,
160 KEY `host_id` (`host_id`),
162 CONSTRAINT `afe_host_attributes_ibfk_1` FOREIGN KEY (`host_id`) REFERENCES `afe_hosts` (`id`)
176 `host_id` int(11) default NULL,
187 UNIQUE KEY `host_queue_entries_job_id_and_host_id` (`job_id`,`host_id`),
188 KEY `host_queue_entries_host_id` (`host_id`),
[all …]
/external/autotest/server/lib/
Dstatus_history.py242 def get_tasks(cls, afe, host_id, start_time, end_time): argument
261 host_id,
269 def get_status_task(cls, afe, host_id, end_time): argument
285 task = afe.get_host_status_task(host_id, query_end)
362 def get_hqes(cls, afe, host_id, start_time, end_time): argument
381 host_id=host_id,
668 def get_diagnosis_interval(host_id, end_time, success): argument
695 host_id=host_id, is_complete=True)
715 def get_status_task(host_id, end_time): argument
741 host_id=host_id,
/external/autotest/site_utils/
Djob_history.py125 def try_get(self, host_id, job_id, start_time, end_time): argument
136 if not host_id in self:
138 return self[host_id].try_get(job_id, start_time, end_time)
141 def update(self, host_id, start_time, end_time): argument
151 host_id=host_id,
154 self[host_id] = TaskCache(tasks, search_start_time, search_end_time)
275 host_id=self.host.id,
/external/autotest/frontend/afe/
Dfrontend_test_utils.py143 for host_id in hosts:
144 models.HostQueueEntry.objects.create(job=job, host_id=host_id,
146 models.IneligibleHostQueue.objects.create(job=job, host_id=host_id)
Drpc_interface.py691 host_id=host_dict['id'], active=True, complete=False)
696 host_id=host_dict['id'], is_active=True, is_complete=False)
1460 def get_host_special_tasks(host_id, **filter_data): argument
1474 host = models.Host.smart_get(host_id, False)
1476 return get_special_tasks(host_id=host_id, **filter_data)
1484 host_id=host_id, **filter_data)
1521 def get_status_task(host_id, end_time): argument
1543 status_history.get_status_task(host_id, end_time),
1548 def get_host_status_task(host_id, end_time): argument
1563 host = models.Host.smart_get(host_id)
[all …]
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dtpu_context.py342 …def _placement_function(_sentinal=None, core_id=None, host_id=None): # pylint: disable=invalid-na… argument
344 if core_id is not None and host_id is not None:
352 host_id = core_id / self.num_of_cores_per_host
353 return '/job:%s/task:%d/device:CPU:0' % (master, host_id)
368 host_id = i / num_of_cores_per_host
370 return '%s/task:%d/device:TPU:%d' % (job_device, host_id, ordinal_id)
Dtpu_system_metadata.py69 host_id = match.group(1)
71 device_dict[host_id].append(core_id)
Dtpu_estimator.py664 ctx, input_fn, inputs_structure_recorder, batch_axis, device, host_id): argument
691 host_id, (0, 0, 0))[shard_index_in_host]
948 for host_id in range(num_hosts):
949 host_device = tpu_host_placement_fn(host_id=host_id)
951 with ops.name_scope('input_pipeline_task%d' % (host_id)):
967 for host_id in range(num_hosts):
968 host_device = tpu_host_placement_fn(host_id=host_id)
970 with ops.name_scope('input_pipeline_task%d' % (host_id)):
974 self._batch_axis, host_device, host_id))
/external/autotest/scheduler/shard/
Dshard_client_unittest.py230 host_id = host_serialized[u'id']
240 self.expect_heartbeat(known_host_ids=[host_id],
242 return_incorrect_hosts=[host_id, 42])
249 host = models.Host.smart_get(host_id)
258 host = models.Host.smart_get(host_id)
/external/autotest/server/
Dfrontend.py664 def get_host_special_tasks(self, host_id, **data): argument
666 host_id=host_id, **data)
670 def get_host_status_task(self, host_id, end_time): argument
672 host_id=host_id, end_time=end_time)
676 def get_host_diagnosis_interval(self, host_id, end_time, success): argument
678 host_id=host_id, end_time=end_time,
Dafe_urls.py88 def get_host_url(self, host_id): argument
95 return self._geturl({'tab_id': 'view_host', 'object_id': host_id})
/external/autotest/cli/
Dhost.py429 host_id = self.host_ids[host]
430 for a in self.execute_rpc('get_acl_groups', hosts=host_id):
449 host_id = self.host_ids[host]
451 for l in self.execute_rpc('get_labels', host=host_id):
455 self.execute_rpc('host_remove_labels', id=host_id,
540 host_id = self.host_ids[host]
Dhost_unittest.py1235 def _gen_labels_rpcs(self, labels, platform=False, host_id=None): argument
1243 if host_id:
1244 rpcs.append(('get_labels', {'host': host_id}, True, []))
1263 for host_id in host_ids:
1264 rpcs.append(('get_acl_groups', {'hosts': host_id}, True, []))
1461 host_id = self._host_ids[self._hosts.index(host)]
1462 host_ids.append(host_id)
1479 rpcs += self._gen_labels_rpcs(labels, host_id=host_id)
1485 host_id=host_id)
/external/autotest/contrib/
Dcompare_suite.py122 self.host_id = self.tko_job.machine_id
131 self.host_id = 0
349 suite_job_runtime.hosts = set([job.host_id
351 if job.host_id != 0])
/external/autotest/venv/lucifer/
Dhandlers.py117 host_id=host.id,
125 host_id=host.id,

12