Bug 1358619
Summary: | recipe page reservation tab: after extending the reservation, watchdog time changes 10-20 seconds later | |||
---|---|---|---|---|
Product: | [Retired] Beaker | Reporter: | Dan Callaghan <dcallagh> | |
Component: | web UI | Assignee: | Anwesha Chatterjee <achatter> | |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Dan Callaghan <dcallagh> | |
Severity: | low | Docs Contact: | ||
Priority: | unspecified | |||
Version: | 23 | CC: | achatter, dcallagh, jorris, mjia, rjoost | |
Target Milestone: | 24.4 | Keywords: | Patch, Triaged | |
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | If docs needed, set a value | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1500142 (view as bug list) | Environment: | ||
Last Closed: | 2017-10-03 03:57:36 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1500142 |
Description
Dan Callaghan
2016-07-21 07:34:35 UTC
The second patch here is to address a different bug in the same area of code that I stumbled upon while testing the bug described here. The countdown timer for the watchdog (which is placed in the recipe runtime status view) while counting down, does not set the time_remaining_seconds value to the model. This means that the view has an incorrect representation of the (true) time remaining until the model is next autofetched (which only happens every 30 seconds) So what this means from a user PoV is that when "Extend the Reservation" is clicked, the modal appears to be populated with a different time to the one that appears in the UI, it basically displays the time that was last fetched from the recipe model upon autofetch. So when the user sees a time of (say) 23:59:55, and tries to set it back to (say) 24:00:00, the modal may still display 86400 (i.e. 24:00:00) which is not true. And upon saving changes the view fails to re-render as the backbone view does not get a "changed" event as according to the view, the change does not happen. One solution to this is to have the timer set the time to the model as it counts down (it would also help to have the countdown timer in the model rather than restricted to a view). Verified using a recipe in Reserved state. Click "Extend the reservation", modal is pre-filled with 86369 seconds. Close modal, click it again. Pre-filled with 86344 seconds. => Verified that the modal is using the current watchdog timer counting down. Fill in 86400 seconds and click "Save Changes". The button spins for a bit, and then when the modal is closed the watchdog time remaining shows 23:59:59. => Verified that the time remaining is kept in sync with the extension. Beaker 24.4 has been released. |