Skip to content

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

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

Open
cissvvs opened this issue Feb 21, 2025 · 2 comments
Open

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

cissvvs opened this issue Feb 21, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@cissvvs
Copy link

cissvvs commented Feb 21, 2025

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

@cissvvs cissvvs added the bug Something isn't working label Feb 21, 2025
@wenjun666 wenjun666 self-assigned this Mar 4, 2025
@wenjun666
Copy link
Contributor

Do you get this error consistently? just again want to make sure the input is valid, as there is a negative sign in "-1.07GB".

@cissvvs
Copy link
Author

cissvvs commented Mar 7, 2025

Yes, it was consistent problem. I have attached the tf script that was causing the problem, please try to reproduce on your side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants