Bug 1212227

Summary: ability to create systems from CLI
Product: [Retired] Beaker Reporter: matt jia <mjia>
Component: command lineAssignee: beaker-dev-list
Status: CLOSED DUPLICATE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: dcallagh, ebaak, ineilsen, rjoost
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-16 02:40:32 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 matt jia 2015-04-15 23:09:57 UTC
It would be good to allow users to create systems from CLI.

The command would be sth like this:

bkr system-add -fqdn <fqdn> --lab-controller <lab-controller> --type <machine-type> --mac <mac_address>

And also we need a command to edit the power configurations details of the system. 

bkr system-config_power --type <power_type> --address <power_address> --login <power_login>  --password <power_password> --port <port>

Comment 1 matt jia 2015-04-15 23:13:09 UTC
(In reply to matt jia from comment #0)

Correct two typos, :-)

> bkr system-add -fqdn <fqdn> --lab-controller <lab-controller> --type
> <machine-type> --mac <mac_address>

brk system_add --fqdn ..

> And also we need a command to edit the power configurations details of the
> system. 
> 
> bkr system-config_power --type <power_type> --address <power_address>
> --login <power_login>  --password <power_password> --port <port>

bkr system_config_power ..

Comment 2 Dan Callaghan 2015-04-15 23:49:30 UTC
We use hyphens for subcommand names, not underscores.

bkr system-add

Also I don't think we need a separate command for updating power config. It can just be new options on system-modify.

bkr system-modify --power-type drac --power-address ...

It is all the same HTTP endpoint anyway (PUT /systems/<fqdn>/).

Comment 3 Roman Joost 2016-05-16 02:40:32 UTC

*** This bug has been marked as a duplicate of bug 1323885 ***