Skip to content
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

Empty retryable error received #362

Closed
blmhemu opened this issue Jul 27, 2023 · 3 comments · Fixed by #363
Closed

Empty retryable error received #362

blmhemu opened this issue Jul 27, 2023 · 3 comments · Fixed by #363

Comments

@blmhemu
Copy link

blmhemu commented Jul 27, 2023

Same setup as #349
Terraform resource is

resource "nomad_csi_volume" "alpine-caddy" {
  depends_on = [data.nomad_plugin.nfs]
  plugin_id  = data.nomad_plugin.nfs.plugin_id
  name       = "alpine-caddy"
  volume_id  = "alpine-caddy"
  capability {
    access_mode     = "multi-node-multi-writer"
    attachment_mode = "file-system"
  }
}

Initially I got

│ Error: invalid value 'capacity_min': strconv.ParseFloat: parsing "": invalid syntax
│ 
│   with nomad_csi_volume.alpine-caddy,
│   on main.tf line 34, in resource "nomad_csi_volume" "alpine-caddy":
│   34: resource "nomad_csi_volume" "alpine-caddy" {

even though that parameter is optional. (Root cause seems to be no empty checks at this and this)

I have added capacity_min and capacity_max and then got the following issues.

│ Error: empty retryable error received. This is a bug with the Terraform provider and should be reported as a GitHub issue 
in the provider repository.
│ 
│   with nomad_csi_volume.alpine-caddy,
│   on main.tf line 34, in resource "nomad_csi_volume" "alpine-caddy":
│   34: resource "nomad_csi_volume" "alpine-caddy" {

@lgfa29
Copy link
Contributor

lgfa29 commented Jul 27, 2023

Thanks for the report @blmhemu.

The retryable error was fixed in #354 but capacity_min and capacity_max should've been optional fields. This is fixed in #363.

@blmhemu
Copy link
Author

blmhemu commented Jul 27, 2023

Thanks for the quick fix(es) ! Waiting for a new release :)

@lgfa29
Copy link
Contributor

lgfa29 commented Jul 28, 2023

v2.0.0-rc.1 has been released with the fix. I ma take a bit for the Terraform registry to pick up the new version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants