Skip to content

[Bug]: Unable to create a volume larger than 2 GB #413

Open
@cissvvs

Description

@cissvvs

Terraform Core Version

1.10.5

ONTAP Provider Version

2.1.0

Affected Resource(s)

When trying to create a volume with a sise greater than about 2000 mb, receiving error message:
error on POST storage/volumes: REST reported error restclient.RestError{Code:"917534", Message:"Size
│ "-1.07GB" ("-1149239296B") is too small. Minimum size is "20MB" ("20971520B"). ", Target:""},
│ statusCode: 500, statusCode 500

Other times, when trying with size of 5000 mb, the error states:
netapp-ontap_storage_volume_resource.ontap_vol: Destroying... [id=24fce07d-f067-11ef-9ffa-8fa18b669023]
netapp-ontap_storage_volume_resource.ontap_vol: Destruction complete after 1s
netapp-ontap_storage_volume_resource.ontap_vol: Creating...

│ Error: Provider produced inconsistent result after apply

│ When applying changes to netapp-ontap_storage_volume_resource.ontap_vol, provider
│ "provider["registry.terraform.io/netapp/netapp-ontap"]" produced an unexpected new value: .space.size: was
│ cty.NumberIntVal(5000), but now cty.NumberIntVal(904).

│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Expected Behavior

The expected behavior is for the volume to be created, as happens with a size of 1000 mb or less.

Actual Behavior

Error shown:
Error: Provider produced inconsistent result after apply

│ When applying changes to netapp-ontap_storage_volume_resource.ontap_vol, provider
│ "provider["registry.terraform.io/netapp/netapp-ontap"]" produced an unexpected new value: .space.size: was
│ cty.NumberIntVal(5000), but now cty.NumberIntVal(904).

Relevant Error/Panic Output Snippet

Terraform Configuration Files

main.tf.txt
variables.tf.txt

Steps to Reproduce

Create folder under terraform path fsx-dev.
Create aws cli connection profile called aws-fsx
Execute the following commands:

terraform -chdir=.\fsx-dev init

terraform -chdir=.\fsx-dev fmt

terraform -chdir=.\fsx-dev validate

terraform -chdir=.\fsx-dev plan
var.share_name
Enter a value: tf1

terraform -chdir=.\fsx-dev apply
var.share_name
Enter a value: tf1

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

Metadata

Metadata

Assignees

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