Description of problem: baremetalhost provides 2 states: 'provisioning.state' and 'operationaStatus'. Currently getBaremetalHostStatus function gives preference to provisioning.state which is not correct. The getBaremetalHostStatus should compare the two and derive a proper BMH status. e.g. operationalStatus: error + provisioning.state: Registering = 'registration error' + error message.
Verified
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-2019:2922