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

Add cloud volumes for selecting assigned tagged resources #17271

Merged
merged 1 commit into from
Apr 10, 2018

Conversation

lpichler
Copy link
Contributor

Assigning rate for storages by tags on cloud volumes (by option Tagged datastores) did not work for chargeback without including metrics.

it can be set here:

screen shot 2018-04-10 at 10 46 30

Fix

Fix was about to include also resource's cloud_volumes for selecting rates in ConsumptionWithoutRollups#parents_determining_rate for calling method to select rate:
https://github.com/ManageIQ/manageiq/blob/master/app/models/chargeback/rates_cache.rb#L24

Links

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

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

@miq-bot
Copy link
Member

miq-bot commented Apr 10, 2018

Checked commit lpichler@e61541c 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. 🏆

@lpichler
Copy link
Contributor Author

@miq-bot add_label gaprindashvili/yes

@gtanzillo gtanzillo added this to the Sprint 83 Ending Apr 9, 2018 milestone Apr 10, 2018
@gtanzillo gtanzillo merged commit 447f26e into ManageIQ:master Apr 10, 2018
@lpichler lpichler deleted the add_cloud_volumes branch April 10, 2018 13:58
simaishi pushed a commit that referenced this pull request May 15, 2018
Add cloud volumes for selecting assigned tagged resources
(cherry picked from commit 447f26e)

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

Gaprindashvili backport details:

$ git log -1
commit d4c8c1125d2a63fb768bdc013e28ff9d551fb07a
Author: Gregg Tanzillo <[email protected]>
Date:   Tue Apr 10 09:54:13 2018 -0400

    Merge pull request #17271 from lpichler/add_cloud_volumes
    
    Add cloud volumes for selecting assigned tagged resources
    (cherry picked from commit 447f26e20745b0eeba2df50b61ec170103d67bc0)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1578394

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