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

Enable deploying Azure Storage account File shares with user specified storage quota. #3611

Merged
merged 7 commits into from
Jan 25, 2025

Conversation

shekharsorot
Copy link
Contributor

Changes done: Addition of "quota" int param to get_or_create_file_share() in commons.py and create_share() in features.py

Why? : Current code deploys a default 100GB volume when provisioning SMB/NFS shares using Azure Storage account. This may ( and in current scenario) cause tests such as XFSTest to fail for specific test cases ( FSStress, Zero fill perf, etc ).

Default Behavior: When called, get_or_create_file_share() will continue to deploy 100B shares unless param 'quota' is passed as an integer value corresponding to GiB of volume we want to provision. Existing extensions using this function will continue to behave as is without disruption.

Things to consider when using: Code currently does not check if quota > 100 is supplied as param. This will cause REST API to return with malformed header error for Storage_V2 and Premium types. Also, Azure Python API documentation states that quota is specified in Bytes, which is incorrect. All values passed should be in GiB ( 1000 MiB -> 1 GiB). This is done since we would eventually like to support PV2 billing model.

@LiliDeng
Copy link
Collaborator

@shekharsorot please fix the CI check error.

@LiliDeng LiliDeng merged commit 50fee32 into microsoft:main Jan 25, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants