Description of problem: If a node is in power off state, clicking on "Deprovision" yields no results, and the option to delete the baremetal node is totally missing Version-Release number of selected component (if applicable): 4.4.0-0.nightly-2020-04-18-095545 How reproducible: 100% Steps to Reproduce: 1. Power off a baremetal host without doing a graceful shutdown. It should still be in "Provisioned" state, and powered off. 2. Try to delete the bmh - but the command to delete the host is not even available in the kebab menu. 3. From the kebab menu, click on "Deprovision". Nothing happens. Actual results: Now there is no more "Deprovision" and also no way to delete the host.
I also can't start maintenance on a powered off host; the status changes to "Starting maintenance", and just hangs on that and the node is not powered on.
Deleting the host is disabled because it is not safe to do so. Deleting the host resource which has node assigned and runs workloads would lead to inconsistency. Only deprovisioned host can be deleted. We'll investigate deprovision action, most likely the deprovision is stuck due to host being off. I think we should disable deprovision action for powered off host.
Checked on IPI BM cluster with payload 4.5.0-0.nightly-2020-06-11-183238. Power off a baremetal host, check the host's action list, there is no "Deprovision" item now. Delete the host by clicking "Delete Bare Metal Host", could succeed.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409