-
Notifications
You must be signed in to change notification settings - Fork 668
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
ibm_is_instance_volume_attachment - Multiple volume creation and attachment failure #3077
Comments
@ujjwal-ibm Could you please check? |
@jjordana27 try adding |
Thank you ! Adding profile = "custom" to ibm_is_instance_volume_attachment solves part of the problem: it no longer shows the error and with one terraform apply I can create all the resources without problem. However, the issue with destroying the attachments still exists. Terraform Configuration FilesSame input variables, I only added profile argument to configuration
Debug OutputThis log file has been created using
logfile (I also added the cmd output): https://gist.github.com/jjordana27/094766b675e687b35cc89ff55de1595e |
@jjordana27 seems like an intermittent issue with multiple volume attachments. We're looking into it. |
Available in 1.33.0 |
Community Note
Terraform CLI and Terraform IBM Provider Version
Terraform v1.0.3 on windows_amd64
provider registry.terraform.io/ibm-cloud/ibm v1.31.0
Affected Resource(s)
resource ibm_is_instance_volume_attachment
Terraform Configuration Files
config:
volumes_variables:
Expected Behavior
Creation of all resources
Actual Behavior
module.servers.ibm_is_instance_volume_attachment.testacc_att1[1]: Creation complete after 50s [id=02b7_9edcb278-81ac-4986-9511-ceaceb7d8510/02b7-b858f66a-67f4-42e6-a344-3c4dfde43dc8]
│Error: Error while attaching volume for instance 02b7_9edcb278-81ac-4986-9511-ceaceb7d8510: "User defined volume IOPS is not allowed for storage tier of specified volume profile general-purpose"
│
│ with module.servers.ibm_is_instance_volume_attachment.testacc_att1[0],
│ on module_vpc_instance\main.tf line 30, in resource "ibm_is_instance_volume_attachment" "testacc_att1":
│ 30: resource "ibm_is_instance_volume_attachment" "testacc_att1" {
│
The problem with this output (apart from the fact that the IOPS and Capacity value inputted is valid for web UI) is that testacc_att1[0] has the same IOPS and capacity value as testacc_att1[1], yet testacc_att1[1] has been created without problem
Furthermore, using terraform apply again easily creates the failed testacc_att1[0] without any issue. Different executions sometimes make testacc_att1[1] fail after testacc_att1[0] creation, and the error usually happens when one finishes creating(both begin creating at the same time).
Also, when deleting all the created resources (terraform destroy), testacc_att1[1] is very easy to destroy, but testacc_att1[0] timeouts (the opposite happens when testacc_att1[1] fails to create) and gets destroyed along all other resources after using terraform destroy again
Debug Output
This log file has been created using terraform apply two times:
The first shows the issue
The second allows the creation of the missing resource that could not be created with the first terraform apply due to the issue. For some reason, in the second terraform apply the error does not happen.
https://gist.github.com/jjordana27/bba305b96698119e9fde29a0156fbece
This log file has been created using terraform destroy two times:
https://gist.github.com/jjordana27/0944dcc5f4be0a546b502d5b1f585325
The text was updated successfully, but these errors were encountered: