Repository navigation
fix(ipmi): read the SDR when the BMC grants an unadvertised reservation - #8000
Open
viniciusferrao wants to merge 4 commits into
Open
viniciusferrao wants to merge 4 commits into
viniciusferrao wants to merge 4 commits into
Conversation
When Get Device ID or a step of the SDR read failed, the plugin reported the error through sendoutput. Seven of these calls passed an array reference, which sendoutput takes as its return code, so the error was dropped. The other five named the node BADCODE. A refused SDR reservation also went on to read records with no reservation ID. Report these errors with sendmsg against the node, as the rest of the plugin does, and stop after a refused reservation.
Each step of the device ID and SDR read reports a timeout as an error of the node and stops, and a refused SDR reservation sends no Get SDR request.
rinv, rvitals and reventlog stopped with "SDR reservation unsupported." when Get SDR Repository Info did not set the reservation bit. An OpenBMC build clears that bit but grants Reserve SDR Repository, so these commands failed on a server that ipmitool reads. Send Reserve SDR Repository in every case. When the bit is clear and the BMC rejects the command as invalid, the error stays "SDR reservation unsupported." Other refusals report their completion code.
Replay the Get SDR Repository Info reply of an OpenBMC build that clears the reservation bit. The read asks for the reservation and uses the ID it gets. An invalid command refusal still reports "SDR reservation unsupported." against the node, a busy or privilege refusal reports its completion code, and a BMC that sets the bit is asked as before.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
rinv,rvitalsandreventlogstop with "SDR reservation unsupported." when Get SDR Repository Info leaves the reservation bit clear. An OpenBMC build clears that bit but grants Reserve SDR Repository, andipmitoolreads its SDR.Send Reserve SDR Repository in every case. When the bit is clear and the BMC rejects the command as invalid, the error stays "SDR reservation unsupported." Other refusals report their completion code.
There is also a fix for the errors of the device ID and SDR read. Seven of them were passed to
sendoutputas an array reference, which it takes as its return code, so the error was dropped. The other five named the nodeBADCODE. They now go throughsendmsgagainst the node, and a refused reservation stops the read instead of sending Get SDR without a reservation ID.Thanks-to: SpacemiT (riscv64 test hardware)