|
Post by mrrobert on Jan 8, 2024 4:37:16 GMT
Hi,
I'm referring to Power.v1_7_1.json schema which defines the LimitInWatts property:
"LimitInWatts": {
"description": "The power limit, in watts. If `null`, power capping is disabled.",
"longDescription": "This property shall represent the power capping limit, in watts, for the resource. If `null`, power capping shall be disabled.",
"minimum": 0,
"readonly": false,
"type": [
"number",
"null"
],
"units": "W"
}
My understanding: - If User PATCH LimitInWatts to a number value, this means the power limit setting is activated (like user uses ipmi dcmi activate command) - If User PATCH LimitInWatts to a null type, this means the power limit setting is de-activated (like user uses ipmi dcmi deactivate command)
Please help to correct me.
Thanks
|
|
|
Post by jautor on Jan 8, 2024 4:48:44 GMT
Hi, I'm referring to Power.v1_7_1.json schema which defines the LimitInWatts property: "LimitInWatts": {
"description": "The power limit, in watts. If `null`, power capping is disabled.",
"longDescription": "This property shall represent the power capping limit, in watts, for the resource. If `null`, power capping shall be disabled.",
"minimum": 0,
"readonly": false,
"type": [
"number",
"null"
],
"units": "W"
}
My understanding: - If User PATCH LimitInWatts to a number value, this means the power limit setting is activated (like user uses ipmi dcmi activate command) - If User PATCH LimitInWatts to a null type, this means the power limit setting is de-activated (like user uses ipmi dcmi deactivate command) Please help to correct me. Thanks
That is correct. Note that in EnvironmentMetrics (the schema which replaced the deprecated Power schema), the PowerLimitWatts object has a ControlMode property that more explicitly shows the state of the power capping functionality.
Jeff
|
|
|
Post by mrrobert on Jan 8, 2024 6:37:42 GMT
That's great! Thanks, Jeff for quickly feedback.
|
|
|
Post by arunkumar47 on Jan 30, 2024 8:40:30 GMT
Hi jeff,if we implement above feature both ipmi and redfish out of sync.
- If User PATCH LimitInWatts to a number value (The value Reflect in Redfish but doesnot activate until we use ipmi dcmi activate command,By Default ipmi dcmi power deactivate)
NOTE: Already some default value present in PowerLimitInWatts.
kindly help to share your suggestion.
|
|
|
Post by mraineri on Jan 30, 2024 14:50:41 GMT
Given the semantics of the PATCH operation on this property, you'd have to activate the power limit behind the scenes. Keep in mind, Redfish and IPMI aren't necessarily one-for-one; if you need to support both protocols, there will be cases where some operations in Redfish will cause multiple things to happen in IPMI, and vice versa.
|
|
|
Post by arunkumar47 on Jan 30, 2024 14:57:58 GMT
Given the semantics of the PATCH operation on this property, you'd have to activate the power limit behind the scenes. Keep in mind, Redfish and IPMI aren't necessarily one-for-one; if you need to support both protocols, there will be cases where some operations in Redfish will cause multiple things to happen in IPMI, and vice versa. Thanks,for your quick response, now we need to support this feature from redfish side right?
|
|
|
Post by jautor on Jan 30, 2024 15:29:01 GMT
Given the semantics of the PATCH operation on this property, you'd have to activate the power limit behind the scenes. Keep in mind, Redfish and IPMI aren't necessarily one-for-one; if you need to support both protocols, there will be cases where some operations in Redfish will cause multiple things to happen in IPMI, and vice versa. Thanks,for your quick response, now we need to support this feature from redfish side right? Given the direction of customer requirements for the power limit functionality, and the Redfish support expectations from OCP and other groups, that would be my recommendation... Relying on any IPMI-over-LAN functionality as a solution for the customer is not a good assumption at this point. Jeff
|
|