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

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

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • Critical

      Environment : Stage

       

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

      There is another bug reported related to the same issue in other products.
      https://issues.redhat.com/browse/SWATCH-1399

       

      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 01 July of 2.2 cores  and 3.3 instance_hours usage for ROSA

      2. Repeat step 1 for 02 July, 03 July, ... consecutive days

      3. Do tally for all days

      4. Verify monthly total is greater than expected.

       

      On Red Hat Openshift ROSA, there is a significant difference between the total (vCPU hour usage and Control plane hour usage) reported in the graph and the total of the Current monthly instances.

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

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

            awood1@redhat.com Alex Wood
            dmaranha@redhat.com Diego de Oliveira Maranhao
            Trayvon McKnight Trayvon McKnight
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: