-
Notifications
You must be signed in to change notification settings - Fork 898
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
Conversation
4b35aa4
to
69e63b7
Compare
@@ -0,0 +1,457 @@ | |||
|
|||
def request_info | |||
type = $evm.root['quota_type'] |
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.
@tinaafitz
Is the quota_type going to be specified in the instance or in the root object?
8b37ff7
to
708576b
Compare
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
a59d158
to
b073703
Compare
<pr_mergeability_checker />This pull request is not mergeable. Please rebase and repush. |
b073703
to
6852363
Compare
@mkanoor |
end | ||
|
||
def parent_model_value(attr) | ||
value = $evm.parent[attr].to_i |
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.
@tinaafitz
Should we check if $evm.parent exists and is not nil, raise an exception if missing.
e0f89e2
to
d4660d2
Compare
quota_values(model_attribute, tag_name) | ||
end | ||
|
||
@source = $evm.root['quota_source'] |
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.
@tinaafitz
We should check if @source is nil and raise exception
6d13819
to
a58e361
Compare
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.
model/tag limit values.
a58e361
to
f142b50
Compare
Checked commits tinaafitz/manageiq@1250288~...f142b50 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0 |
👍 |
@tinaafitz Should this still be WIP? |
@gmcculloug |
Thanks for reviewing @mkanoor. |
Consolidated Service/VM quota validation.
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)