Bug 1121462

Summary: [RFE] Add "bkr update-inventory" command
Product: [Retired] Beaker Reporter: Nick Coghlan <ncoghlan>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: developCC: aigao, dcallagh, dowang, ebaak
Target Milestone: 21.0Keywords: FutureFeature, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-08-26 06:17:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nick Coghlan 2014-07-21 04:07:34 UTC
The current command for doing a hardware scan on a system is "bkr machine-test --inventory --ignore-system-status --machine <FQDN> --family <distro>"

This RFE proposes simplifying that to "bkr update-inventory --machine <FQDN> --family <distro>"

The dedicated command should make this capability more discoverable, as well as making it easier to inventory Manual systems (since it will use the new "force" option by default)

The guidance in other parts of the docs (e.g. adding a new system) should also be updated to reference the new command.

Comment 1 Nick Coghlan 2014-11-20 04:57:22 UTC
This would be a good candidate for a 19.x maintenance release.

Comment 2 Dan Callaghan 2015-05-07 07:24:52 UTC
For bug 1121462 we are adding a one-click "run inventory job" button to the system page, which will let the server figure out the most optimal distro to use (currently the rules for picking the distro are complicated due to smolt vs. lshw).

So I think bkr update-inventory should be the CLI equivalent of that -- it will be a one "click" command to just run an inventory job without caring about how it happens. So it won't expose any of the normal workflow options nor will it allow customising the distro, etc.

The --help and man for bkr update-inventory can point at bkr machine-test --inventory as an alternative when the user wants full control over how the job is defined, such as picking distros, adding extra tasks, repos, etc.

Comment 3 Amit Saha 2015-05-07 07:57:33 UTC
http://gerrit.beaker-project.org/#/c/4203/

Comment 6 Dan Callaghan 2015-08-26 06:17:31 UTC
Beaker 21.0 has been released.