Skip to content

[Bug]: netapp-ontap_flexcache errors if use_tiered_aggregate set to true #581

@brinnjoyce

Description

@brinnjoyce

Terraform Core Version

1.13.4

ONTAP Provider Version

2.3.0

Affected Resource(s)

  • netapp-ontap_flexcache
    Also the datasources netapp-ontap_flexcache and netapp-ontap_flexcaches

Expected Behavior

I should be able to create netapp-ontap_flexcache with use_tiered_aggregate set to true.

Including it in the fields for the GET requests is pointless because there's no value to be returned.

Actual Behavior

After creating the netapp-ontap_flexcache the apply fails because the state gets set back to false.

Relevant Error/Panic Output Snippet

╷
│ Error: Provider produced inconsistent result after apply
│
│ When applying changes to netapp-ontap_flexcache.volume, provider "provider[\"registry.terraform.io/netapp/netapp-ontap\"]" produced an unexpected new value:
│ .use_tiered_aggregate: was cty.True, but now cty.False.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Terraform Configuration Files

resource "netapp-ontap_flexcache" "volume" {
  cx_profile_name = "fsx"
  name            = "volume"
  svm_name        = "fsx-svm"
  origins = [
    {
      volume = {
        name = "volume"
      },
      svm = {
        name = "source-svm"
      }
    }
  ]
  junction_path = "/volume"
  use_tiered_aggregate = true
}

Steps to Reproduce

Create any flexcache volume with use_tiered_aggregate = true

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions