Bug 1833222 - Metering Report YAML still has old starting and ending date
Summary: Metering Report YAML still has old starting and ending date
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Management Console
Version: 4.5
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 4.5.0
Assignee: Zac Herman
QA Contact: Yadan Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-08 05:53 UTC by Yadan Pei
Modified: 2020-07-13 17:36 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-13 17:36:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 5391 0 None closed Bug 1833222: Update yaml template meter example to current year 2020-08-31 10:27:16 UTC
Red Hat Product Errata RHBA-2020:2409 0 None None None 2020-07-13 17:36:28 UTC

Description Yadan Pei 2020-05-08 05:53:18 UTC
Description of problem:
metering Report example yaml still use old start date 2019-01-01T00:00:00Z and end date 2019-12-30T23:59:59Z

Version-Release number of selected component (if applicable):
4.5.0-0.nightly-2020-05-07-144853

How reproducible:
Always

Steps to Reproduce:
1. admin user subscribe metering operator
2. Administration -> Chargeback -> click on 'Create Report' button


Actual results:
2. example YAML is 
apiVersion: metering.openshift.io/v1
kind: Report
metadata:
  name: namespace-memory-request
  namespace: openshift-metering
spec:
  query: namespace-memory-request
  reportingStart: '2019-01-01T00:00:00Z'
  reportingEnd: '2019-12-30T23:59:59Z'
  runImmediately: true


Expected results:
reportingStart should be '2020-01-01T00:00:00Z' and reportingEnd should be '2020-12-30T23:59:59Z'

Additional info:

Comment 1 Zac Herman 2020-05-08 21:55:13 UTC
Will investigate in next sprint.

Comment 4 Yadan Pei 2020-05-13 02:33:34 UTC
Now the metering report YAML is 

apiVersion: metering.openshift.io/v1
kind: Report
metadata:
  name: namespace-memory-request
  namespace: openshift-metering
spec:
  query: namespace-memory-request
  reportingStart: '2020-01-01T00:00:00Z'
  reportingEnd: '2020-12-31T23:59:59Z'
  runImmediately: true

Verified on 4.5.0-0.nightly-2020-05-12-195228

Comment 5 errata-xmlrpc 2020-07-13 17:36:10 UTC
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-2020:2409


Note You need to log in before you can comment on or make changes to this bug.