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
When I try to create multiple volumes in a single Terraform manifest, I get an error saying:
│ Error: code: 409, message: Error creating volume - Cannot spawn additional jobs. Please wait for the ongoing jobs to finish and try again
│
│ with netapp-gcp_volume.cvs_volume_hw_premium,
│ on main.tf line 150, in resource "netapp-gcp_volume" "cvs_volume_hw_premium":
│ 150: resource "netapp-gcp_volume" "cvs_volume_hw_premium" {
│
Here is my Terraform config and Provider config:
terraform {
required_providers {
google = {
source = "hashicorp/google"
version = "~>4.32.0"
}
google-beta = {
source = "hashicorp/google-beta"
version = "~>4.32.0"
}
netapp-gcp = {
source = "NetApp/netapp-gcp"
version = "~>22.8.1"
}
}
}
provider "google" {
project = var.gcp_project_id
region = var.gcp_region
zone = var.gcp_zone
}
provider "google-beta" {
project = var.gcp_project_id
region = var.gcp_region
zone = var.gcp_zone
}
provider "netapp-gcp" {
project = var.gcp_project_id
service_account = "xxxxxxxxxxxxxxxxxxxxxxxx"
}
Here is the first resource, which succeeds in creating:
If I add a "depends_on" into this second resource, then it works! Therefore, it seems that your API doesn't support concurrent volume creation jobs. If this is the case, then the code for your Provider needs to handle this rather than expecting the user to code around the API's limitations.
The text was updated successfully, but these errors were encountered:
When I try to create multiple volumes in a single Terraform manifest, I get an error saying:
Here is my Terraform config and Provider config:
Here is the first resource, which succeeds in creating:
Then here is the second resource in the same manifest which fails with the error I mention above:
If I add a "depends_on" into this second resource, then it works! Therefore, it seems that your API doesn't support concurrent volume creation jobs. If this is the case, then the code for your Provider needs to handle this rather than expecting the user to code around the API's limitations.
The text was updated successfully, but these errors were encountered: