History log of /external/autotest/contrib/generate_rpm_mapping.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
047183cbaa217e6b93252b8ee77d7eafef5b78ac 18-Dec-2014 Fang Deng <fdeng@chromium.org> [autotest] Implement densified rack layout rule for destiny4

rack 0, 12, 13 (except row 13) are densified racks --
one shelf can have two chromeboxes or one notebook.
And the RPMs are 24-port. The host-rpm-outlet mapping
follows different rule from other racks.

This CL adds the mapping rule for the densified rack layout.

BUG=chromium:445997
TEST=Run the script and verify chromeos4 mapping rule manually.

Change-Id: I7b8c72fca1c7d91ae92965152fc03684c542da19
Reviewed-on: https://chromium-review.googlesource.com/238248
Reviewed-by: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Trybot-Ready: Fang Deng <fdeng@chromium.org>
/external/autotest/contrib/generate_rpm_mapping.py
b705433165c2fbacc08f541bb3f314c9376df8f5 08-Oct-2014 Fang Deng <fdeng@chromium.org> [autotest] generate_rpm_mapping tolerate unsupported hostnames

All the hosts in chromeos1 that are supported by rpm
should have 'row' as part of its hostname. But we still have
couple of old style hostnames without 'row' name. Make
the script tolerate those unsupported host names.

TEST=Run the script
BUG=None

Change-Id: I5a1e70b6a9a9ff7be56afb10b9707b29acf876ba
Reviewed-on: https://chromium-review.googlesource.com/221993
Reviewed-by: Dan Shi <dshi@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
/external/autotest/contrib/generate_rpm_mapping.py
d946f3ffc0c02389e39b9486add0714d6a320e3e 26-Aug-2014 Fang Deng <fdeng@chromium.org> [autotest] Add a script to generate dut-rpm-outlet-hydra mapping

Add a script which generates a csv file containing the mapping of
(device_hostname, rpm_hostname, outlet, hydra_hostname) for each
host in our lab. The csv file is in the following format.

chromeos2-row2-rack2-host1,chromeos2-row2-rack2-rpm1,.A1,chromeos-197-hydra1.mtv
chromeos2-row2-rack2-host2,chromeos2-row2-rack2-rpm1,.A2,chromeos-197-hydra1.mtv
...

The mapping information will be uploaded to afe database.

Workflow:
<Generate the csv file>
python generate_rpm_mapping.py --csv rpminfo.csv --server cautotest

<Upload mapping information in csv file to AFE>
python add_host_powerunit_info.py --csv rpminfo.csv

Also add --server option to add_host_powerunit_info.py

BUG=chromium:408177
TEST=run the script and manually examine its content.

Change-Id: I85f2e012d54666489869090d16019e88bf7831d2
Reviewed-on: https://chromium-review.googlesource.com/214550
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
Tested-by: Fang Deng <fdeng@chromium.org>
/external/autotest/contrib/generate_rpm_mapping.py