Redesign the reverify hosts feature. Host status is no longer changed
from the frontend; scheduler deals with all status changes.

Risk: medium (scheduler behavior change)
Visibility: low

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3238 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/afe/rpc_interface.py b/frontend/afe/rpc_interface.py
index b97f052..4ca4e73 100644
--- a/frontend/afe/rpc_interface.py
+++ b/frontend/afe/rpc_interface.py
@@ -32,8 +32,8 @@
 import datetime
 import common
 from autotest_lib.frontend import thread_local
-from autotest_lib.frontend.afe import models, model_logic, control_file
-from autotest_lib.frontend.afe import rpc_utils
+from autotest_lib.frontend.afe import models, model_logic
+from autotest_lib.frontend.afe import control_file, rpc_utils
 from autotest_lib.client.common_lib import global_config
 
 
@@ -514,7 +514,8 @@
     """
     hosts = models.Host.query_objects(filter_data)
     models.AclGroup.check_for_acl_violation_hosts(hosts)
-    models.Host.reverify_hosts(hosts)
+    models.SpecialTask.schedule_special_task(hosts,
+                                             models.SpecialTask.Task.REVERIFY)
 
 
 def get_jobs(not_yet_run=False, running=False, finished=False, **filter_data):
@@ -742,8 +743,7 @@
                                    "Stopped": "Other host(s) failed verify",
                                    "Parsing": "Awaiting parse of final results",
                                    "Gathering": "Gathering log files",
-                                   "Template": "Template job for recurring run",
-                                   "Reverify": "Scheduled for reverification"}
+                                   "Template": "Template job for recurring run"}
     return result