-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[RDBMS] Remove blocking of HA enablement for servers with SSD v2 storage type #32542
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
[RDBMS] Remove blocking of HA enablement for servers with SSD v2 storage type #32542
Conversation
️✔️AzureCLI-FullTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
️✔️AzureCLI-BreakingChangeTest
|
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enables High Availability support for PostgreSQL flexible servers using PremiumV2_LRS (SSD v2) storage by removing validation that previously blocked this combination.
- Removed the
high_availabilityparameter from the_pg_storage_type_validatorfunction and its validation logic - Updated tests to verify that High Availability can now be enabled and disabled on servers with PremiumV2_LRS storage
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/azure-cli/azure/cli/command_modules/rdbms/validators.py | Removed the high_availability parameter and associated validation check that blocked HA on PremiumV2_LRS storage servers |
| src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_flexible_commands.py | Changed test expectations from expecting HA enablement to fail on SSD v2 servers to verifying it succeeds, including both enabling and disabling HA |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/azure-cli/azure/cli/command_modules/rdbms/tests/latest/test_rdbms_flexible_commands.py
Outdated
Show resolved
Hide resolved
…t_rdbms_flexible_commands.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Related command
az postgres flexible-server create --storage-type PremiumV2_LRS --high-availability SameZone | ZoneRedundantaz postgres flexible-server update --high-availability SameZone | ZoneRedundant(for servers with storage of type PremiumV2_LRS)Description
Now that High Availability was announced as supported on servers with PremiumV2_LRS storage type we should remove current blocking from CLI.
Testing Guide
History Notes
[RDBMS]
az postgres flexible-server create/update: Enable support for High Availability on servers with PremiumV2_LRS storage typeThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.