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
Terraform Core Version
1.13.4
ONTAP Provider Version
2.3.0
Affected Resource(s)
netapp-ontap_flexcacheAlso the datasources
netapp-ontap_flexcacheandnetapp-ontap_flexcachesExpected Behavior
I should be able to create
netapp-ontap_flexcachewithuse_tiered_aggregateset totrue.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_flexcachethe apply fails because the state gets set back to false.Relevant Error/Panic Output Snippet
Terraform Configuration Files
Steps to Reproduce
Create any flexcache volume with
use_tiered_aggregate = trueDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
Yes