Deleted conductors are never removed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ironic |
Triaged
|
Medium
|
Unassigned |
Bug Description
We retired some conductors together with the corresponding hardware nodes. The ironic nodes were deleted, the compute service were deleted and the conductors itself were stopped & deleted as well. However, the conductors are still listed in `openstack baremetal conductor list` as Alive = False. There does not seem to be a way to remove the conductors from there. Deleting from the D should work, but was not yet tested. Asking about in IRC it was suggested to have a periodic task that cleans up conductors that are dead for time X.
```
os baremetal conductor list | grep -v True
+------
| Hostname | Conductor Group | Alive |
+------
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
| ironic-
+------
```
These are all conductors that no longer exist. The first are all from some testing, I'm not sure where the ipmi ones are from, they might be ancient, but I can't remember every using them and the last three are all from hardware we decommissioned in the last ~6- month or so.
Considering this a bug instead of an RFE as it seems like leaving these around forever was a bad design decision.