Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform CLI and Terraform IBM Provider Version
IBM : 1.65.1
Affected Resource(s)
pi_network_port_attach
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
2024/06/24 20:10:31 Terraform apply | Error: failed to Get PI Network Port 06d6ce7f-7b6b-4a7b-8bde-48bac3924dae for Network reserve_network_1: [GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}][404] pcloudNetworksPortsGetNotFound &{Code:0 Description:network does not exist. Check the details and try again or contact support for help, id: 7cc54728-b892-4f2b-8812-cdc26dc4cfb9 Error:network not found Message:}
2024/06/24 20:10:31 Terraform apply |
2024/06/24 20:10:31 Terraform apply | with module.site1_powervs_instance.ibm_pi_network_port_attach.port_attach_reserve[0],
2024/06/24 20:10:31 Terraform apply | on ../../modules/powervs-instance-custom/main.tf line 305, in resource "ibm_pi_network_port_attach" "port_attach_reserve":
2024/06/24 20:10:31 Terraform apply | 305: resource "ibm_pi_network_port_attach" "port_attach_reserve" {
2024/06/24 20:10:31 Terraform apply |
2024/06/24 20:10:31 [1m[31mTerraform APPLY error: Terraform APPLY errorexit status 1[39m[0m
Panic Output
Expected Behavior
Network is already there so we should not get the error like network does not exist at the time of port attachment.
Actual Behavior
Network is already there and port also get attached but terraform is giving error like network does not exist at the time of port attachment .
This issue is intermittent, but we are getting this issue often.
IBM catalog schematic workspace logs:
2024/06/24 20:10:31 Terraform apply | Error: failed to Get PI Network Port 06d6ce7f-7b6b-4a7b-8bde-48bac3924dae for Network reserve_network_1: [GET /pcloud/v1/cloud-instances/{cloud_instance_id}/networks/{network_id}/ports/{port_id}][404] pcloudNetworksPortsGetNotFound &{Code:0 Description:network does not exist. Check the details and try again or contact support for help, id: 7cc54728-b892-4f2b-8812-cdc26dc4cfb9 Error:network not found Message:}
2024/06/24 20:10:31 Terraform apply |
2024/06/24 20:10:31 Terraform apply | with module.site1_powervs_instance.ibm_pi_network_port_attach.port_attach_reserve[0],
2024/06/24 20:10:31 Terraform apply | on ../../modules/powervs-instance-custom/main.tf line 305, in resource "ibm_pi_network_port_attach" "port_attach_reserve":
2024/06/24 20:10:31 Terraform apply | 305: resource "ibm_pi_network_port_attach" "port_attach_reserve" {
2024/06/24 20:10:31 Terraform apply |
2024/06/24 20:10:31 [1m[31mTerraform APPLY error: Terraform APPLY errorexit status 1[39m[0m
Here port is being attached but we are getting this error through the powervs port attachment resource.
Community Note
Terraform CLI and Terraform IBM Provider Version
IBM : 1.65.1
Affected Resource(s)
Terraform Configuration Files
Please include all Terraform configurations required to reproduce the bug. Bug reports without a functional reproduction may be closed without investigation.
Debug Output
IBM Schemetic workspace logs:
Panic Output
Expected Behavior
Network is already there so we should not get the error like
network does not exist
at the time of port attachment.Actual Behavior
Network is already there and port also get attached but terraform is giving error like
network does not exist
at the time of port attachment . This issue is intermittent, but we are getting this issue often.IBM catalog schematic workspace logs:
Here port is being attached but we are getting this error through the powervs port attachment resource.
Steps to Reproduce
ibm_pi_network
resource.ibm_pi_network_port_attach
.terraform apply
Important Factoids
References
0000