Bug 1464116

Summary: Collect container metrics is done until time.now instead of until end-time
Product: Red Hat CloudForms Management Engine Reporter: Yaacov Zamir <yzamir>
Component: C&U Capacity and UtilizationAssignee: Yaacov Zamir <yzamir>
Status: CLOSED CURRENTRELEASE QA Contact: Gilad Shefer <gshefer>
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: agrare, cpelland, fsimonce, jhardy, obarenbo, snaim
Target Milestone: GAKeywords: TestOnly, ZStream
Target Release: 5.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: container:c&u
Fixed In Version: 5.9.0.1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1469560 (view as bug list) Environment:
Last Closed: 2018-03-06 14:52:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: Container Management Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1469560    

Description Yaacov Zamir 2017-06-22 13:01:03 UTC
Description of problem:


When queering containers metrics data from Hawkualr we query data until now instead of until endtime.

How to reproduce:
1. open consule "rails c" and run
  some_container = [ some container with Hawkualr metrics ]
  some_container.perf_capture('realtime', start_time = 10.minutes.ago, end_time = 9.minutes.ago)

What we get:
we get metrics until now

What we should get:
we get metrics until 9.minutes.ago

Comment 2 Yaacov Zamir 2017-06-22 13:30:15 UTC
submitted upstream:
https://github.com/ManageIQ/manageiq-providers-kubernetes/pull/49