Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1181700

Summary: [RFE] should provide clear netboot command without the need of restart
Product: [Retired] Beaker Reporter: Miroslav Vadkerti <mvadkert>
Component: command lineAssignee: matt jia <mjia>
Status: CLOSED CURRENTRELEASE QA Contact: tools-bugs <tools-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: aigao, asaha, dcallagh, dowang, jjaburek, mjia
Target Milestone: 20.2Keywords: EasyFix, FutureFeature, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-14 08:04:55 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:

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.