-
Notifications
You must be signed in to change notification settings - Fork 897
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
Charge SCVMM's vm only until it is retired. #13451
Charge SCVMM's vm only until it is retired. #13451
Conversation
384f17d
to
b449896
Compare
b449896
to
41e9832
Compare
When resource did not exist in given interval (day, week, month) we will not yield Consumption object into the chargeback engine. As a result the report won't contain rows with zero consumption.
Checked commits isimluk/manageiq@41e9832~...166896f with ruby 2.2.5, rubocop 0.37.2, and haml-lint 0.16.1 app/models/chargeback/consumption.rb
|
Nice catch @lpichler!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
works great! 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Backported to Euwe via #13554 |
Since we don't collect metric for SCVMM, we need to explicitly stop charging once the resource is retired.
Unfortunately, we don't store archived_on date atm. So, we need to rely on retirement.
@miq-bot add_label enhancement, chargeback
@miq-bot assign @gtanzillo