| Summary: | Build status will report "running for -1h" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Will Gordon <wgordon> | ||||
| Component: | Management Console | Assignee: | Jessica Forrester <jforrest> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Yadan Pei <yapei> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 3.3.1 | CC: | aos-bugs, dmcphers, jokerman, mmccomas, tdawson | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Cause: Relative time and duration calculations were not preventing negative numbers from showing.
Consequence: Under normal client and server clock situations negative numbers would not happen. However when there was clock skew between the browser client and the server then negative times could appear on objects like builds in the console.
Fix: Prevent relative times and durations from returning negative values by forcing them to zero.
Result: Negative relative times and durations will not appear in the console.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2017-04-12 19:18: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
Will Gordon
2016-12-13 19:31:13 UTC
Created attachment 1231317 [details]
Image of problem in action
Negative durations should no longer appear, this has already been fixed for origin 1.5 actually we fixed one of the duration filters but not the other. will fix the other one Commit pushed to master at https://github.com/openshift/origin-web-console https://github.com/openshift/origin-web-console/commit/9b35ca7feb2804913f006b79098d43cd050302bc Bug 1404417 - Don't show negative durations, they are always due to client clock skew This has been merged into ocp and is in OCP v3.5.0.7 or newer. Checked against v3.5.0.7+390ef18 When Build is in New & Pending status, Duration will not be calculated, neither will be shown in table(See attachment NewPending) Duration will be calculated from 0 seconds when builds changes to Running(See attachment PendingtoRunning) Move to VERIFIED *** Bug 1432158 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:0884 |