Description of problem:
I created a new host under "Bare Metal Hosts", with bogus ipmi details of something which doesn't exist. The host was created and was stuck in "powering on" state. I wanted to delete it - but the "Delete" command was not available in the kebab menu of the host.
In addition, the host was created in the "default" namespace, which means that it won't get touched by the operator. We need the ability to delete such hosts.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Navigate to the bare metal hosts page and make sure you're viewing "all projects"
2. Create a baremetal host with bogus IPMI details, for example I used 'ipmi://[2001:0db8:85a3:0000:0000:8a2e:0370:7334]:6032'
3. Try deleting this host from the GUI
No option to delete
Checked on 4.4 cluster with payload: 4.4.0-0.nightly-2020-05-18-164758
On "Bare Metal Hosts" page, no matter the host status, could not find "delete" item in kebab list.
Where can we see "delete" item?
Created attachment 1690540 [details]
Created attachment 1690541 [details]
Host which runs workloads or is in progress state (e.g. registering) can not be deleted. To delete the host, it needs to be deprovisioned first.
Note that this bug was originally open for allowing removing host which was in 'unknown' state, which is now fixed.
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.