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

testing test_powersupply_reading #2227

Open
justin0309 opened this issue Nov 17, 2023 · 4 comments
Open

testing test_powersupply_reading #2227

justin0309 opened this issue Nov 17, 2023 · 4 comments

Comments

@justin0309
Copy link

justin0309 commented Nov 17, 2023

I'm testing test_powersupply_readings.robot

It is necessary to read powerinputwatts and poweroutputwatts, but I refer to the correction of the issue and set LABEL_power1=psu1_input, which contains the string of input, but powersupply still cannot be displayed.

Expected to appear:
image

actually:
curl -k -H "X-Auth-Token: $token" -X GET https://${bmc}/redfish/v1/Chassis/chassis/Power/

image

I referred to
/meta-inspur/meta-fp5280g2/recipes-phosphor/inventory/phosphor-inventory-manager/associations.json
meta-inspur/meta-fp5280g2/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/ahb/apb/bus@1e78a000/i2c-bus@400/power-supply@58.conf

@gkeishin
Copy link
Member

@sarandev3 can u take a look

@gkeishin
Copy link
Member

@justin0309 This test was written based on the Open power Witherspoon system.. so it is likely that the power module implementation could be the reason why the redfish objects are not showing/populating those power metrics data.

Probably @spinler can help you there with your queries on this one.

@justin0309
Copy link
Author

justin0309 commented Nov 20, 2023

@gkeishin
1.Is the Powersubsystem in the test items of Systems.Test Powersubsystem Settings also for the Open power Witherspoon system?
2.According to this situation, is it only a machine that supports IBM? Or what can I do to pass these two tests?
3. test_alternate_fan_settings This test seems to be also for Witherspoon system.
4. Or is there somewhere that can tell me that these test projects only support IBM systems?

@gkeishin
Copy link
Member

gkeishin commented Nov 23, 2023

The test should be generic enough to run on all systems but we will need to tweak it to make it work based on the systems configuration you are working with since you know better on the system support and what is needed. You can take a look and see how to plugin those extra changes to it or write a new one by taking a look at the existing test cases..

Mostly the openpower/ directory are POWER-based systems specifics in general like Witherspoon.

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

No branches or pull requests

2 participants