Uploaded image for project: 'Subscription Watch'
  1. Subscription Watch
  2. SWATCH-1399

[Regression] Tally API show rounded-up monthly total has a discrepancy from the instance table total

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Environment : Stage

      Slack thread: https://redhat-internal.slack.com/archives/C01F7QFNATC/p1687529372306469

       

      As a part of https://issues.redhat.com/browse/SWATCH-1150, we did rounding of each day tally, rather than only monthly tally.

      Example :  If usage is generating on daily basis of 2.2 for 6 days, which we will round off to 3 in tally for each day. Monthly total will be 3*6=18 in tally, while system table will show 2.2*6 = 13.2.

       

      Reproducer steps:

      1 .Add metering events for 21 June of 2.2 cores usage for any payg product

      2. Repeat step 1 for 22 June, 23 June, ... consecutive days

      3. Do tally for all days

      4. Verify monthly total is greater than expected.

       

      On Red Hat Openshift dedicated, there is a significant difference between the total (core hours and instance hours) reported in the graph and the total of the instance table.

      This difference seems related to the rounding made by tally API.

      A full discussion on this can be found in the following Slack thread.
      https://redhat-internal.slack.com/archives/C01F7QFNATC/p1687534053859649?thread_ts=1687529372.306469&cid=C01F7QFNATC

       

              khowell@redhat.com Kevin Howell
              dmaranha@redhat.com Diego de Oliveira Maranhao
              Sumedh Sidhaye Sumedh Sidhaye
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: