-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
New resource azurerm_disk_pool_managed_disk_attachment
based on New Resource azurerm_disk_pool
on pr #14675
#14268
New resource azurerm_disk_pool_managed_disk_attachment
based on New Resource azurerm_disk_pool
on pr #14675
#14268
Conversation
3ec04b9
to
54d8151
Compare
New added acc test: |
This PR introduces a new resource azurerm_disk_pool which supersedes the existing azurerm_storage_disks_pool - this is because the existing resource is unrelated to the Storage package and is a collection of (Managed) Disks. Since there's a number of Disk related resources (and will be more with #14268) - this pulls the existing resource and this new resource out into it's own package. There's a follow up here to move Managed Disks into this package too, but that's outside the scope of this PR. Dependent on #14673 and #14672
c67ef49
to
8b58cfe
Compare
Hi @tombuildsstuff , I've moved origin attachment code to disks directory, along with acc tests. === RUN TestAccStorageDisksPoolDiskAttachment_basic Process finished with the exit code 0 |
014f95a
to
634f762
Compare
azurerm_storage_disks_pool_managed_disk_attachment
azurerm_disk_pool_managed_disk_attachment
based on New Resource azurerm_disk_pool
on pr #14675
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.
We have a test failure here:
------- Stdout: -------
=== RUN TestAccDiskPoolDiskAttachment_requiresImport
=== PAUSE TestAccDiskPoolDiskAttachment_requiresImport
=== CONT TestAccDiskPoolDiskAttachment_requiresImport
testcase.go:110: Step 1/2 error: Error running apply: exit status 1
Error: creating Disk Pool (Subscription: "*******"
Resource Group Name: "acctestRG-diskpool-220112211612942034"
Disk Pool Name: "acctest-diskpool-vnq7y"): polling after CreateOrUpdate: Code="GoalStateApplicationTimeoutError" Message="The deployment of the resource did not complete in the allowed time. Please try again. (Tracking id : fcf8a383-0097-9cf6-6431-50aa6dd7da5d). https://aka.ms/diskpools-troubleshooting."
should we be wrapping this in a pluginsdk.Retry() that looks for "Please Try again" and tried again after 5 min?
Hello @katbyte , I've added retry to
I've chosen the following errors as retryable: retryableErrors := []string{
"DeploymentTimeout",
"GoalStateApplicationTimeoutError",
"OngoingOperationInProgress",
} And acc tests: === RUN TestAccDiskPool_basic Process finished with the exit code 0 === RUN TestAccDiskPoolDiskAttachment_basic Process finished with the exit code 0 |
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.
Awesome @lonegunmanb! much better then grepping for a string thanks
LGTM 🏗️
This functionality has been released in v2.92.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
A new resource allow user add or remove a managed disk to a disks pool as this doc described.