| Summary: | Running build's duration is not correct on build page when local time is not sync with server | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Xingxing Xia <xxia> | ||||
| Component: | Management Console | Assignee: | Jessica Forrester <jforrest> | ||||
| Status: | CLOSED WONTFIX | QA Contact: | Yadan Pei <yapei> | ||||
| Severity: | low | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.3.0 | CC: | aos-bugs, jokerman, mmccomas, spadgett, tmuma | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2019-10-28 13:53:28 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: | |||||
| Attachments: |
|
||||||
|
Description
Xingxing Xia
2016-08-31 03:35:41 UTC
*** Bug 1377868 has been marked as a duplicate of this bug. *** The CLI only needs to make a single request, the API is calculating duration at the time of the GET request and returning it. The console on the other hand is getting the build and then opening a websocket to watch for changes to the build. We get the initial value of duration calculated by the API, but since there is no change to actual stored data no watch event is fired so we never get an updated duration from the server. In 4.x, we calculate the build duration using the value from the API, so this should be a non-issue: https://github.com/openshift/console/blob/88dc7f8343826e710e052ec559657648cd97a07a/frontend/public/module/k8s/builds.ts#L42-L56 |