-
Notifications
You must be signed in to change notification settings - Fork 284
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 panic for GetZoneByNodeName on Azure Stack #8755
Fix panic for GetZoneByNodeName on Azure Stack #8755
Conversation
Azure Stack does not support the API Version, 2020-12-01, for PlatformFaultDomain, and therefore panics when we run the cloud provider on Azure Stack. This avoids the panic, but we cannot get the correct PlatformFaultDomain (which may not be an issue).
Welcome @patrickdillon! |
Hi @patrickdillon. Thanks for your PR. I'm waiting for a kubernetes-sigs 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 |
/lgtm |
Thanks for the fix. Can you help add the unit tests? |
/cherrypick release-1.32 |
@MartinForReal: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
/cherrypick release-1.31 |
@MartinForReal: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
/cherrypick release-1.30 |
@MartinForReal: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
/cherrypick release-1.29 |
@MartinForReal: once the present PR merges, I will cherry-pick it on top of 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-sigs/prow repository. |
Yes I will add unit tests, and we may need additional changes as the CSI driver is also failing in azure stack. @MartinForReal @nilo19 do you understand the problem here, particularly why would
Line 7248 in df298c5
I find understanding the supported API versions with Azure Stack to be very challenging |
@patrickdillon are you able to build an image with this change and validate on your Azure Stack cluster? |
Oh yes, I was able to build and test the fix in an openshift install. This simple change does resolve the panic issue. That said, it's still unclear to me whether we would expect I am fine moving forward, just wondering. I will look into adding unit tests today. |
Added unit test in 7974cf4 and also confirmed that the unit test panics on /label tide/merge-method-squash |
Which apiversion is supported in azure stack? |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyzhangx, patrickdillon 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 |
the fix is already verified here: kubernetes-sigs/azuredisk-csi-driver#3003, let's merge this fix |
thanks, I will take care of the proceeding fix when the PR is merged in cloud-provider-azure |
I was hoping someone here could help clarify that, because I find the topic confusing. According to these docs the profiles released in September and March have the greatest azurestack compatibility. Looking at the most recent profile, 2020-09-01, that profile is using the V2 SDK at 2020-09-01 (as opposed to calling out to the v1 services packages as other APIs may do): So my understanding is that 2020-09-01 is the latest support API version for compute, although we've had better results using 2020-06-01. Neither would meet the stated API version requirement of 2020-12-01. |
/retest |
1 similar comment
/retest |
@MartinForReal: new pull request created: #8866 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-sigs/prow repository. |
@MartinForReal: #8755 failed to apply on top of branch "release-1.31":
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-sigs/prow repository. |
@MartinForReal: #8755 failed to apply on top of branch "release-1.30":
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-sigs/prow repository. |
@MartinForReal: #8755 failed to apply on top of branch "release-1.29":
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-sigs/prow repository. |
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
Azure Stack does not support the API Version, 2020-12-01, for PlatformFaultDomain, and therefore panics when we run the cloud provider on Azure Stack. This avoids the panic and sets the default fault domain.
Which issue(s) this PR fixes:
Fixes #8754
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: