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

[AKS] Add --network-dataplane to az aks update command #6446

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

wedaly
Copy link
Member

@wedaly wedaly commented Jun 27, 2023

Add the --network-dataplane flag to the az aks update command. This will allow customers to update an existing cluster to enable Azure CNI Powered by Cilium


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az aks update --network-dataplane=cilium

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python scripts/ci/test_index.py -q locally?

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify src/index.json.

@azure-client-tools-bot-prd
Copy link

Hi @wedaly,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@azure-client-tools-bot-prd
Copy link

Hi @wedaly,
Since the current milestone time is less than 7 days, this pr will be reviewed in the next milestone.

@ghost ghost requested review from zhoxing-ms and yanzhudd June 27, 2023 19:14
@ghost ghost assigned zhoxing-ms Jun 27, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented Jun 27, 2023

AKS

@ghost ghost added the Auto-Assign Auto assign by bot label Jun 27, 2023
@ghost ghost requested a review from yonzhan June 27, 2023 19:14
@ghost ghost added the AKS label Jun 27, 2023
@ghost ghost requested review from jsntcy, kairu-ms and necusjz June 27, 2023 19:14
@ghost ghost assigned necusjz Jun 27, 2023
@ghost ghost added the Network label Jun 27, 2023
Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

LGTM, however, since the command is currently not practically available, do you really want to merge the PR?

@wedaly
Copy link
Member Author

wedaly commented Jun 28, 2023

LGTM, however, since the command is currently not practically available, do you really want to merge the PR?

Thanks! I think it's okay to merge it ahead of the rollout, but I'm also okay waiting if that's what we usually do.

@wedaly wedaly force-pushed the aks-update-network-dataplane branch from 92c2e02 to 4d71786 Compare July 24, 2023 19:58
@wedaly
Copy link
Member Author

wedaly commented Jul 24, 2023

Updated to include a live test running in eastus.

@wedaly
Copy link
Member Author

wedaly commented Jul 24, 2023

@FumingZhang this should be ready for review now, could you please take a look? Thanks!

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jul 24, 2023

⚠️Azure CLI Extensions Breaking Change Test
⚠️aks-preview
rule cmd_name rule_message suggest_message
⚠️ 1006 - ParaAdd aks update cmd aks update added parameter network_dataplane

@FumingZhang
Copy link
Member

FumingZhang commented Jul 25, 2023

Queued live test pipeline to validate the change, test passed.

Copy link
Member

@FumingZhang FumingZhang left a comment

Choose a reason for hiding this comment

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

LGTM, live test validation passed but CI failed, maybe update the recording file (from pipeline artifact) may fix the issue as I couldn't check detailed error message at this moment.

@wedaly wedaly force-pushed the aks-update-network-dataplane branch from 4d71786 to 810feb5 Compare July 25, 2023 16:14
@wedaly
Copy link
Member Author

wedaly commented Jul 25, 2023

LGTM, live test validation passed but CI failed, maybe update the recording file (from pipeline artifact) may fix the issue as I couldn't check detailed error message at this moment.

rebased onto main and used test_aks_migrate_cluster_to_cilium_dataplane.yaml downloaded from the live test pipeline artifacts. Let's see if CI passes...

@wedaly
Copy link
Member Author

wedaly commented Jul 25, 2023

hmm, still failing. The errors I'm seeing in the build output are:

E           AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_trustedaccess_rolebinding.yaml') in your current record mode ('once').
E           No match for the request (<Request (GET) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-03-01>](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-03-01%3E)) was found.
E           Found 1 similar requests with 1 different matcher(s) :
E           
E           1 - (<Request (GET) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2022-11-01>).](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2022-11-01%3E).)
E           Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path']
E           Matchers failed :
E           _custom_request_query_matcher - assertion failure :
E           None

E           AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_outbound_ips.yaml') in your current record mode ('once').
E           No match for the request (<Request (PUT) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-11-01>](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-11-01%3E)) was found.
E           Found 1 similar requests with 1 different matcher(s) :
E           
E           1 - (<Request (PUT) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-05-01>).](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-05-01%3E).)
E           Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path']
E           Matchers failed :
E           _custom_request_query_matcher - assertion failure :
E           None

I think these test cases were expecting api-version=2022-11-01 but got a newer API version instead.

These failures look unrelated to my changes? Not sure how to fix them, would appreciate any advice.

@FumingZhang
Copy link
Member

hmm, still failing. The errors I'm seeing in the build output are:

E           AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_trustedaccess_rolebinding.yaml') in your current record mode ('once').
E           No match for the request (<Request (GET) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-03-01>](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2023-03-01%3E)) was found.
E           Found 1 similar requests with 1 different matcher(s) :
E           
E           1 - (<Request (GET) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2022-11-01>).](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MC_clitest000001_cliakstest000001_westus2/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2022-11-01%3E).)
E           Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path']
E           Matchers failed :
E           _custom_request_query_matcher - assertion failure :
E           None

E           AssertionError: Can't overwrite existing cassette ('/mnt/vss/_work/1/s/src/aks-preview/azext_aks_preview/tests/latest/recordings/test_aks_create_and_update_outbound_ips.yaml') in your current record mode ('once').
E           No match for the request (<Request (PUT) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-11-01>](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-11-01%3E)) was found.
E           Found 1 similar requests with 1 different matcher(s) :
E           
E           1 - (<Request (PUT) [https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-05-01>).](https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/publicIPAddresses/cliakstest000003?api-version=2022-05-01%3E).)
E           Matchers succeeded : ['method', 'scheme', 'host', 'port', 'path']
E           Matchers failed :
E           _custom_request_query_matcher - assertion failure :
E           None

I think these test cases were expecting api-version=2022-11-01 but got a newer API version instead.

These failures look unrelated to my changes? Not sure how to fix them, would appreciate any advice.

Yeah, some recordings are broken by API version bump of some dependent commands. Fixed in PR #6557. Please rebase from main once the PR is merged.

@wedaly wedaly force-pushed the aks-update-network-dataplane branch from 810feb5 to 9de5943 Compare July 26, 2023 14:54
@wedaly
Copy link
Member Author

wedaly commented Jul 27, 2023

@zhoxing-ms this PR is ready for review, could you please take a look? Thanks!

@zhoxing-ms
Copy link
Contributor

@FumingZhang Could you please help review this PR again?

@FumingZhang
Copy link
Member

@FumingZhang Could you please help review this PR again?

The change looks good to me :shipit:

@wedaly
Copy link
Member Author

wedaly commented Jul 31, 2023

@zhoxing-ms @FumingZhang would either of you be able to merge the PR? I don't have permission to merge it. Thanks!

@zhoxing-ms zhoxing-ms merged commit 99a435a into Azure:main Aug 1, 2023
14 checks passed
@wedaly wedaly changed the title [AKS] Add --network-dataplane to az aks update command [AKS] Add --network-dataplane to az aks update command Aug 2, 2023
@wedaly wedaly changed the title [AKS] Add --network-dataplane to az aks update command [AKS] Add --network-dataplane to az aks update command Aug 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants