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
Bug 1906459: openstack: fix quota checks when they're unlimited #4470
Bug 1906459: openstack: fix quota checks when they're unlimited #4470
Conversation
@EmilienM: This pull request references Bugzilla bug 1906459, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@EmilienM: This pull request references Bugzilla bug 1906459, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/label platform/openstack |
12389e3
to
ce2a61e
Compare
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.
I've tested and it fixes the issue. Is there unit test coverage somewhere we can add this case to?
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.
/lgtm
Thanks for the quick fix.
no unit tests for cloudinfo nor quotas but I agree it would be nice to have at some point. |
/retest |
/test e2e-crc |
1 similar comment
/test e2e-crc |
/assign @staebler |
In OpenStack, if a quota resource is limited to "-1", it means that it's unlimited. It's the case of a lot of OpenStack clouds, were quotas aren't defined for all projects and by default "-1" is used. This patch will ignore a quota record if its limit is set to "-1". Note: it adds "Unlimited" to the Quota struct, as a boolean, so later any platform can set it to true if a resource is unlimited. Signed-off-by: Emilien Macchi <emilien@redhat.com>
ce2a61e
to
260643b
Compare
/lgtm |
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.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: staebler The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@EmilienM: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@EmilienM: All pull requests linked via external trackers have merged: Bugzilla bug 1906459 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
In OpenStack, if a quota resource is limited to "-1", it means that it's
unlimited. It's the case of a lot of OpenStack clouds, were quotas
aren't defined for all projects and by default "-1" is used.
This patch will ignore a quota record if its limit is set to "-1".
BZ: https://bugzilla.redhat.com/show_bug.cgi?id=1906459
Signed-off-by: Emilien Macchi emilien@redhat.com