{AKS} az aks nodepool rollback: Show an accurate warning when only the node OS upgrade channel is enabled - #33854
Merged
Julie Zhu (yanzhudd) merged 2 commits intoAug 6, 2026
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
microsoft-github-policy-service
Bot
requested review from
elvazhu521,
Julie Zhu (yanzhudd) and
Yong Zhang (yonzhan)
August 5, 2026 23:19
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refines az aks nodepool rollback warnings so they accurately reflect rollback behavior when upgradeChannel and/or nodeOSUpgradeChannel are enabled, and adds unit coverage for the node OS channel warning path.
Changes:
- Split the rollback warning logic to distinguish
upgradeChannelfromnodeOSUpgradeChannel. - Add a unit test asserting the “node image-only rollback impact” warning when only
nodeOSUpgradeChannelis enabled.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/acs/custom.py | Splits rollback warnings into separate upgradeChannel and nodeOSUpgradeChannel warning paths. |
| src/azure-cli/azure/cli/command_modules/acs/tests/latest/test_custom.py | Adds unit test coverage for the nodeOSUpgradeChannel-only warning behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
FumingZhang
reviewed
Aug 6, 2026
Member
|
/azp run |
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
FumingZhang
approved these changes
Aug 6, 2026
az aks nodepool rollback: Show an accurate warning when only the node OS upgrade channel is enabled
az aks nodepool rollback: Show an accurate warning when only the node OS upgrade channel is enabledaz aks nodepool rollback: Show an accurate warning when only the node OS upgrade channel is enabled
Julie Zhu (yanzhudd)
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ️✔️ All clear
Related command
az aks nodepool rollbackDescription
When Kubernetes auto-upgrade is disabled but
nodeOSUpgradeChannelis enabled, the core CLI currently warns that rollback will not succeed. This is misleading: the orchestrator version rollback proceeds; only the node image rollback is affected by the node OS upgrade channel.This change ports the split warning behavior from Azure/azure-cli-extensions#9733 while retaining the enum
.valuenormalization from #33748:upgradeChannelenabled: retain the hard warning that rollback will not succeed until auto-upgrade is disabled.nodeOSUpgradeChannelenabled: state that orchestrator rollback proceeds but node image rollback will not succeed.Validation
Live validation with Azure CLI 2.89.0 and no
aks-previewextension:az aks nodepool rollbackwithupgradeChannel=noneandnodeOSUpgradeChannel=NodeImage.Succeededon Kubernetes 1.34.8.Targeted unit tests:
PYTHONPATH=src/azure-cli /opt/homebrew/Cellar/azure-cli/2.89.0/libexec/bin/python -m unittest azure.cli.command_modules.acs.tests.latest.test_custom.AksAgentpoolRollbackTestResult: 4 tests passed.
git diff --checkpassed.History Notes
[AKS]
az aks nodepool rollback: Show an accurate warning when only the node OS upgrade channel is enabled