Home | History | Annotate | Download | only in scheduler

Lines Matching full:host

8 repair will run anytime the host needs a repair, which could be pre or post
12 All prejob tasks must have a host, though they may not have an HQE. If a
15 host=C1, unlocked, is_active=0, is_complete=0, type=Verify
17 of type=Verify, against the C1 host. While the special task is running
22 Host, HQE -> Pending, Starting
28 repair the host
31 set Host, HQE status
37 set Host, HQE status
39 Failing a prejob task effects both the Host and the HQE, as follows:
41 - Host: PreJob failure will result in a Repair job getting queued against
42 the host, is we haven't already tried repairing it more than the
43 max_repair_limit. When this happens, the host will remain in whatever status
47 If we have already tried repairing the host too many times, the PreJobTask
48 will flip the host to 'RepairFailed' in its epilog, and it will remain in this
52 in the Queued state and setting its host_id to None, so it gets a new host
89 if self.host.protection == host_protections.Protection.DO_NOT_VERIFY:
96 # tasks against this host, otherwise we'll be left in a state
97 # where a queued HQE has special tasks to run against a host.
100 host__id=self.host.id,
128 # Limit the repair on a host when a prejob task fails, e.g., reset,
130 # HQE and host.
136 self.host.set_status(models.Host.Status.REPAIR_FAILED)
146 host=models.Host.objects.get(id=self.host.id),
154 Decide if we should call the host queue entry's on_pending method.
156 1) There exists an associated host queue entry.
159 host queue entry starts.
172 host__id=self.host.id, is_active=False,
187 self._set_ids(host=self.host, queue_entries=[self.queue_entry])
193 logging.info("starting verify on %s", self.host.hostname)
196 self.host.set_status(models.Host.Status.VERIFYING)
198 # Delete any queued manual reverifies for this host. One verify will do
210 self.host.set_status(models.Host.Status.READY)
215 # against the host (not related to the job), so it's not considered a
226 self._set_ids(host=self.host, queue_entries=[self.queue_entry])
231 logging.info("starting cleanup task for host: %s", self.host.hostname)
232 self.host.set_status(models.Host.Status.CLEANING)
244 and self.host.protection != do_not_verify_protection)
248 host=models.Host.objects.get(id=self.host.id),
260 self.host.update_field('dirty', 0)
261 self.host.set_status(models.Host.Status.READY)
269 # against the host (not related to the job), so it's not considered a
280 self._set_ids(host=self.host, queue_entries=[self.queue_entry])
285 logging.info('starting reset task for host: %s',
286 self.host.hostname)
287 self.host.set_status(models.Host.Status.RESETTING)
291 # Delete any queued cleanups for this host.
295 # Delete any queued reverifies for this host.
308 self.host.update_field('dirty', 0)
313 self.host.set_status(models.Host.Status.READY)
332 self._set_ids(host=self.host, queue_entries=[self.queue_entry])
343 return autoserv_utils._autoserv_command_line(self.host.hostname,
351 logging.info("starting provision task for host: %s", self.host.hostname)
354 self.host.set_status(models.Host.Status.PROVISIONING)
362 # epilog. If this task was successful the host status will get
366 # a. Another repair is queued: this repair job will set the host
368 # b. We have hit the max_repair_limit: in which case the host
371 # Those special tasks will set the host status appropriately.
385 task.host.protection)
389 args = ['-R', '--host-protection', protection]
397 self._set_ids(host=self.host)
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)