You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
terraform plan should have showed which resources are to be created, in this case 2 resources (1 image, 1 vm).
Actual Behavior
terraform plan failed and the plugin crashed, due to a value out of range error
Steps to Reproduce
terraform plan
Important Factors
Environment: Using Windows 11, Nutanix Provider 1.8.1 Workaround found:
The issue is with the "disk_size_bytes" variable. I changed this line to be - disk_size_mib = 10 * 1024 and then ran terraform plan again. This time it was successful.
References
The text was updated successfully, but these errors were encountered:
This isn't a provider issue, it's related to the Terraform SDK. It often happens when users accidentally install the 32-bit version of Terraform, which can still run on 64-bit systems.
Integer Limitations:
On 32-bit systems, the maximum signed integer is 2,147,483,647 (2³¹ - 1). If you use a value larger than this, like 10,737,418,240 (10¹⁰, ~10 GB), it exceeds the limit. This triggers a strconv.ParseInt error, throwing "value out of range."
The 64-bit version, however, can handle integers up to 9,223,372,036,854,775,807 (2⁶³ - 1), which is why the error doesn't appear when using it.
Solution:
Install the 64-bit version of Terraform to resolve this issue.
For example, if you check your Terraform version and see:
Terraform v1.9.5
on windows_386
You're using the 32-bit version. After downloading the 64-bit version, the output should look like this:
Nutanix Cluster Information
Terraform Version
v1.4.6
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/colcove/8d01a5a61c2a7425b14c2d4ef151cc72
Panic Output
Expected Behavior
terraform plan
should have showed which resources are to be created, in this case 2 resources (1 image, 1 vm).Actual Behavior
terraform plan
failed and the plugin crashed, due to a value out of range errorSteps to Reproduce
terraform plan
Important Factors
Environment: Using Windows 11, Nutanix Provider 1.8.1
Workaround found:
The issue is with the "disk_size_bytes" variable. I changed this line to be -
disk_size_mib = 10 * 1024
and then ranterraform plan
again. This time it was successful.References
The text was updated successfully, but these errors were encountered: