Project

General

Profile

Actions

Feature #11731

open

Select output columns in "hammer discovery list --search"

Added by Alex Balk over 8 years ago. Updated about 8 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Hammer CLI
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

When getting a list of nodes via
hammer discovery list --search
the output columns are fixed. This means that if one wants to search for all nodes with a set of facts that do not appear in the pre-defined columns, there are two steps that need to be taken:
  1. get the list of nodes matching the search critirea
  2. itererate over each node and get all of its facts
  3. filter only the relevant facts
    Since we often want to search for a list of nodes and see the actual results of the query, it would be great if we could do all of this in one step. Consider this search: "memory > 10 and memory < 100" - what are the actual memory values that matched? what if we also wanted to see the ipmi_ip or some custom fact, such as facts.cabinet?
Actions #1

Updated by Ori Rabin about 8 years ago

  • Assignee deleted (Ori Rabin)
  • Priority changed from High to Normal
Actions

Also available in: Atom PDF