Comments (5)
ACK, yeah, that looks like a really unfortunate side effect that I certainly didn't expect when merging that code. In terms of priority, I think we did get that right. A failing service validator effects EVERY platform, so if the two requirements are mutually exclusive, I'd much rather have a passing service validator than have sensor override (which I don't think is actually enabled on anything but downstream platforms).
With that said, lets see if we can get it working for both. I think to fix that, it's going to require us to go back to building the entire sensor tree, to determine the index of the sensor in question, then firing it to that path. Let me know if you need help rearranging the code.
from bmcweb.
@carsonlab suggested we try to modify 3e35c76. As the only requirement is that MemberId
needs to match the end of URI, could we just make the end of URI be the sensor name and preserve the old MemberId
format? That way we wouldn't need to rebuild the sensor tree to map MemberId
into a Name
.
from bmcweb.
That's probably reasonable. Please make sure the validator passes on whatever change we make.
from bmcweb.
As a short term fix, reverting 3e35c76 and c71d612 works.
curl localhost/redfish/v1/Chassis/Tray/Thermal#/Fans
...
{
"@odata.id": "/redfish/v1/Chassis/Tray/Thermal#/Fans/0",
"@odata.type": "#Thermal.v1_3_0.Fan",
"MaxReadingRange": 100,
"MemberId": "fan0_pwm",
"MinReadingRange": 0,
"Name": "fan0 pwm",
"Reading": 29,
"ReadingUnits": "Percent",
"Status": {
"Health": "OK",
"State": "Enabled"
}
},
...
curl --data '{"Fans":[{"MemberId": "fan0_pwm", "Reading": 50}]}' -X PATCH localhost/redfish/v1/Chassis/Tray/Thermal#/Fans/
{
"@odata.id": "/redfish/v1/Chassis/Tray/Thermal",
"@odata.type": "#Thermal.v1_4_0.Thermal",
"Fans": [],
"Id": "Thermal",
"Name": "Thermal",
"Temperatures": []
}
curl localhost/redfish/v1/Chassis/Tray/Thermal#/Fans
...
{
"@odata.id": "/redfish/v1/Chassis/Tray/Thermal#/Fans/0",
"@odata.type": "#Thermal.v1_3_0.Fan",
"MaxReadingRange": 100,
"MemberId": "fan0_pwm",
"MinReadingRange": 0,
"Name": "fan0 pwm",
"Reading": 50,
"ReadingUnits": "Percent",
"Status": {
"Health": "OK",
"State": "Enabled"
}
},
...
Based on the second commit, shouldn't have it "fixed" sensor overrides? But instead its causing the dbus error I mentioned previously.
from bmcweb.
This was resolved with https://gerrit.openbmc.org/c/openbmc/bmcweb/+/64528
from bmcweb.
Related Issues (20)
- Not able to get the Active Directory and OpenLDAP user's RoleId HOT 2
- Patch request for any URI with If-Match with value of Etag in request header causes the BMCWEB to crash HOT 9
- Misusage of deleteAndCreateIPAddress function HOT 2
- QEMU:Romulus: 500 returned on /redfish/v1/Systems/system/ during CI testing HOT 3
- Can not start bmcweb locally HOT 1
- MetricReportDefinitions POST failed HOT 7
- How do I test the security of the web HOT 2
- IPAddresses have field's value 0.0.0.0 HOT 9
- URL arg number assert should contain 5 HOT 6
- Json content-type "application/json;charset=utf-8" without space separator is not allowed HOT 4
- Task Monitor URL doesn't match the DMTF redfish specification format. HOT 1
- Webui pages intermittently not loading, "0x0 Failed to capture connection" logged HOT 14
- can not print log in lamba HOT 2
- `Roles` should be exposed in Redfish Session object (introduced in v1.7.0) HOT 4
- Test User Account HOT 6
- $metadata returns 401 if no authentication is provided
- Redfish Protocol Validator fails for SSE request HOT 2
- Login Web Cant redirect HOT 1
- Redfish SessionService/Sessions POST returns empty string for Role HOT 2
- How to implement SimpleUpdate HTTP Pull for D-Bus interface flow? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bmcweb.