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

Consolidated Service/VM quota validation. #4338

Merged
merged 10 commits into from
Oct 27, 2015

Conversation

tinaafitz
Copy link
Member

Consolidating quota code to help facilitate resolution for the following issues:

https://bugzilla.redhat.com/show_bug.cgi?id=1254211
when quota exceeds Group Allocated Memory always shows "0.00GB"
in last message of request details page (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1248747
service :quota : Provisioning quota for CPU , Memory and Storage
doesn't work (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1254882
Provisioning quota for CPU/Mem/Storage doesn't work
for cloud providers (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1126934
[RFE] Quota enforcement based on used space (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1249772
[RFE] Service :quota : Should be able to apply VM quota to service (edit)

@@ -0,0 +1,457 @@

def request_info
type = $evm.root['quota_type']
Copy link
Contributor

Choose a reason for hiding this comment

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

@tinaafitz
Is the quota_type going to be specified in the instance or in the root object?

@chessbyte chessbyte added the wip label Sep 21, 2015
@tinaafitz tinaafitz force-pushed the consolidated_quota branch 2 times, most recently from 8b37ff7 to 708576b Compare October 9, 2015 19:23
@miq-bot
Copy link
Member

miq-bot commented Oct 9, 2015

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@tinaafitz tinaafitz force-pushed the consolidated_quota branch 2 times, most recently from a59d158 to b073703 Compare October 13, 2015 21:42
@miq-bot
Copy link
Member

miq-bot commented Oct 14, 2015

<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush.

@tinaafitz
Copy link
Member Author

@mkanoor
Please review.

end

def parent_model_value(attr)
value = $evm.parent[attr].to_i
Copy link
Contributor

Choose a reason for hiding this comment

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

@tinaafitz
Should we check if $evm.parent exists and is not nil, raise an exception if missing.

quota_values(model_attribute, tag_name)
end

@source = $evm.root['quota_source']
Copy link
Contributor

Choose a reason for hiding this comment

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

@tinaafitz
We should check if @source is nil and raise exception

@tinaafitz tinaafitz force-pushed the consolidated_quota branch 9 times, most recently from 6d13819 to a58e361 Compare October 23, 2015 16:33
following issues:

https://bugzilla.redhat.com/show_bug.cgi?id=1254211
 when quota exceeds Group Allocated Memory always shows "0.00GB"
 in last message of request details page (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1248747
 service :quota : Provisioning quota for CPU , Memory and Storage
doesn't work (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1254882
Provisioning quota for CPU/Mem/Storage doesn't work
for cloud providers (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1126934
[RFE] Quota enforcement based on used space (edit)

https://bugzilla.redhat.com/show_bug.cgi?id=1249772
[RFE] Service :quota : Should be able to apply VM quota to service (edit)
changed quota schema/instances to reflect method changes.
@miq-bot
Copy link
Member

miq-bot commented Oct 23, 2015

Checked commits tinaafitz/manageiq@1250288~...f142b50 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
12 files checked, 0 offenses detected
Everything looks good. 🍪

@mkanoor
Copy link
Contributor

mkanoor commented Oct 23, 2015

👍

@gmcculloug
Copy link
Member

@tinaafitz Should this still be WIP?

@tinaafitz tinaafitz changed the title [WIP] Consolidated Service/VM quota validation. Consolidated Service/VM quota validation. Oct 26, 2015
@tinaafitz
Copy link
Member Author

@gmcculloug
Removed WIP.

@gmcculloug
Copy link
Member

Thanks for reviewing @mkanoor.

gmcculloug added a commit that referenced this pull request Oct 27, 2015
Consolidated Service/VM quota validation.
@gmcculloug gmcculloug merged commit 4df7e02 into ManageIQ:master Oct 27, 2015
@gmcculloug gmcculloug added this to the Sprint 31 Ending Oct 26, 2015 milestone Oct 27, 2015
@gmcculloug gmcculloug removed the wip label Oct 27, 2015
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