Bug 1212227 - ability to create systems from CLI
Summary: ability to create systems from CLI
Keywords:
Status: CLOSED DUPLICATE of bug 1323885
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: beaker-dev-list
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-04-15 23:09 UTC by matt jia
Modified: 2018-02-06 00:41 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-05-16 02:40:32 UTC
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.