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

Restore missing quotas in new graph-based collector #159

Merged
merged 1 commit into from
Nov 20, 2017

Conversation

rwsu
Copy link
Contributor

@rwsu rwsu commented Nov 14, 2017

Quotas were missing because ems_ref was being set to the tenant_id
which is not unique. Changed ems_ref to [tenant_id, quota name] to
match what was being used as lookup value to find_or_build.

Also removed collection of quotas that we are not modeling:
metadata items, injected files, server groups, and rbac policies.

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

Quotas were missing because ems_ref was being set to the tenant_id
which is not unique. Changed ems_ref to [tenant_id, quota name] to
match what was being used as lookup value to find_or_build.

Also removed collection of quotas that we are not modeling:
metadata items, injected files, server groups, and rbac policies.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1512641
@miq-bot
Copy link
Member

miq-bot commented Nov 15, 2017

Checked commit rwsu@235669e with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0
1 file checked, 0 offenses detected
Everything looks fine. 👍

@mansam mansam merged commit 8cbf103 into ManageIQ:master Nov 20, 2017
simaishi pushed a commit that referenced this pull request Nov 20, 2017
Restore missing quotas in new graph-based collector
(cherry picked from commit 8cbf103)

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

Gaprindashvili backport details:

$ git log -1
commit b8bdfdc9f97695c5e7a0b93b0759a2bd07af828a
Author: Samuel Lucidi <[email protected]>
Date:   Mon Nov 20 09:10:21 2017 -0500

    Merge pull request #159 from rwsu/fix-missing-quotas
    
    Restore missing quotas in new graph-based collector
    (cherry picked from commit 8cbf1038fe81ad99bee9ed19250833e3d6ce8304)
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1515488

@aufi aufi added this to the Sprint 74 Ending Nov 27, 2017 milestone Nov 28, 2017
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.

5 participants