Skip to content
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

✨ support accelerated networking #645

Merged

Conversation

mboersma
Copy link
Contributor

What this PR does / why we need it:

Creates an acceleratedNetworking boolean in AzureMachineTemplate and in AzureMachinePool that enables Azure accelerated networking on the machine's network interface or on the VMSS, respectively.
If acceleratedNetworking is omitted from the provisioning template, it is enabled or disabled after an API call is made to determine if the requested SKU supports it.

Fixes #307

Special notes for your reviewer:

This could use more specific unit test coverage. I'm working on that, so maybe consider this a WIP.

Please confirm that if this PR changes any image versions, then that's the sole change this PR makes.

Release note:

✨ support accelerated networking

@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 22, 2020
@k8s-ci-robot
Copy link
Contributor

Hi @mboersma. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

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/test-infra repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels May 22, 2020
@k8s-ci-robot k8s-ci-robot added area/provider/azure Issues or PRs related to azure provider sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. labels May 22, 2020
@devigned
Copy link
Contributor

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 22, 2020
Copy link
Contributor

@devigned devigned left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple SDK related nits.

cloud/services/resourceskus/client.go Outdated Show resolved Hide resolved
cloud/services/resourceskus/client.go Outdated Show resolved Hide resolved
@nader-ziada
Copy link
Contributor

@mboersma for the verify failure: since you added a field to the azuremachine spec, you have to generate the CRDs yaml files and include them in the commit

@mboersma
Copy link
Contributor Author

you have to generate the CRDs yaml files

Actually the generated changes to config/crd/bases/exp.infrastructure.cluster.x-k8s.io_azuremachinepools.yaml as well as _azuremachines.yaml and _azuremachinetemplates.yaml were included in the first commit...

I'm not able to reproduce or fix the current CI failure. When I run make modules or make generate or ./hack/gen-flavors.sh I just get success and no file changes. I've used go 1.13.8 and 1.13.10 on macOS. Any ideas?

@devigned
Copy link
Contributor

@mboersma try deleting ./hack/tools/bin, then make generate

@mboersma
Copy link
Contributor Author

@devigned I tried that, but no diff. 😕

@mboersma mboersma force-pushed the enable-accelerated-networking branch from 28918f6 to c6ddf8c Compare May 26, 2020 23:32
@nader-ziada
Copy link
Contributor

I have had a similar problem before and what I did was removed the --quiet from this line in the Makefile https://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/master/Makefile#L447 in a debugging commit to see what the error is

@mboersma mboersma force-pushed the enable-accelerated-networking branch from c6ddf8c to 7ea52b6 Compare May 27, 2020 02:52
@mboersma
Copy link
Contributor Author

removed the --quiet from this line in the Makefile...

Thanks @nader-ziada. I did something similar and it pointed to a missing comment in generated code that has been added. I think we are back on track now.

@mboersma
Copy link
Contributor Author

/test pull-cluster-api-provider-azure-test

@rbitia rbitia added this to In progress in Cluster API Azure May 29, 2020
@CecileRobertMichon
Copy link
Contributor

@mboersma is this ready for another review or should I wait? I think you mentioned having to add UTs for VMSS earlier in office hours

@mboersma
Copy link
Contributor Author

@CecileRobertMichon there aren't any cases in vmss_test.go that test accelerated networking toggled on and off, specifically. Otherwise I think it's ready, but let me know if you see other test gaps or issues.

Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm pending vmss test cases

@mboersma mboersma force-pushed the enable-accelerated-networking branch from e6a88ff to 98fa443 Compare May 29, 2020 18:47
@k8s-ci-robot k8s-ci-robot removed the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 29, 2020
@k8s-ci-robot k8s-ci-robot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label May 29, 2020
@mboersma mboersma force-pushed the enable-accelerated-networking branch 2 times, most recently from 9a569d9 to b4e6772 Compare May 29, 2020 18:57
@mboersma mboersma force-pushed the enable-accelerated-networking branch from b4e6772 to ffad0ad Compare May 29, 2020 18:58
@mboersma
Copy link
Contributor Author

@CecileRobertMichon I added a vmss_test.go spec for accelerated networking on and off, then squashed and rebased.

Cluster API Azure automation moved this from In progress to Review in progress May 29, 2020
Copy link
Contributor

@CecileRobertMichon CecileRobertMichon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/lgtm

Thanks @mboersma !

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 29, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon, mboersma

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 29, 2020
@k8s-ci-robot k8s-ci-robot merged commit 82ed072 into kubernetes-sigs:master May 29, 2020
Cluster API Azure automation moved this from Review in progress to Done (2020 - Q2) May 29, 2020
@k8s-ci-robot k8s-ci-robot added this to the v0.5 milestone May 29, 2020
@mboersma mboersma deleted the enable-accelerated-networking branch August 27, 2020 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/provider/azure Issues or PRs related to azure provider cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-lifecycle Categorizes an issue or PR as relevant to SIG Cluster Lifecycle. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
No open projects
Cluster API Azure
  
Done (2020 - Q2)
Development

Successfully merging this pull request may close these issues.

Enable accelerated networking on VM sizes that support it
5 participants