-
Notifications
You must be signed in to change notification settings - Fork 1.5k
{Elastic-SAN} az elastic-san volume-group create/update: Add warning for CRC data integration check
#8910
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
Merged
Merged
{Elastic-SAN} az elastic-san volume-group create/update: Add warning for CRC data integration check
#8910
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,28 @@ def pre_operations(self): | |
| args.identity["user_assigned_identities"] = { | ||
| uai_id: {}} | ||
| del args.identity.user_assigned_identity_id | ||
| if has_value(args.EnforceDataIntegrityCheckForIscsi) and args.EnforceDataIntegrityCheckForIscsi: | ||
|
||
| logger.warning("CRC protection feature is not supported for Azure VMware solution (AVS) yet. " | ||
| "Do not enable this flag if you plan to use the volumes within this volume group as " | ||
| "datastores for AVS, as the datastore creation will fail. For Azure Virtual Machines, " | ||
| "enabling this flag would need CRC32C to be set on iSCSI header and data digests on the " | ||
| "client for all the connections from the client to the volumes in this volume group. " | ||
| "You can achieve that by disconnecting the volumes from the client and reconnecting using " | ||
| "multi-session scripts generated in portal connect flow or from documentation, which " | ||
| "contain steps to set CRC32C on header and data digests. Do not enable CRC protection on " | ||
| "the volume group if you are using Fedora or its downstream Linux distributions such as " | ||
| "RHEL, CentOS etc. as data digests are not supported on them. " | ||
| "If you enable this flag for those distributions, connectivity to the volumes will fail. " | ||
| "Learn more: https://go.microsoft.com/fwlink/?LinkId=2294733&id=Microsoft_Azure_ElasticSan") | ||
| else: | ||
| logger.warning("CRC protection is recommended if you plan to connect the volumes in this volume group to " | ||
| "Azure Virtual Machines. Do not enable it if you are using Fedora or its downstream Linux " | ||
| "distributions such as RHEL, CentOS etc. on your VM, as data digests are not supported on " | ||
| "them. If you enable this flag for those distributions, connectivity to the volumes will " | ||
| "fail. Also, do not enable this flag if you plan to use the volumes within this volume " | ||
| "group as datastores for Azure VMware Solution (AVS), as this feature is not supported for " | ||
| "AVS yet and the datastore creation will fail. " | ||
| "Learn more: https://go.microsoft.com/fwlink/?LinkId=2294733&id=Microsoft_Azure_ElasticSan") | ||
|
|
||
|
|
||
| class VolumeGroupUpdate(_VolumeGroupUpdate): | ||
|
|
@@ -69,6 +91,28 @@ def pre_operations(self): | |
| args.identity["user_assigned_identities"] = { | ||
| uai_id: {}} | ||
| del args.identity.user_assigned_identity_id | ||
| if has_value(args.EnforceDataIntegrityCheckForIscsi) and args.EnforceDataIntegrityCheckForIscsi: | ||
| logger.warning("CRC protection feature is not supported for Azure VMware solution (AVS) yet. " | ||
| "Do not enable this flag if you plan to use the volumes within this volume group as " | ||
| "datastores for AVS, as the datastore creation will fail. For Azure Virtual Machines, " | ||
| "enabling this flag would need CRC32C to be set on iSCSI header and data digests on the " | ||
| "client for all the connections from the client to the volumes in this volume group. " | ||
| "You can achieve that by disconnecting the volumes from the client and reconnecting using " | ||
| "multi-session scripts generated in portal connect flow or from documentation, which " | ||
| "contain steps to set CRC32C on header and data digests. Do not enable CRC protection on " | ||
| "the volume group if you are using Fedora or its downstream Linux distributions such as " | ||
| "RHEL, CentOS etc. as data digests are not supported on them. " | ||
| "If you enable this flag for those distributions, connectivity to the volumes will fail. " | ||
| "Learn more: https://go.microsoft.com/fwlink/?LinkId=2294733&id=Microsoft_Azure_ElasticSan") | ||
| else: | ||
| logger.warning("CRC protection is recommended if you plan to connect the volumes in this volume group to " | ||
| "Azure Virtual Machines. Do not enable it if you are using Fedora or its downstream Linux " | ||
| "distributions such as RHEL, CentOS etc. on your VM, as data digests are not supported on " | ||
| "them. If you enable this flag for those distributions, connectivity to the volumes will " | ||
| "fail. Also, do not enable this flag if you plan to use the volumes within this volume " | ||
| "group as datastores for Azure VMware Solution (AVS), as this feature is not supported for " | ||
| "AVS yet and the datastore creation will fail. " | ||
| "Learn more: https://go.microsoft.com/fwlink/?LinkId=2294733&id=Microsoft_Azure_ElasticSan") | ||
|
|
||
| def pre_instance_update(self, instance): | ||
| from azure.cli.core.aaz import has_value | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
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.
The warning logic for CRC protection is duplicated in both create and update handlers; consider extracting it into a shared helper function to reduce code duplication and simplify future updates.