Bug 1181700 - [RFE] should provide clear netboot command without the need of restart
Summary: [RFE] should provide clear netboot command without the need of restart
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Beaker
Classification: Retired
Component: command line
Version: 19
Hardware: All
OS: Linux
medium
medium
Target Milestone: 20.2
Assignee: matt jia
QA Contact: tools-bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-01-13 15:44 UTC by Miroslav Vadkerti
Modified: 2018-02-06 00:41 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-14 08:04:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Miroslav Vadkerti 2015-01-13 15:44:52 UTC
Description of problem:
Currently bkr does not provide an option how to clear netboot without restarting the server. We need to do this from the Web UI where this is possible.

It would be nice if we could do the same from commadn line

Version-Release number of selected component (if applicable):
beaker-client-0.18.2-1.el7eng

How reproducible:
100%

Steps to Reproduce:
1. bkr clear-netboot $SERVER

Actual results:
No possibility to clear netboot only

Expected results:
Possibility to clear netboot only

Additional info:

Comment 1 Jiri Jaburek 2015-01-13 15:50:13 UTC
Perhaps just adding --action=none under system-power, so that we could do "bkr system-power --clear-netboot --action=none" would be cleaner.

Comment 2 Amit Saha 2015-01-13 22:59:26 UTC
(In reply to Jiri Jaburek from comment #1)
> Perhaps just adding --action=none under system-power, so that we could do
> "bkr system-power --clear-netboot --action=none" would be cleaner.

Or we could just make "--action" optional when "--clear-netboot" is specified.

Comment 3 Dan Callaghan 2015-01-13 23:44:41 UTC
(In reply to Amit Saha from comment #2)
> Or we could just make "--action" optional when "--clear-netboot" is
> specified.

--action already has a default value of reboot so if it's not given, the action will be reboot. We can't change the default now (compatibility) and it would be quite confusing for the default to be different depending on the presence of some other option, I think.

Clearing netboot config is not really related to system power at all, except that it's sometimes something you want to do at the same time, so we already have --clear-netboot and the corresponding Clear Netboot button in the web UI.

So I agree that the nicest option is to allow: bkr system-power --clear-netboot --action=none, as per Jiri's suggestion in comment 1.

Comment 4 matt jia 2015-05-06 01:39:33 UTC
On Gerrit:

   http://gerrit.beaker-project.org/#/c/4200/

Comment 5 Dan Callaghan 2015-05-12 03:29:59 UTC
This bug fix is included in beaker-client-21.0-0.git.23.0983f62 which is currently available for download here:

https://beaker-project.org/nightlies/develop/

Comment 6 matt jia 2015-05-12 03:48:14 UTC
Verify Steps:

1. set up beaker client with beaker-client-21.0-0.git.23.0983f62

2. bkr system-power --clear-netboot --action=none <system.fqdn>

3. go to the system page and click on the Power tab to check whether the clear_netboot command is enqueued.

Comment 9 Dan Callaghan 2015-07-14 08:04:55 UTC
Beaker 20.2 has been released.


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