-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Fix 2 bugs in the OCI integration #7854
base: master
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: eric-higgins-ai The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @eric-higgins-ai. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
/ok-to-test |
The pagination fix for listing node shapes makes sense to me and is straightforward. We took a different approach to the capacity failure in the Instance Pool implementation of the OCI provider. We monitor the work request queue for errors relating to capacity/quota, and fail any on-going scale-up operation when they are detected. Additionally, we create "placeholder instances" for yet-to-be-fulfilled nodes, which allows the Cluster Autoscaler to short-circuit the @trungng92 what do you think? |
@jlamillan It seems like the scale up operation is async in the node pool implementation, unlike the instance pool, so I think it's not quite as straightforward to fast-fail the scale up. My approach does have a limitation that we'll continue trying to provision the node forever if the node pool is scaling up from 0 nodes though. Specifically, it seems like this case is supposed to be handled by |
@eric-higgins-ai thanks for looking into that and thanks for the PR. I'm comfortable approving the pagination fix. However, we need some feedback from someone from the OKE team about the failed scale change - preferably @trungng92. If it'd be helpful to you to have the first fix merged in quickly, you can separate the fixes into two different PRs. |
I agree that the pagination looks good as is As for this change:
Two options come off the top of my head. If an upcoming instance doesn't have an instance ocid:
I am slightly in favor of the second option. I prefer that the cluster autoscaler stores the information about the upcoming and then we can choose whether or not to act on that information. Perhaps somewhere in the DeleteNode functionality. |
@trungng92 we have avoided making delete api calls if node doesn't have an instance id within this PR
|
@jlamillan it doesn't matter too much to us, we're already using a forked version of cluster autoscaler with these fixes and just want to make this change so we can eventually go back to the OCI-managed cluster autoscaler. @gvnc I don't think that PR actually fixes the underlying issue. It makes DeleteNodes error in a nicer way, but it does still error. This means cluster autoscaler exits its reconciliation loop early and won't autoscale any node pools that would be checked after the erroring one in the loop. I think if we were to change this line to just |
What type of PR is this?
/kind bug
What this PR does / why we need it:
This PR fixes 2 bugs with the Oracle Cloud integration:
Limit: 500
, but the max value of the limit on the backend is 100. This prevents nodes not on the first page of results from scaling up from 0.Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: