-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Feature/aks acns performance #9136
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
Changes from 14 commits
26e1c45
53662a1
6df73df
5f53ddb
99ce76f
9c144eb
ff1e4aa
e7cee6c
4b03472
4b94d26
b990811
3d980de
5f48643
fe39c07
a1a2172
3747363
555f7ae
9a24346
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2924,42 +2924,6 @@ def test_aks_nodepool_add_with_ossku_ubuntu2204(self, resource_group, resource_g | |
| self.cmd( | ||
| 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) | ||
|
|
||
| @AllowLargeResponse() | ||
| @AKSCustomResourceGroupPreparer(random_name_length=17, name_prefix='clitest', location='eastus2euap') | ||
| def test_aks_nodepool_add_with_ossku_azurelinux3(self, resource_group, resource_group_location): | ||
|
santhoshmprabhu marked this conversation as resolved.
|
||
| aks_name = self.create_random_name('cliakstest', 16) | ||
| node_pool_name = self.create_random_name('c', 6) | ||
| node_pool_name_second = self.create_random_name('c', 6) | ||
| self.kwargs.update({ | ||
| 'resource_group': resource_group, | ||
| 'name': aks_name, | ||
| 'node_pool_name': node_pool_name, | ||
| 'node_pool_name_second': node_pool_name_second, | ||
| 'ssh_key_value': self.generate_ssh_keys() | ||
| }) | ||
|
|
||
| create_cmd = 'aks create --resource-group={resource_group} --name={name} ' \ | ||
| '--nodepool-name {node_pool_name} -c 1 ' \ | ||
| '--ssh-key-value={ssh_key_value}' | ||
| self.cmd(create_cmd, checks=[ | ||
| self.check('provisioningState', 'Succeeded'), | ||
| ]) | ||
|
|
||
| # nodepool get-upgrades | ||
| self.cmd('aks nodepool add ' | ||
| '--resource-group={resource_group} ' | ||
| '--cluster-name={name} ' | ||
| '--name={node_pool_name_second} ' | ||
| '--os-sku AzureLinux3', | ||
| checks=[ | ||
| self.check('provisioningState', 'Succeeded'), | ||
| self.check('osSku', 'AzureLinux3'), | ||
| ]) | ||
|
|
||
| # delete | ||
| self.cmd( | ||
| 'aks delete -g {resource_group} -n {name} --yes --no-wait', checks=[self.is_empty()]) | ||
|
|
||
| @AllowLargeResponse() | ||
| @AKSCustomResourceGroupPreparer( | ||
| random_name_length=17, name_prefix="clitest", location="westus2" | ||
|
|
@@ -13978,6 +13942,7 @@ def test_aks_update_enable_acns( | |
| self.check("networkProfile.advancedNetworking.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.observability.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.security.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.performance.accelerationMode", "None"), | ||
| ], | ||
| ) | ||
|
|
||
|
|
@@ -14092,6 +14057,7 @@ def test_aks_create_with_advanced_networkpolicies( | |
| self.check("provisioningState", "Succeeded"), | ||
| self.check("networkProfile.advancedNetworking.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.observability.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.performance.accelerationMode", "None"), | ||
| self.check("networkProfile.advancedNetworking.security.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.security.advancedNetworkPolicies", "L7"), | ||
| ], | ||
|
|
@@ -14339,6 +14305,76 @@ def test_aks_update_with_transit_encryption_type_and_advanced_networkpolicies( | |
| checks=[self.is_empty()], | ||
| ) | ||
|
|
||
|
|
||
| @AllowLargeResponse() | ||
| @AKSCustomResourceGroupPreparer( | ||
| random_name_length=17, | ||
| name_prefix="clitest", | ||
| location="westcentralus", | ||
| ) | ||
| def test_aks_create_with_acns_performance( | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Queued live test to validate the change.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the live test passes, please find the recording file from pipeline artifact and commit it to your branch
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked in the recording file from my local run. Please let me know if that does not suffice.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re-queued live test, test passed! |
||
| self, resource_group, resource_group_location | ||
| ): | ||
| # reset the count so in replay mode the random names will start with 0 | ||
| self.test_resources_count = 0 | ||
| # kwargs for string formatting | ||
|
|
||
| aks_name = self.create_random_name("cliakstest", 16) | ||
| _, latest_version = self._get_versions(resource_group_location) | ||
| self.kwargs.update( | ||
| { | ||
| "resource_group": resource_group, | ||
| "name": aks_name, | ||
| "ssh_key_value": self.generate_ssh_keys(), | ||
| "location": resource_group_location, | ||
| "version": latest_version, | ||
| } | ||
| ) | ||
| # Cilium Cluster with ACNS enabled and acceleration mode set to None | ||
| create_cmd = ( | ||
| "aks create --resource-group={resource_group} --name={name} --location={location} -k {version} " | ||
| "--ssh-key-value={ssh_key_value} --node-count=1 --tier standard " | ||
| "--network-plugin azure --network-dataplane=cilium --network-plugin-mode overlay --enable-acns " | ||
| "--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AdvancedNetworkingPerformancePreview " | ||
| "--os-sku AzureLinux " | ||
| "--enable-acns --acns-datapath-acceleration-mode BpfVeth" | ||
| ) | ||
| self.cmd( | ||
| create_cmd, | ||
| checks=[ | ||
| self.check("provisioningState", "Succeeded"), | ||
| self.check("networkProfile.advancedNetworking.performance.accelerationMode", "BpfVeth"), | ||
| ], | ||
| ) | ||
|
|
||
| # Update acceleration mode to BpfVeth | ||
| update_cmd = ( | ||
| "aks update --resource-group={resource_group} --name={name} " | ||
| "--aks-custom-headers AKSHTTPCustomFeatures=Microsoft.ContainerService/AdvancedNetworkingPerformancePreview " | ||
| "--enable-acns --acns-datapath-acceleration-mode BpfVeth" | ||
| ) | ||
|
|
||
| self.cmd( | ||
| update_cmd, | ||
| checks=[ | ||
| self.check("provisioningState", "Succeeded"), | ||
| self.check("networkProfile.advancedNetworking.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.observability.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.security.enabled", True), | ||
| self.check("networkProfile.advancedNetworking.security.advancedNetworkPolicies", "L7"), | ||
| self.check("networkProfile.advancedNetworking.security.transitEncryption.type", "WireGuard"), | ||
| ], | ||
| ) | ||
|
|
||
| # delete | ||
| self.cmd( | ||
| "aks delete -g {resource_group} -n {name} --yes --no-wait", | ||
| checks=[self.is_empty()], | ||
| ) | ||
|
|
||
|
|
||
|
|
||
|
|
||
| @AllowLargeResponse() | ||
| @AKSCustomResourceGroupPreparer( | ||
| random_name_length=17, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.