Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDRRepository: implement two-part reads #66

Merged
merged 6 commits into from
Feb 9, 2024

Conversation

fialhopm
Copy link
Contributor

Update how SDRRepository walks the repo so that the SDR key fields and body are only requested if the SDR type is FullSensorRecord. This increases the number of commands needed to read an SDR repo, but it's necessary to work around BMCs that occasionally return a malformed packet when the request's Length is 0xff.

Discussed here.

pkg/ipmi/reserve_sdr_repository.go Outdated Show resolved Hide resolved
pkg/ipmi/sdr.go Outdated Show resolved Hide resolved
sdr_repository.go Outdated Show resolved Hide resolved
sdr_repository.go Show resolved Hide resolved
sdr_repository.go Show resolved Hide resolved
sdr_repository.go Show resolved Hide resolved
pkg/ipmi/sdr.go Outdated Show resolved Hide resolved
sdr_repository.go Outdated Show resolved Hide resolved
sdr_repository.go Outdated Show resolved Hide resolved
sdr_repository.go Outdated Show resolved Hide resolved
@gebn gebn merged commit 22936fd into gebn:master Feb 9, 2024
1 check passed
@gebn
Copy link
Owner

gebn commented Feb 9, 2024

Thank you! That was a non-trivial PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants