Lines Matching refs:models
61 from autotest_lib.frontend.afe import models
98 models.SpecialTask.objects.filter(
103 previous_provisions = models.SpecialTask.objects.filter(
104 task=models.SpecialTask.Task.PROVISION,
131 previous_repairs = models.SpecialTask.objects.filter(
132 task=models.SpecialTask.Task.REPAIR,
136 self.host.set_status(models.Host.Status.REPAIR_FAILED)
140 queue_entry = models.HostQueueEntry.objects.get(
145 models.SpecialTask.objects.create(
146 host=models.Host.objects.get(id=self.host.id),
147 task=models.SpecialTask.Task.REPAIR,
170 queue_entry = models.HostQueueEntry.objects.get(id=self.queue_entry.id)
171 queued = models.SpecialTask.objects.filter(
179 TASK_TYPE = models.SpecialTask.Task.VERIFY
195 self.queue_entry.set_status(models.HostQueueEntry.Status.VERIFYING)
196 self.host.set_status(models.Host.Status.VERIFYING)
200 self.remove_special_tasks(models.SpecialTask.Task.VERIFY,
210 self.host.set_status(models.Host.Status.READY)
218 TASK_TYPE = models.SpecialTask.Task.CLEANUP
232 self.host.set_status(models.Host.Status.CLEANING)
234 self.queue_entry.set_status(models.HostQueueEntry.Status.CLEANING)
246 entry = models.HostQueueEntry.objects.get(id=self.queue_entry.id)
247 models.SpecialTask.objects.create(
248 host=models.Host.objects.get(id=self.host.id),
250 task=models.SpecialTask.Task.VERIFY)
261 self.host.set_status(models.Host.Status.READY)
272 TASK_TYPE = models.SpecialTask.Task.RESET
287 self.host.set_status(models.Host.Status.RESETTING)
289 self.queue_entry.set_status(models.HostQueueEntry.Status.RESETTING)
292 self.remove_special_tasks(models.SpecialTask.Task.CLEANUP,
296 self.remove_special_tasks(models.SpecialTask.Task.VERIFY,
300 self.remove_special_tasks(models.SpecialTask.Task.RESET,
313 self.host.set_status(models.Host.Status.READY)
317 TASK_TYPE = models.SpecialTask.Task.PROVISION
353 models.HostQueueEntry.Status.PROVISIONING)
354 self.host.set_status(models.Host.Status.PROVISIONING)
377 TASK_TYPE = models.SpecialTask.Task.REPAIR
403 self.host.set_status(models.Host.Status.REPAIRING)
410 self.host.set_status(models.Host.Status.READY)
412 self.host.set_status(models.Host.Status.REPAIR_FAILED)