Lines Matching refs:models
61 from autotest_lib.frontend.afe import models
84 models.SpecialTask.objects.filter(
89 previous_provisions = models.SpecialTask.objects.filter(
90 task=models.SpecialTask.Task.PROVISION,
117 previous_repairs = models.SpecialTask.objects.filter(
118 task=models.SpecialTask.Task.REPAIR,
122 self.host.set_status(models.Host.Status.REPAIR_FAILED)
126 queue_entry = models.HostQueueEntry.objects.get(
131 models.SpecialTask.objects.create(
132 host=models.Host.objects.get(id=self.host.id),
133 task=models.SpecialTask.Task.REPAIR,
156 queue_entry = models.HostQueueEntry.objects.get(id=self.queue_entry.id)
157 queued = models.SpecialTask.objects.filter(
165 TASK_TYPE = models.SpecialTask.Task.VERIFY
181 self.queue_entry.set_status(models.HostQueueEntry.Status.VERIFYING)
182 self.host.set_status(models.Host.Status.VERIFYING)
186 self.remove_special_tasks(models.SpecialTask.Task.VERIFY,
196 self.host.set_status(models.Host.Status.READY)
204 TASK_TYPE = models.SpecialTask.Task.CLEANUP
218 self.host.set_status(models.Host.Status.CLEANING)
220 self.queue_entry.set_status(models.HostQueueEntry.Status.CLEANING)
232 entry = models.HostQueueEntry.objects.get(id=self.queue_entry.id)
233 models.SpecialTask.objects.create(
234 host=models.Host.objects.get(id=self.host.id),
236 task=models.SpecialTask.Task.VERIFY)
247 self.host.set_status(models.Host.Status.READY)
258 TASK_TYPE = models.SpecialTask.Task.RESET
273 self.host.set_status(models.Host.Status.RESETTING)
275 self.queue_entry.set_status(models.HostQueueEntry.Status.RESETTING)
278 self.remove_special_tasks(models.SpecialTask.Task.CLEANUP,
282 self.remove_special_tasks(models.SpecialTask.Task.VERIFY,
286 self.remove_special_tasks(models.SpecialTask.Task.RESET,
299 self.host.set_status(models.Host.Status.READY)
352 TASK_TYPE = models.SpecialTask.Task.PROVISION
408 models.HostQueueEntry.Status.PROVISIONING)
409 self.host.set_status(models.Host.Status.PROVISIONING)
432 TASK_TYPE = models.SpecialTask.Task.REPAIR
458 self.host.set_status(models.Host.Status.REPAIRING)
465 self.host.set_status(models.Host.Status.READY)
467 self.host.set_status(models.Host.Status.REPAIR_FAILED)