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

Extreme persistent disk provisioned IOPS recreates disk #12020

Closed
przsab opened this issue Jul 5, 2022 · 1 comment · Fixed by GoogleCloudPlatform/magic-modules#6222, hashicorp/terraform-provider-google-beta#4464 or #12058
Assignees
Labels

Comments

@przsab
Copy link

przsab commented Jul 5, 2022

Terraform provider removes existing pd-extreme disks every time it is run if provisioned_iops is missing from disk definition.

resource "google_compute_disk" "disk1" {
  name = "disk1"
  type = "pd-extreme"
  size = 1
}

When no updates are made to template, provider replaces the disk during terraform apply because of PIOPS implementation (#8603)

      - provisioned_iops          = 100000 -> null # forces replacement

From the output:

google_compute_disk.disk1: Destroying... [id=projects/project1/zones/us-central1-a/disks/disk1]
google_compute_disk.disk1: Destruction complete after 2s
google_compute_disk.disk1: Creating...
google_compute_disk.disk1: Creation complete after 2s [id=projects/project1 /zones/us-central1-a/disks/disk1]

Using latest provider version over Terraform 0.12.31.

$ terraform version
Terraform v0.12.31
+ provider.google v4.27.0
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, 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 Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.