ec377461b7c5b64a233563b5376342cea301f1f9 |
|
14-Jul-2017 |
Keith Haddow <haddowk@chromium.org> |
[autotest] Stop Moblab from finding SSP containers as DUT's When provisioned in the lab the mobab finds active IP addresses and adds them as DUT's some of these are active SSP containers. Stop the detection picking up the SSP containers BUG=chromium:743101 TEST=trybot job Change-Id: I166322aa17583759a38545efbf36076a18351828 Reviewed-on: https://chromium-review.googlesource.com/572078 Commit-Ready: Keith Haddow <haddowk@chromium.org> Tested-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/moblab_host.py
|
f885e8a2b828fb149233aba73656309db2431eac |
|
02-Jun-2017 |
Keith Haddow <haddowk@chromium.org> |
[autotest] When waking up moblab DUTs send more than one ping. We see the wrong IP addresses coming back when we send fping packets to wake up the device. It is a shot in the dark to send more than one ping but low overhead. BUG=chromium:715844 TEST=test_that on local moblab Change-Id: Iaa506d4394afe5b1770408e4edfc3f41ca5269c2 Reviewed-on: https://chromium-review.googlesource.com/524233 Commit-Ready: Keith Haddow <haddowk@chromium.org> Tested-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Prathmesh Prabhu <pprabhu@chromium.org> Reviewed-by: Keith Haddow <haddowk@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
f8671a6beeaf16aff12483c0aee841f22f59f8ce |
|
14-Mar-2017 |
xixuan <xixuan@chromium.org> |
autotest: not raise any error in moblab_host.reboot. This CL changes not to raise any errors when moblab_host fails to restart afe in reboot. BUG=chromium:701400 TEST=Run repair for a lab DUT using local AFE, successfully trigger repair.au. Change-Id: I7382c7ea0c40854a106430c157eb3e79ab309712 Reviewed-on: https://chromium-review.googlesource.com/454886 Reviewed-by: Xixuan Wu <xixuan@chromium.org> Commit-Queue: Xixuan Wu <xixuan@chromium.org> Tested-by: Xixuan Wu <xixuan@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
ba90ec86aa31ac93f2eeba1f5407f0426ced508d |
|
17-Feb-2017 |
Simran Basi <sbasi@chromium.org> |
Revert "[autotest] Move MobLab image storage cleanup and ensure moblab_RunSuite runs a test." This reverts commit b79379f47294920f8d44227e93a704e12724f05b. Reason for revert: <INSERT REASONING HERE> Original change's description: > [autotest] Move MobLab image storage cleanup and ensure moblab_RunSuite runs a test. > > Fixing two problems with this CL. > > 1) Migrates the cleanup of the moblab image storage folder > from moblab_host to the moblab_RunSuite test. > > 2) Updates the moblab_RunSuite test and run_suite to ensure > atleast a single test is ran to prevent breakages that > create 0 tests. > > BUG=chromium:671709,chromium:642905 > TEST=None > > Change-Id: Ief1567c0c1a692d4ca10735b30f49cc43776e9ed > Reviewed-on: https://chromium-review.googlesource.com/437750 > Commit-Ready: Simran Basi <sbasi@chromium.org> > Tested-by: Simran Basi <sbasi@chromium.org> > Reviewed-by: Dan Shi <dshi@google.com> > TBR=sbasi@chromium.org,sbasi@google.com,dshi@google.com,dshi@chromium.org,akeshet@chromium.org # Not skipping CQ checks because original CL landed > 1 day ago. BUG=chromium:671709,chromium:642905 Change-Id: Ie2f7b78fe5fd39b004436b367ab62050ae76dc1b Reviewed-on: https://chromium-review.googlesource.com/444310 Reviewed-by: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Xixuan Wu <xixuan@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
b79379f47294920f8d44227e93a704e12724f05b |
|
04-Feb-2017 |
Simran Basi <sbasi@google.com> |
[autotest] Move MobLab image storage cleanup and ensure moblab_RunSuite runs a test. Fixing two problems with this CL. 1) Migrates the cleanup of the moblab image storage folder from moblab_host to the moblab_RunSuite test. 2) Updates the moblab_RunSuite test and run_suite to ensure atleast a single test is ran to prevent breakages that create 0 tests. BUG=chromium:671709,chromium:642905 TEST=None Change-Id: Ief1567c0c1a692d4ca10735b30f49cc43776e9ed Reviewed-on: https://chromium-review.googlesource.com/437750 Commit-Ready: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/moblab_host.py
|
971fe949e781ba67a5dd6f5f9a4f0a38a3ae713b |
|
03-Nov-2016 |
xixuan <xixuan@chromium.org> |
Autotest: Let moblab host restart AFE tunnel if needed before verifying. There's a case that before verifying a moblab host, its AFE tunnel is closed for some reasons, like unexpected reboot without using |reboot| func in moblab_host.py This CL restart the AFE if it is down due to a closed tunnel. BUG=chromium:649811 TEST=Run "/usr/local/autotest/server/autoserv -p -r /tmp/moblab-test7 -m chromeos2-row1-rack8-host1 --verbose --lab True --provision --job-labels cros-version:guado_moblab-paladin/R56-8953.0.0-rc4" with new change on chromeos-server36.cbf (the guado shard) Change-Id: Icb8eb7e7278699557f3020b14eae4f63a2f3f7d8 Reviewed-on: https://chromium-review.googlesource.com/406639 Commit-Ready: Xixuan Wu <xixuan@chromium.org> Tested-by: Xixuan Wu <xixuan@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
6a34cafd6e9b9d2609308a80a5292ca60e22611e |
|
22-Oct-2016 |
Michael Tang <ntang@google.com> |
Adds UI to upload all Moblab credentials files. BUG=chromium:658462 TEST=manual. Change-Id: I53fff080f524c8cb793911227d18125e45da00fd Reviewed-on: https://chromium-review.googlesource.com/401282 Reviewed-by: Keith Haddow <haddowk@chromium.org> Reviewed-by: Michael Tang <ntang@chromium.org> Commit-Queue: Michael Tang <ntang@chromium.org> Tested-by: Michael Tang <ntang@chromium.org> Trybot-Ready: Michael Tang <ntang@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
9025d9f9fd78f3111223c998ebcd86903e900b17 |
|
08-Oct-2016 |
xixuan <xixuan@chromium.org> |
autotest: add a retry for upstart service check of moblab. New provision framework makes restarting moblab upstart service much longer than before. We haven't figure it out yet. This CL is a fix for that. We add a retry for all upstart service check commands on moblab, and set timeout=2 mins to make sure that this verify check will pass. BUG=chromium:649811 TEST=Run a repair job on moblab host of local autotest. Verified that it passes the upstart service checks. Change-Id: I2068eef5410aecd9915608bfb5ef6002ba2cf1bf Reviewed-on: https://chromium-review.googlesource.com/395547 Commit-Ready: Xixuan Wu <xixuan@chromium.org> Tested-by: Xixuan Wu <xixuan@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
410b3cfe62414d0f21fe0a2140a52b2106673dec |
|
02-Aug-2016 |
Kevin Cheng <kevcheng@chromium.org> |
[autotest] Update factory to create moblab host based on os:moblab. BUG=chromium:633616 TEST=Locally verified moblab host gets created with os:moblab label. Change-Id: Id7f14ff8a6800da5121ce344590f77df2abe87c2 Reviewed-on: https://chromium-review.googlesource.com/365236 Commit-Ready: Kevin Cheng <kevcheng@chromium.org> Tested-by: Kevin Cheng <kevcheng@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/moblab_host.py
|
91137f091ec7c5df44081b692ab7e9d9bc79247e |
|
11-Mar-2016 |
J. Richard Barnette <jrbarnette@chromium.org> |
[autotest] Convert CrosHost repair to the new Repair framework. This moves all individual repair functions in CrosHost into RepairAction subclasses in cros_repair.py and converts the repair() method to use self._repair_strategy. This also converts MoblabHost (a subclass of CrosHost) in a similar fashion. BUG=chromium:586326,chromium:586317 TEST=test against various DUTs in a local Autotest instance Change-Id: I0eee80890da1cc63dc9efa5ba06548fd37c1a35d Reviewed-on: https://chromium-review.googlesource.com/332292 Commit-Ready: Richard Barnette <jrbarnette@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Dan Shi <dshi@google.com>
/external/autotest/server/hosts/moblab_host.py
|
10ce09c325cc46c993929af23d2f54807862d005 |
|
09-Mar-2016 |
xixuan <xixuan@google.com> |
Autotest: Use SSH For Communication to Moblab Create an ssh tunnel for autoserv to communicate to moblab. MoblabHost calls rpc_server_tracker to create a safe ssh connection to moblab when it is created or moblab is rebooted. Related Change: 1. Refactoring rpc_server_tracker to seperate tunnel creating process |_setup_tracker_for_rpc| and URL/host construction functions, |_setup_rpc| or |tunnel_connect|. 2. Add a |enable_ssh_tunnel_for_moblab| to enable/disable ssh tunnel for moblab. BUG=chromium:593965 TEST=Ran verify&repair, moblab_RunSuite:dummyServer, on local moblab to verify ssh tunnel for moblab. Ran network_WiFi_SimpleConnect.wifi_check11g to make sure that rpc_server_tracker still works. Change-Id: I0d35209c3ba7b27cca00bbdff1a714ed6d8d40d3 Reviewed-on: https://chromium-review.googlesource.com/331792 Commit-Ready: Xixuan Wu <xixuan@chromium.org> Tested-by: Xixuan Wu <xixuan@chromium.org> Reviewed-by: Richard Barnette <jrbarnette@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
aec9901aa25aecfc58d8e1c9b867c624109d7fe2 |
|
07-Jan-2016 |
Dan Shi <dshi@google.com> |
[autotest] Support uploading a service key file to moblab Add RPC to accept an uploaded key file and save it to /home/moblab/.launch_control_key Add a new tab in moblab setup page to allow user to upload a service key file. BUG=chromium:570705 TEST=verify with a local moblab build Change-Id: Ib54a6b707cb93bb5220e29ed6feeb854f5f4abe8 Reviewed-on: https://chromium-review.googlesource.com/321140 Commit-Ready: Dan Shi <dshi@google.com> Tested-by: Dan Shi <dshi@google.com> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
c2d99cf743c86fe0519f155ffbcad54df31bd742 |
|
18-Nov-2015 |
J. Richard Barnette <jrbarnette@chromium.org> |
[autotest] Remove the concept of 'protection level' from repair. In original Autotest, hosts have a 'protection level' that is passed to repair jobs in order to limit the specific kinds of repair that can be done. For the CrOS lab, this concept is largely not useful; we want a uniform repair procedure determined by the kind of DUT being repaired, not by a database configuration. This removes the concept of 'protection level' from the repair flow; repair steps are now determined only by the class of Host that handles the operation. The protection level remains in the database, but the only meaningful value is 'Do not verify'. That setting on a host will prevent it from running any verify, cleanup, or repair tasks. This is done for the sake of non-DUT hosts that exist in the CrOS lab AFE database. BUG=None TEST=unit tests, and run repair in a local instance Change-Id: I1d512eb2b1fe604b70fec00b3a290f5f6b9d9beb Reviewed-on: https://chromium-review.googlesource.com/312979 Commit-Ready: Richard Barnette <jrbarnette@chromium.org> Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
3d2e033dc12fef215dc17232dbff03ab23e43677 |
|
03-Nov-2015 |
Gilad Arnold <garnold@chromium.org> |
moblab_host: Add MOBLAB_TMP_DIR and MoblabHost.make_tmp_dir(). BUG=b:25395612 TEST=brillo_recovery_test_setup.py still works Change-Id: I7b45404e4ea929d1f89b00e5d9a06e79fd3ef994 Reviewed-on: https://chromium-review.googlesource.com/310550 Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
8d955d1600178ed0ad3232f856f2bb2a3d23a1d7 |
|
22-Oct-2015 |
Simran Basi <sbasi@google.com> |
brillo_test_launcher: Extend RPC timeout for VMs MobLab in a VM runs slower and can take longer to start up. This change makes the RPC timeout for MoblabHost adjustable and sets it to 5 minutes for VMs. BUG=b:25187405 TEST=local run against VM. Change-Id: I50da8a6125a3dcf68100fe954c22657228e484f8 Reviewed-on: https://chromium-review.googlesource.com/308200 Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
e3804518626cc484dc926b5d8200c3bcb6d95664 |
|
21-Oct-2015 |
Gilad Arnold <garnold@chromium.org> |
moblab_host: Allow not flushing the image storage on init. We need this when using the Moblab for testing Brillo. BUG=b:24774860 TEST=Moblab storage not flushed when running brillo_test_launcher. Change-Id: Ib00c8e4e3dfa2ad7e2882322de4b7f4835b69d33 Reviewed-on: https://chromium-review.googlesource.com/307830 Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
290591dc12753ef2878a72a9c434c06bd995feb9 |
|
14-Oct-2015 |
Simran Basi <sbasi@google.com> |
Brillo Tier 1 PTS: Add VM Support Added the --virtual_machine option to the brillo_tier1_kickoff script. This tell the script to interact with a local MobLab running in a virtual machine. BUG=b:24774860 TEST=Launched moblab in a vm and ran the kickoff script succesfully against it. Change-Id: Ib29a540b4731efb638d00ccc983f5d79f7c02739 Reviewed-on: https://chromium-review.googlesource.com/305505 Commit-Ready: Gilad Arnold <garnold@chromium.org> Tested-by: Gilad Arnold <garnold@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
01984f506453723cb63b2d39947017c62ba06047 |
|
13-Oct-2015 |
Simran Basi <sbasi@google.com> |
Brillo Tier 1 PTS: Add job monitoring and result processing. Now after the PTS sequence is launched, the tier1 kickoff script will monitor the PTS job and its child jobs until either they complete or the host goes into a bad state. Then the results are processed via the same ResultCollector we use for running suites. Also fixed the get_jobs RPC to work properly when finished=False, before it ignored this value when set to false. BUG=b:24774860 TEST=Ran against a local moblab. PTS is kicked off, monitored and results are properly fetched. Links outputted by the ResultCollector also work as expected. Change-Id: Ie179b54aa5b380fdd78b803e8e4c922003805759 Reviewed-on: https://chromium-review.googlesource.com/305263 Commit-Ready: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
a5522a35b55c7cac915cf0b4efc69ead32e26d35 |
|
06-Oct-2015 |
Simran Basi <sbasi@google.com> |
Brillo Tier 1 PTS: Initial Script. Here is the starting point for the Brillo Tier 1 PTS. Currently it does the following: * Connects to a MobLab instance. * Adds the ADB Host to the MobLab host list. * Stages an update payload (not yet used). * Launches the Brillo PTS Sequence. Added the Brillo PTS Sequence. Currently is just runs the whitelisted Gtests twice. Updated sequences to support using the local control file and not the template. BUG=b:24774860 TEST=Ran against a local moblab, payload is staged and whitelisted Gtests run twice. Change-Id: I421d5d9c659ca654494e10cb37456de6fdd9752d Reviewed-on: https://chromium-review.googlesource.com/304792 Commit-Ready: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
d3ba3fbed434a475e28b4cee0dedcc68d26561ae |
|
11-Sep-2015 |
Simran Basi <sbasi@google.com> |
autotest: minor adb_host modifications. * Point autotest to use /data/autodir for the autodir of adb_host. * Stub out verify_software and verify_job_repo_url for adb_host. * Update moblab_host so that a MobLab can use the .android_tester file flag to specify if it is a MobLab under test or an adb_host. BUG=None TEST=local run. Change-Id: Ice45ec65735ae78b1df8e21b49d9f52c546f465b Reviewed-on: https://chromium-review.googlesource.com/299951 Commit-Ready: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Kevin Cheng <kevcheng@google.com> Reviewed-by: Dan Shi <dshi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
3cc5d1d19dc161846c7c4fd00c993a947e8ae683 |
|
13-Apr-2015 |
J. Richard Barnette <jrbarnette@chromium.org> |
[autotest] Convert MoblabHost to use AFE.get_special_tasks(). Converts the single caller of AFE run in this module from using `self.afe.run('get_special_tasks', ...)` to the equivalent but lexically preferable `self.afe.get_special_tasks(...)` BUG=None TEST=None Change-Id: Ie8f6d06f916a60b88d6d5ea641bd448d906017bd Reviewed-on: https://chromium-review.googlesource.com/265477 Tested-by: Richard Barnette <jrbarnette@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Richard Barnette <jrbarnette@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
cd049d981e68b596e91f9c90ffcd0c4a05c136b8 |
|
08-Dec-2014 |
Simran Basi <sbasi@google.com> |
moblab_host: catch urllib.URLError on reboot. Repair is failing in the lab because reboot is not catching a potential urllib error. Also catch this exception on reboot. BUG=chromium:440048 TEST=able to repair moblab devices via local scheduler. Change-Id: Ieac5f4c82f035b8547856a38b1ecc78936997aae Reviewed-on: https://chromium-review.googlesource.com/233891 Tested-by: Simran Basi <sbasi@chromium.org> Trybot-Ready: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
380656b79bd27d1b4a44c35fe29682cca90b6c83 |
|
10-Oct-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab_host] append '_moblab' to platform name. Since the platform name comes from a device's fw, append '_moblab', when retrieving the platform name of a moblab_host. BUG=chromium:415640 TEST=New hosts are added as platform: stumpy_moblab. Change-Id: Id8f2aa3f4099f4c70cf425fa7e8e4738dca4ddb5 Reviewed-on: https://chromium-review.googlesource.com/222950 Reviewed-by: Fang Deng <fdeng@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
f475ec6f20198c188fde831a4a58901269cd511a |
|
10-Oct-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab_host] Use fping to find devices on the subnet. Newer MobLab builds have fping installed. If available, use fping to search the subnet for DUTs. BUG=chromium:419904 TEST=Local autotest setup using builds with fping and without. Change-Id: I5c819cca4ad769c1d65c535cc1d348363a173242 Reviewed-on: https://chromium-review.googlesource.com/222846 Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
5ff403f0697d7fb5195370b11fa73d21def045fe |
|
09-Oct-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] Be able to repair devices with AFE down. When a bad CL breaks Autotest on Moblab, its unrepairable as repair waits for the AFE to come back up. This change now allows reboot to succeed if the DUT is up and the AFE is down. BUG=chromium:421556 TEST=Able to repair devices with bad builds locally. Change-Id: I9ff2c270ae47df35869e5fcb0f7e8bc6f84d8d3a Reviewed-on: https://chromium-review.googlesource.com/222384 Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
178ce7d5a00df6a9837af867cae9887dbe7f962e |
|
30-Sep-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] Improve moblab_host reverify process. * Ensure a boto file is installed before trying to verify or repair a Moblab's DUTs. * Extend the timeout for verify from 5 minutes to 15 in order to allow repairing DUTs process time to finish. BUG=chromium:419058 TEST=moblab_RunSmokeSuite still works. Manually installing a boto file and running repair via the lab works. Change-Id: I5a05603174039f5ba670682602d9276c982341c1 Reviewed-on: https://chromium-review.googlesource.com/220555 Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
4d6f06003e582a3fe5cb0a3ead0523b9847ea02e |
|
05-Sep-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] Retrieve correct autodir. Some tests install autotest in a temporary directory, set the autodir variable and delete the directory at the end of the test. Previously moblab_host returning the assigned client directory but now will return the set autodir variable if it was assigned. BUG=chromium:410956 TEST=local run of platform_memCheck that requires the cleanup-reboot dependency. Change-Id: Ifb9dae233832db75086c168f5f1c260de6b015ec Reviewed-on: https://chromium-review.googlesource.com/216529 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
ae08c8c9e7051e3d5001ae4fb3b8cddac008ac63 |
|
02-Sep-2014 |
Simran Basi <sbasi@chromium.org> |
[autotest] Delete only the installed client dir on machine_install * Moblab has server code installed in /usr/local/autotest. * Autotest normally installs client/ code in /usr/local/autotest on normal DUTs but on Moblab installs in /usr/local/autodir. * The old code here deleted ['/usr/local/autotest', '/usr/local/autodir'] always. Therefore on Moblab, it breaks the running scheduler and etc processes. * We want it here to delete only the correct installed autotest client directory, therefore the autotest.Autotest.get_installed_autodir will find this directory out of the list of ['/usr/local/autotest', '/usr/local/autodir']. * Therefore on Moblab only /usr/local/autodir is deleted not /usr/local/autotest Also added the moblab-scheduler-init process to be checked for when running verify. BUG=chromium:409154 TEST=Ran a suite locally on my moblab against a peppy DUT. Also tested against a Moblab DUT installed in the lab via a local scheduler. Change-Id: I3752276e35b23e1194a4d110127ec52de7c534e2 Reviewed-on: https://chromium-review.googlesource.com/215845 Reviewed-by: Dan Shi <dshi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
ec564396668f64956add6350fb726059f50bc1c4 |
|
26-Aug-2014 |
Simran Basi <sbasi@chromium.org> |
[autotest] Moblab Host Verify/Check_device/Repair Proceedures. This is the initial version of Moblab's Verify and Check Device. Verify checks that all the moblab services are running and runs verify on Moblab's DUTs. Verify fails if this Moblab has no DUTs in the Ready state. Repair backs up the dhcpd lease file. check_device for Moblab requires a reboot and creation of the autotest client directory. If the dhcpd lease file was backed up, it is now restored. find_and_add_duts switches from broadcasting on the network to directly pinging DUTs listed in the dhcpd lease file. Updated the stable cros version to 6170.0.0 from 6167.0.0 as 6167.0.0 for Moblab has a bug critical to Moblab testing. BUG=chromium:388462 TEST=Verify/Repair run successful. moblab_SmokeSuite test. Ran bvt-inline without reimage. Change-Id: Idb351d67eda70a95960c1d9f2e08ca586aad73bf Reviewed-on: https://chromium-review.googlesource.com/214359 Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
263a9d3d1325a84c30679e0f3a1f7cf5dfc8b82b |
|
19-Aug-2014 |
Simran Basi <sbasi@chromium.org> |
[autotest] Add moblab autotest install directory. Remove the hardcoding of the moblab autotest install directory, and have it passed via global_config. Also point poor_mans_rpc to use get_installed_autodir as a host's autodir is not set unless ran within autotest.py. BUG=chromium:405170 TEST=Able to add both Moblab and Non-Moblab DUTs via cli/atest. Moblab server-side and client-side tests work. Change-Id: I83be3ed9f1c6d54022063f08e62d6254326a7ace Reviewed-on: https://chromium-review.googlesource.com/213170 Reviewed-by: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
71206ef92012e5a5c36bbd1ae47e9176be04036d |
|
13-Aug-2014 |
Simran Basi <sbasi@chromium.org> |
[MobLab] Moblab Setup page. * Adds a new page located at /moblab_setup * 2 are on this page: 1 to upload a Boto Key and 1 to edit the config values. * Link to /moblab_setup is visible only on a moblab system. * RPC's that execute moblab_setup's actions are gated by a decorator that limits them to only run on a moblab_system. * Unittests for new RPC's. * Editting the config values, writes the full config to shadow_config.ini and reboots the system so changes takes effort. * Resetting the config values, makes shadow_config.ini an empty file and reboots the system so it is restored. * Uploading the boto key uses shutil.copyfile to write in the new boto file's contents to the boto file location. BUG=chromium:396694 TEST=unittests, Uploaded a boto key and successfully ran a suite, editted config and ensured changes were written into shadow_config, & reset config and ensured that the default settings were restored. DEPLOY=afe,apache CQ-DEPEND=CL:212322 CQ-DEPEND=CL:212323 CQ-DEPEND=CL:212295 Change-Id: Ie354a2df310393045f3116e93004f58ea671de36 Reviewed-on: https://chromium-review.googlesource.com/209685 Reviewed-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
69e1d15a8c8c74aba342c1a8d0651e4d149b0f7f |
|
09-Aug-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] broadcast ping the subnet before listing devices. When running the moblab run suite test on a fresh install of moblab, not all devices will be listed by arp. To address this broadcast ping the subnet to wake up all DUTs on the subnet. BUG=chromium:402177 TEST=Powerwashed a moblab in the lab and ensured the test now finds both the DUTs. Change-Id: I0eaaea1428210b49fcb37e7679ddc3cb5067424e Reviewed-on: https://chromium-review.googlesource.com/211701 Reviewed-by: Chris Sosa <sosa@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
8c1e8502cbf6087514578f986b9280764e5fb6d8 |
|
08-Aug-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] Fix autotest install directory for server-side tests. Moves the autotest install directory out of /tmp so it can survive reboots, and ensure the directory exists before running server-side tests. BUG=chromium:402030 TEST=Server side tests no longer complain. CQ-DEPEND=CL:210592 Change-Id: Idabf25f3b017ae604812eee6c81920da5c3bc6a1 Reviewed-on: https://chromium-review.googlesource.com/211670 Reviewed-by: Chris Sosa <sosa@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
492242d0e51e400cfe7077c7d245cebb3314f8fa |
|
07-Jul-2014 |
Simran Basi <sbasi@chromium.org> |
[moblab] Initial Version of moblab_RunSuite test. Updated moblab_host with the following functions: * find_and_add_duts to find DUTs on the subnet and add them if they are not already in the AFE. * run_as_moblab function to run commands as the moblab user. * wait_afe_up function to gate tasks that rely on the AFE being up. Added a new MoblabTest class that handles basic Moblab test tasks that will be common to Moblab tests: * Installing a boto file. * Setting the image_storage_server to use. Added the initial version of Moblab_RunSuite test which runs a suite on a Moblab. * Currently just has one control file that kicks off the smoke suite. BUG=chromium:388462 TEST=Ran via test_that. Change-Id: I697f5b94afc88633e213d3b35b53f8f7d5a6240b Reviewed-on: https://chromium-review.googlesource.com/210592 Tested-by: Simran Basi <sbasi@chromium.org> Reviewed-by: Chris Sosa <sosa@chromium.org> Reviewed-by: Dan Shi <dshi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|
e5f7ae44738af9f6138103e7c57c26b415486ce8 |
|
27-Jun-2014 |
Simran Basi <sbasi@chromium.org> |
[autotest]: Add Moblab Host. Because /usr/local/autotest is used by Moblab to be its main autotest directory, we need client side testing for Moblab to not be installed in the same directory. This CL detects if the DUT is a Moblab Host, and if so returns /tmp/autotest as the location to install autotest. BUG=chromium:388067 TEST=Ran sleeptest via test_that and autotest was installed in /tmp/autotest, verified that regular Cros devices still use /usr/local/autotest. Change-Id: I4aaaf73568129ef57efb2124ed6de0300cbe64e4 Reviewed-on: https://chromium-review.googlesource.com/205827 Reviewed-by: Simran Basi <sbasi@chromium.org> Commit-Queue: Simran Basi <sbasi@chromium.org> Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/server/hosts/moblab_host.py
|