Bug 1337812 - ability to modify lab controllers from CLI
Summary: ability to modify lab controllers from CLI
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 22
Hardware: Unspecified
OS: Unspecified
low
unspecified
Target Milestone: 23.0
Assignee: matt jia
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On: 1211119 1251355
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-20 06:46 UTC by matt jia
Modified: 2018-02-06 00:41 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 1211119
Environment:
Last Closed: 2016-07-07 23:12:29 UTC
Embargoed:


Attachments (Terms of Use)

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.


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