Lines Matching refs:host
19 def host_in_lab(host): argument
31 if not host.job or not host.job.in_lab:
33 return AFE.get_hosts(hostname=host.hostname)
36 def get_build(host): argument
46 if not host_in_lab(host):
48 return utils.get_build_from_afe(host.hostname, AFE)
51 def get_board(host): argument
60 if not host_in_lab(host):
62 return utils.get_board_from_afe(host.hostname, AFE)
65 def clear_version_labels(host): argument
70 if not host_in_lab(host):
73 host_list = [host.hostname]
75 name__startswith=host.VERSION_PREFIX,
76 host__hostname=host.hostname)
82 def add_version_label(host, image_name): argument
88 if not host_in_lab(host):
90 label = '%s:%s' % (host.VERSION_PREFIX, image_name)
91 AFE.run('label_add_hosts', id=label, hosts=[host.hostname])
94 def machine_install_and_update_labels(host, *args, **dargs): argument
101 clear_version_labels(host)
102 image_name = host.machine_install(*args, **dargs)
103 add_version_label(host, image_name)