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:
Perhaps just adding --action=none under system-power, so that we could do "bkr system-power --clear-netboot --action=none" would be cleaner.
(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.
(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.
On Gerrit: http://gerrit.beaker-project.org/#/c/4200/
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/
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.
Beaker 20.2 has been released.