-
Notifications
You must be signed in to change notification settings - Fork 294
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
🐛 Use a cheaper method for storage policy #2467
🐛 Use a cheaper method for storage policy #2467
Conversation
/hold |
7fe9282
to
1172a62
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2467 +/- ##
==========================================
- Coverage 63.45% 63.43% -0.03%
==========================================
Files 122 123 +1
Lines 8754 8773 +19
==========================================
+ Hits 5555 5565 +10
- Misses 2785 2788 +3
- Partials 414 420 +6
☔ View full report in Codecov by Sentry. |
/hold cancel |
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.
Thx! Just nits.
Should we backport this change/fix?
/assign @chrischdi |
/retest |
Yes. On environments that, as an example don't reclaim PVs, there are going to be a lot of objects. Querying all of this objects is an expensive operation and may get cluster reconciliation stuck for a long time. IMHO at least for 1.7 and 1.8 this should be cherry picked. Thanks!! |
Thank you! /lgtm /assign @chrischdi |
LGTM label has been added. Git tree hash: 2d507e25aa8439bb38a58223eea99981a95e68ff
|
/cherry-pick release-1.8 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.8 in a new PR and assign it to you. 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. |
/cherry-pick release-1.7 |
@sbueringer: once the present PR merges, I will cherry-pick it on top of release-1.7 in a new PR and assign it to you. 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. |
/hold |
67dd3d7
to
4c588d9
Compare
/hold cancel
|
/lgtm @chrischdi PTAL :) |
LGTM label has been added. Git tree hash: 0b28b37b746682e78686634550de1c03054f5598
|
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.
Only nits about comments and a optional question/thing for the test code, lgtm to it in general!
Thanks for also adding test cases!
4c588d9
to
40b2c61
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrischdi 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 |
/lgtm |
LGTM label has been added. Git tree hash: e64c8031680e6e298591358973b06b37a64ed8a5
|
@sbueringer: #2467 failed to apply on top of branch "release-1.8":
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. |
@sbueringer: #2467 failed to apply on top of branch "release-1.7":
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. |
What this PR does / why we need it:
During the debug of #2453 (comment) we have figured out this call is too expensive for environments with a lot of resources, like more than 10k resources.
This may turn into a huge slow query that can take up to 20 minutes.
Instead, we should be using the "QueryAssociatedProfiles" call that, given an object (like a disk), check if it has associated storage policies
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Note vmware/govmomi#3268 implements the call directly on pbmClient, but as this is not released yet I have added it on the new utils file.