-
Notifications
You must be signed in to change notification settings - Fork 882
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
PreTag openbmc/skeleton#43 - Set Less Than Minimum PowerCAP #557
Comments
I don't really understand what the issue is asking. Is this about PowerCap sensors not being present? Or is this about settings not being set properly? The latest comment makes it sound like you are expecting some sort of verification of invalid settings, which is not currently implemented. #552 will give us the ability to do that. |
the test case was written to check if invalid settings could be set. The max for pcap is 1000 so teh test was to set it above that level. It allowed a value of 1010. Hence the failure. Same with setting the max pcap to abcdefg. So there is no validation code in the pcap code. If you have input validation handled via issue 552 then issue 557 should wait until 552 is ready |
Thanks will keep an eye on #552 |
The power cap value was eventually implemented in the sensors path after the placeholder in the settings file was created (with its arbitrary default value of 100). |
another for powercap Not able to set here /org/openbmc/sensors/host/powercap/action/setValue The other which we see in this issue ,we are able to Set here /org/openbmc/settings/host0,power_cap So there seems not to be clear until this is streamlined.. @adamliyi any thoughts ? |
Closing this as the implementation are working |
@gkeishin commented on Tue May 31 2016
Please refer to mkumatag/openbmc-automation#61
for detail description...
Our concern was if this is some sort of REST server code bug returning Error even when that PowerCap property existing on the system..
If by design ( openbmc/skeleton#43 ) if itis not going to return HTTP OK ... then, why is this return HTTP OK here on Palmetto and throwing error on Barrelleye when PowerCap Property exist on both the systems..
Example:
On Palmetto :
openbmc-automation$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST -d "{"data": [ 1900 ]}" http://9.3.164.177/org/openbmc/sensors/host/PowerCap/action/setValue
{
"data": null,
"message": "200 OK",
"status": "ok"
}
On Barrelleye:
openbmc-automation$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST-d "{"data": [ 1900 ]}" https://9.3.23.24/org/openbmc/sensors/host/PowerCap/action/setValue
{
"data": {
"description": "org.openbmc.objectmapper.Error.NotFound: path or object not found: /org/openbmc/sensors/host/PowerCap"
},
"message": "404 Not Found",
"status": "error"
}
@gkeishin commented on Thu Sep 08 2016
We are seeing the powercap setting errors now frequently.
Tests . Test Generic Conf
7 Test 4 pass 3 3 failed
out of 7 , 3 are failing
/org/openbmc/settings/host0, power_cap
/org/openbmc/settings/host0, boot_flags
We would like to know what are the valid policies and what are not from those attributes..
The text was updated successfully, but these errors were encountered: