-
Notifications
You must be signed in to change notification settings - Fork 11
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
provider failed with terraform 1.5.3 #79
Comments
@samuev Using terraform 1.5.2, I was able to create the follow project with no error: alexh@alexh-mac terraform-provider-project % terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# project.myproject will be created
+ resource "project" "myproject" {
+ block_deployments_on_limit = false
+ description = "My Project"
+ display_name = "My Project"
+ email_notification = true
+ id = (known after apply)
+ key = "myproj"
+ max_storage_in_gibibytes = 10
+ admin_privileges {
+ index_resources = true
+ manage_members = true
+ manage_resources = true
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
project.myproject: Creating...
project.myproject: Creation complete after 0s [id=myproj]
Apply complete! Resources: 1 added, 0 changed, 0 destroyed. alexh@alexh-mac terraform-provider-project % terraform -v
Terraform v1.5.2
on darwin_amd64
+ provider registry.terraform.io/jfrog/project v1.1.17
Your version of Terraform is out of date! The latest version
is 1.5.6. You can update by downloading from https://www.terraform.io/downloads.html |
@samuev I upgraded |
@alexhung - that value is suspicious: It's The maximum negative 32 bit value Looking at this line You can see that, any value greater than 3 for gigibytes will overwhelm a 32 bit number. @samuev - is your machine running a 32 bit chip/os? I see you're running windows. If you were to put 10 for gigibytes, I don't know how go would behave since the value type for this code is Here's my theory: The client is 32 bits, and 10gb overflows with; the result of which I can't find a clear answer on (in go). I don't have access to a 32 bit system to try it There is an easy test for @samuev - try running this again, except set the quota to As for @alexhung - the simplest, and safest thing to do, would be to explicitly set the type to var a int32 = 1024*1024*1024*10 // won't compile
var b int32 = 1024*1024*1024 //compiles |
@chb0github You are on the money. The thought of incorrect integer type crossed my mind briefly but I didn't follow up when I couldn't reproduce. Switching type to |
Yeah, you're going to have to replace |
Use int64 explicitly with max_storage_in_gibibytes
Describe the bug
Managing a project via terraform 1.4.6 works fine.
same code with terraform 1.5.3 produce the following error:
Requirements for and issue
curl
it at$host/artifactory/api/system/version
7.59.9Expected behavior
should work as terraform 1.4.6.
changes to max_storage_in_gibibytes produce the same error again
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: