Bug 1337812

Summary: ability to modify lab controllers from CLI
Product: [Retired] Beaker Reporter: matt jia <mjia>
Component: command lineAssignee: matt jia <mjia>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: unspecified Docs Contact:
Priority: low    
Version: 22CC: dcallagh, dowang, ebaak, mjia, rjoost, tools-bugs
Target Milestone: 23.0Keywords: FutureFeature, Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1211119 Environment:
Last Closed: 2016-07-07 23:12:29 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:
Bug Depends On: 1211119, 1251355    
Bug Blocks:    

Description matt jia 2016-05-20 06:46:44 UTC
As part of bug 1211119, adding a new command to modify existing lab controllers 

with

bkr labcontroller-modify --fqdn <fqdn> --username <username> --password <password> --email <address>

Comment 1 matt jia 2016-05-20 06:52:27 UTC
Currently, the HTTP API for updating existing lab controllers is not validated properly on updating fqdn. We should use the same validation in updating systems.

Comment 2 matt jia 2016-05-20 06:53:58 UTC
(In reply to matt jia from comment #1)
> Currently, the HTTP API for updating existing lab controllers is not
> validated properly on updating fqdn. We should use the same validation in
> updating systems.

Here is a patch to fix this issue:

   https://gerrit.beaker-project.org/#/c/4905/

Comment 3 matt jia 2016-05-20 06:56:50 UTC
(In reply to matt jia from comment #2)
> (In reply to matt jia from comment #1)
> > Currently, the HTTP API for updating existing lab controllers is not
> > validated properly on updating fqdn. 

Reword the sentence to make it clear: 

  Currently, the HTTP API for updating existing lab controllers is not validating FQDN properly.

Comment 4 matt jia 2016-05-24 04:56:18 UTC
validate that lab controller FQDN is valid

https://gerrit.beaker-project.org/#/c/4905

use sqlalchemy validator for users' display name and email address 

https://gerrit.beaker-project.org/#/c/4922

bkr labcontroller-modify: CLI for modifying a lab conroller

https://gerrit.beaker-project.org/#/c/4924

Comment 5 Roman Joost 2016-05-27 17:50:59 UTC
Dear Matt,

we've spoken to the labs guys today. Would you mind adding the ability to disable the lab controller to the CLI while you're at it? Reason being is to be able to disable the lab controller in cases of problems.

Comment 6 Dan Callaghan 2016-06-13 01:02:56 UTC
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/

Comment 8 Dan Callaghan 2016-07-07 23:12:29 UTC
Beaker 23.0 has been released.