-
Notifications
You must be signed in to change notification settings - Fork 55
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
Server power operations page is not updated correctly #102
Comments
I've also observed this issue. Don't know the real reason for this, but I've found out that adding
Hope this can help to track the real problem. |
I solved the problem by replace setTimeout() by setInterval() function to after the interval of 5 seconds time, then repeating continuously at that interval until serverStatus value matches the passed argument then Stop watching status changes and resolving Promise:
Any better suggestions for the above change? |
can you explain why setTimeout does not work, @HuyLeAnh? |
I found the explanation about setTimeout vs setInterval at https://www.educba.com/settimeout-vs-setinterval/ |
After reboot or shutdown CPU via WebUI, the Server status does not update. The current implementation uses setTimeout() with a timeout of 5 minutes, it means the server power operations page reloads after 5 minutes. The issue is that the power status has really changed but has not been updated on the Server status because of the timeout. Fix the issue by changing setTimeout() to setInterval(). The Server status is updated after each 5 seconds. Fixes: #102 Reference: https://www.educba.com/settimeout-vs-setinterval/ Tested: 1. Power off the CPU via WebUI. 2. WebUI shows Server status as off and a power on button. Change-Id: I31359d970c2aa42f29115102ddbc9cbe85fb168d Signed-off-by: Hieu Huynh <[email protected]> Signed-off-by: HuyLe <[email protected]>
Hi, Will this part be merged into master code? In this page, "Refresh" button seems not work. Will this commit resolve the problem? |
@awan119 Can you check with patch found in Gerrit -review: https://gerrit.openbmc.org/c/openbmc/webui-vue/+/64481 |
@awan119 This commit does not resolve the "Refresh" problem. The strange thing is that webui-vue sends /redfish/v1/Systems/system request but does not use it to update the webui. |
Hi Kees, I put
|
Describe the bug Do power operation from WebUI's Server power operations page will have the selected operation executed and change to the information page "There are no options to display ...". However, the page is stuck on this without returning to the normal page. Click on the Refresh button or click to other page and then return this page do not help. Can only go back to the normal page with the browser's Reload.
To Reproduce Steps to reproduce the behavior:
There are no options to display while a power operation is in progress. When complete, power operations will be displayed here.
Expected behavior at step 7 and 10, Operations page has options for Host power control
Screenshots
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: