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]: Fix Scenario test failure for Azure Container Storage #7512

Merged
merged 13 commits into from
Apr 30, 2024

Conversation

mukhoakash
Copy link
Contributor


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

Related command

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? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

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.

Copy link

azure-client-tools-bot-prd bot commented Apr 16, 2024

️✔️Azure CLI Extensions Breaking Change Test
️✔️Non Breaking Changes

Copy link

Hi @mukhoakash,
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.

@yonzhan
Copy link
Collaborator

yonzhan commented Apr 16, 2024

AKS

@mukhoakash
Copy link
Contributor Author

Live test for the failing test case: test_aks_update_with_azurecontainerstorage https://dev.azure.com/msazure/CloudNativeCompute/_build/results?buildId=91616856&view=results

Copy link

github-actions bot commented Apr 16, 2024

⚠️ Release Suggestions

Module: aks-preview

  • Update version to 3.0.0b10 in setup.py

Notes

  • Stable/preview tag is inherited from last release. If needed, please add stable/preview label to modify it.
  • Major/minor/patch/pre increment of version number is calculated by pull request code changes automatically. If needed, please add major/minor/patch/pre label to adjust it.
  • For more info about extension versioning, please refer to Extension version schema

@@ -4934,79 +4934,6 @@ def postprocessing_after_mc_created(self, cluster: ManagedCluster) -> None:
:return: None
"""
super().postprocessing_after_mc_created(cluster)
enable_azure_container_storage = self.context.get_intermediate("enable_azure_container_storage")
Copy link
Member

Choose a reason for hiding this comment

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

Glad to see the live test passed, but I have some concerns about this change.

Users may not necessarily use the version of azure-cli (2.59.0+) that contains the changes in #28251. For example, if the user installs azure-cli 2.58.0 and the latest version of aks-preview that contains the current changes, then these enable/disable operations will not be performed, which is equivalent to the container storage related options being ignored, and this is unexpected.

File azext_metadata.json is used to restrict aks-preview's dependence on the version of azure-cli, which is currently 2.56.0. And we don’t want to bump it yet, because this will make the restrictions too strict.

The most ideal solution is that the operation can be implemented as idempotent. If it is difficult to achieve the former, is it possible to do some checks before starting these operations in aks-preview? If these operations have already been done, skip them, otherwise execute them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ensured that there is no depedency on az cli version in the latest set of changes.

@mukhoakash
Copy link
Contributor Author

Live test with the latest changes.

  • test_aks_update_with_azurecontainerstorage
  • test_aks_create_with_azurecontainerstorage
  • test_aks_create_with_azurecontainerstorage_with_nodepool_name

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

@zhoxing-ms zhoxing-ms merged commit b693fda into Azure:main Apr 30, 2024
15 checks passed
Copy link

@Moazzem-Hossain-pixel Moazzem-Hossain-pixel left a comment

Choose a reason for hiding this comment

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

Need support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AKS Auto-Assign Auto assign by bot
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants