New issue
Advanced search Search tips

Issue 640035 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Jul 18
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Feature
okr



Sign in to add a comment

Create a DUT inventory command

Project Member Reported by dgarr...@chromium.org, Aug 23 2016

Issue description

It would be occasionally be handy to have dut-status just output the hostname as a way to query what duts exist for a given board/pool. This can be done by post-processing the output, but a command line option would be easier.
 
This will work:
    dut-status -nw -p $POOL -b $BOARD

However, that's a pretty expensive way to do it; the command
will determine the running/not running status of each DUT.

It might also make sense to have more dut-status options to
control which host fields get printed (cf. the -o options for 'ps').

However, the main purpose of dut-status is not really to list hosts,
but to check the DUT repair status, which is expensive.  So, it might
make more sense to enhance the 'atest' command, instead.

Alternatively, we could make a new command for querying the inventory
in a way that's customized to know about things like boards and pools.
That could also make it easy to query for things like counts instead
of host names, which is another feature that we need.

That new command an extending atest both sound very similar, but I like the approach better that what I suggested.

Comment 3 by aut...@google.com, Aug 23 2016

Labels: -current-issue
Labels: -Type-Bug Type-Feature
Summary: Create a DUT inventory command (was: "dut-status --hostname")
OK.  Broadening the proposed specification.  We'd like
a single command that make is easy to describe the
inventory either by listing or counting DUTs meeting
specified criteria.  The criteria should include:
  * By specifically named boards.
  * By specifically named pools.
  * By a combined boards+pools specification.
  * Restricted to just DUTs in specific categories of pool:
      * "managed" - (including bvt, cq, and suites).
      * "critical" - (all managed pools except for suites).
      * "spare" - suites pool.
  * For all DUTs *except for* one of the criteria above.

Labels: OKR
Do the various viceroy dashboards now cover this desire?
I originally filed it wanting a way to pipe the list of dut names into new commands, so viceroy doesn't help.

Project Member

Comment 8 by bugdroid1@chromium.org, May 3 2017

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/chromeos/chromeos-admin/+/0eb3796dd36a40428c2b2b7c354a16980ac6a28e

commit 0eb3796dd36a40428c2b2b7c354a16980ac6a28e
Author: Richard Barnette <jrbarnette@google.com>
Date: Wed May 03 03:48:59 2017

Owner: ----
Status: Available (was: Untriaged)
Hi, this bug has not been updated recently. Please acknowledge the bug and provide status within two weeks (6/22/2018), or the bug will be archived. Thank you.
Status: Archived (was: Available)
We want to move in the direction of Swarming backed dashboards of DUT history.
There is no plan to add specialized tooling for this atm.

Sign in to add a comment