Bug 1323885
Summary: | bkr command to add and configure systems | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Beaker | Reporter: | jiazhan | ||||
Component: | command line | Assignee: | matt jia <mjia> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | tools-bugs <tools-bugs> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | develop | CC: | dcallagh, dowang, jiazhan, mjia, rjoost | ||||
Target Milestone: | 23.0 | Keywords: | FutureFeature, Patch | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Enhancement | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-07 23:10:36 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: | |||||||
Attachments: |
|
Description
jiazhan
2016-04-05 01:25:17 UTC
We could add a new command bkr system-create, for creating a new system in Beaker. We already have bkr system-modify but it only allows changing a very small subset of the important attributes of a system. It seems like the important ones needed here are: * lab controller * supported architectures * location * power settings Possibly also install options and excluded families? Hi Dan: thanks a lot, I have been reading the codes you showed me last time. I got to understand some , but it's a far long way for me to go to integrate it into mine. I will ask questions on the code that I don't understand in the future. At the same time, Can I know when the bkr system-create can be made. It's very appreciated if the 'bkr system-modify 'command can help us update the settings in 'power-settings' ,'essentials' and 'access-policy' which we can only do on the webui now. It's mostly needed for automation work in daily operations. Thanks a lot for your great support. Created attachment 1155503 [details]
2 bkr command files
Hi Dan: Thanks a lot for your guide and It took me some time to read the beaker doc and the code. Although I did not have make full idea of the code, but I have found ways to modify current code. I attached 2 files . cmd_system_create.py: I made it with based on template of other bkr command file cmd_system_modify.py: I modified it and add some options , so we can add more attributes based on our needs. I tried to integrate them into my script and it seems that they works fine on test system and save quite a few time when register boxes in beaker. Can you kindly have a check ? *** Bug 1212227 has been marked as a duplicate of this bug. *** (In reply to Dan Callaghan from comment #1) > We could add a new command bkr system-create, for creating a new system in > Beaker. > > We already have bkr system-modify but it only allows changing a very small > subset of the important attributes of a system. It seems like the important > ones needed here are: > > * lab controller > * supported architectures > * location > * power settings > > Possibly also install options and excluded families? I think it would be easier to add install options and excluded families after we port 'Install Options' and 'Excluded Families' tabs to Backbone on the system page. For the initial version, we could just allow setting the important ones mentioned above first. > We could add a new command bkr system-create, for creating a new system in > Beaker. > > We already have bkr system-modify but it only allows changing a very small > subset of the important attributes of a system. It seems like the important > ones needed here are: > > * lab controller > * supported architectures > * location > * power settings > On Gerrit: https://gerrit.beaker-project.org/#/c/4900/ This bug fix is included in beaker-client-23.0-0.git.244.0980974 which is currently available for download here: https://beaker-project.org/nightlies/develop/ Beaker 23.0 has been released. |