Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix metering report for resources without rollups #17836

Merged

Conversation

lpichler
Copy link
Contributor

@lpichler lpichler commented Aug 10, 2018

Metering reports are for resources with rollups. But for SCVMM there is exception. Resource from SCVMM are also considered in metering reports even if that there are metric rollups used.

This fix is adding sum method to fix the error message.

Links

https://bugzilla.redhat.com/show_bug.cgi?id=1595696

@miq-bot assign @gtanzillo
@miq-bot add_label chargeback, bug

@lpichler
Copy link
Contributor Author

@miq-bot gaprindashvili/yes

@miq-bot
Copy link
Member

miq-bot commented Aug 10, 2018

@lpichler unrecognized command 'gaprindashvili', ignoring...

Accepted commands are: add_label, add_reviewer, assign, close_issue, move_issue, remove_label, rm_label, set_milestone

Copy link
Member

@gtanzillo gtanzillo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@lpichler lpichler force-pushed the fix_metering_report_without_rolups branch from 7d44c5c to 486c3d3 Compare August 14, 2018 14:16
@miq-bot
Copy link
Member

miq-bot commented Aug 14, 2018

Checked commit lpichler@486c3d3 with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0
2 files checked, 0 offenses detected
Everything looks fine. 🍰

@gtanzillo gtanzillo added this to the Sprint 93 Ending Aug 27, 2018 milestone Aug 14, 2018
@gtanzillo gtanzillo merged commit b57f267 into ManageIQ:master Aug 14, 2018
@lpichler lpichler deleted the fix_metering_report_without_rolups branch August 14, 2018 16:00
@lpichler
Copy link
Contributor Author

@miq-bot add_label gaprindashvili/yes

simaishi pushed a commit that referenced this pull request Sep 11, 2018
…olups

Fix metering report for resources without rollups
(cherry picked from commit b57f267)

https://bugzilla.redhat.com/show_bug.cgi?id=1623563
@simaishi
Copy link
Contributor

Gaprindashvili backport details:

$ git log -1
commit 4736700ea8631092803ee622bdecda64790eb11d
Author: Gregg Tanzillo <gtanzill@redhat.com>
Date:   Tue Aug 14 11:28:57 2018 -0400

    Merge pull request #17836 from lpichler/fix_metering_report_without_rolups
    
    Fix metering report for resources without rollups
    (cherry picked from commit b57f2673f5d928c07f4fe0fe0e8603bb72e98dff)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1623563

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants