-
Notifications
You must be signed in to change notification settings - Fork 4
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
support reading sensors that need to be bridged to ipmb address #6
Conversation
I am an absolute fan of these contributions, thank you! Very cool to see that you can get it to work this well.
I've made some comments regarding this, hopefully helping a little :) A helper function and/or a well-placed
I don't think there are any soundness issues (hopefully IPMI just returns errors if we're sending incorrect stuff), but keeping it around seems relatively nonsensical. Would opt for migrating to
Unfortunately I don't know either. It looks fine to me, so I suggest we just roll with this for now, and bug-fix when/if someone complains! I've lost access to my IPMI-capable system so I have a hard time checking, too. Also I have been slightly pedantic with the review, but hope the comments are insightful! |
Oh yeah, and I've added a |
…for request target
I'm a huge fan of the library! We would have likely ended up shelling out to ipmitool otherwise, which I wasn't happy with for a whole host of reasons.
Done. I didn't mean soundness issues in the UB/safety sense, more that calling GetSensorReading for a duplicate sensor number would give you a reading for a different sensor that probably even has a different unit.
We're expanding our catalog of test hardware and we'll take a look as soon as we see it
We might be able to help with that. |
bb2ed73
to
0c3cad0
Compare
In 0c3cad0 I've refactored |
This should be ready for re-review now. If you're happy with these changes as they are, the only other outstanding issue I'm aware of is RCMP support. Unfortunately the box I'm testing on doesn't have its BMC LAN connected and that probably won't be addressable until after the weekend. |
Had a few more minor comments, this is coming along very nicely! One more round and it should be good to go.
Ah alright, yes I agree 100%.
Awesome!
You had my curiosity... but now you have my attention! If this is a serious offer (I imagine it's remote access or something, not hoping for you to send me hardware 😛 ), please contact me at [email protected] |
I think we have it the right way around, for now. As far as I understand it, calling |
On some newer generations of HP hardware (output below is from an ML110 Gen10) we are not able to read all the sensors because they are not reachable directly from the BMC - we need to request that the request be bridged to the actual sensor.
With this change we are now able to read all the sensors succesfully.
(there's something wrong with power supply 1 on this system, ipmitool shows the same numbers)
h2. Questions
send()
. Normally I'd create an enum and match on the variants, but I've run into issues before with unsafe code and stuff getting moved unexpectedly, so I wouldn't be confident it was sound.for_sensor()
around at all? At least one of our test systems (the Gen10 ML110 system again) re-uses the same sensor number for two different target addresses so I'm not entirely sure it's sound to just query the BMC with just the sensor number.Thanks again for taking the time to review - happy to address any comments or feedback.