Skip to content

autotune_policies configuration for oci_core_volume odd behaviour #2473

@bogdan-m-darie

Description

@bogdan-m-darie

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version and Provider Version

$ terraform -v
Terraform v1.13.4
on linux_amd64
+ provider registry.terraform.io/oracle/oci v7.23.0

Affected Resource(s)

oci_core_volume

Terraform Configuration Files

autotune_policies = [
  {
    autotune_type = "DETACHED_VOLUME"
  },
  {
    autotune_type   = "PERFORMANCE_BASED"
    max_vpus_per_gb = 120
  }
]

Debug Output

Panic Output

Expected Behavior

I've provisioned a detached volume with the above autotone_policies. If I want to delete/disable the policies, I'm expecting that the commenting/removal of all the autotune_policies section from the tfvars will result in disabling/deletion of the policies.

Actual Behavior

Only if I delete the

  {
    autotune_type   = "PERFORMANCE_BASED"
    max_vpus_per_gb = 120
  }

Terraform deletes that policy. If I delete/comment the whole autotune_policies block from the tfvars, nothing happens.

Steps to Reproduce

  1. terraform apply using the above autotune_policies.
  2. comment or remove the whole autotune_policies block
  3. terraform apply again.

Important Factoids

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-ProgressTerraform Team is working on the reproduce & fixbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions