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

New Resource: azurerm_disk_pool #14675

Merged
merged 16 commits into from
Jan 5, 2022
Merged

New Resource: azurerm_disk_pool #14675

merged 16 commits into from
Jan 5, 2022

Conversation

tombuildsstuff
Copy link
Contributor

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

@lonegunmanb
Copy link
Contributor

Hello @tombuildsstuff , should I continue my work #14268 based on this pr once it has been merged? It's your call, awaiting for your instruction.

@tombuildsstuff tombuildsstuff force-pushed the f/disks branch 2 times, most recently from 7dbdd4c to b2d2b04 Compare December 22, 2021 05:58
@tombuildsstuff
Copy link
Contributor Author

Sku needs to be ForceNew in both of these:

------- Stdout: -------
=== RUN   TestAccDiskPool_upgradeSku
=== PAUSE TestAccDiskPool_upgradeSku
=== CONT  TestAccDiskPool_upgradeSku
=== CONT  TestAccDiskPool_upgradeSku
testcase.go:110: Step 3/4 error: After applying this test step, the plan was not empty.
stdout:
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# azurerm_disk_pool.test will be updated in-place
~ resource "azurerm_disk_pool" "test" {
id                  = "/subscriptions/*******/resourceGroups/acctestRG-diskspool-211223144533983359/providers/Microsoft.StoragePool/diskPools/acctest-diskspool-w1thg"
name                = "acctest-diskspool-w1thg"
~ sku_name            = "Standard_S1" -> "Premium_P1"
tags                = {}
# (4 unchanged attributes hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy.
--- FAIL: TestAccDiskPool_upgradeSku (1086.98s)

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

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

Thanks @tombuildsstuff - LGTM 🏗️

@tombuildsstuff
Copy link
Contributor Author

Tests pass:

Screenshot 2022-01-05 at 15 44 45

@katbyte katbyte merged commit e6173a1 into main Jan 5, 2022
@katbyte katbyte deleted the f/disks branch January 5, 2022 15:48
katbyte added a commit that referenced this pull request Jan 5, 2022
@github-actions
Copy link

github-actions bot commented Jan 7, 2022

This functionality has been released in v2.91.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!

katbyte pushed a commit that referenced this pull request Jan 13, 2022
… Resource `azurerm_disk_pool` on pr #14675 (#14268)

Co-authored-by: zjhe <[email protected]>
katbyte pushed a commit that referenced this pull request Feb 2, 2022
…ool` on pr #14675 (#14975)

Co-authored-by: zjhe <[email protected]>

Base on azurerm_disk_pool, added new resource azurerm_disk_pool_iscsi_target for disk pool.

This resource HAVE NOT embedded lun arguments, I think it'll be better to make a new seperate resource to managed lun disk in an iscsi target, otherwise the user need delete embedded lun inside iscsi target resource before they can delete the managed disk and the attachment.
@github-actions
Copy link

github-actions bot commented Feb 7, 2022

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.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants