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
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.
resource"ibm_pi_network_port_attach""port_attach_reserve" {
count=length(local.reserve_ips) >0?length(local.reserve_ips) :0pi_cloud_instance_id=var.powervs_workspace_guid// workspace guidpi_instance_id=local.reserve_ips[count.index].pvm_instance_id// pvm_instance_idpi_network_name=local.reserve_ips[count.index].name// network namepi_network_port_ipaddress=local.reserve_ips[count.index].ip// ip address from the network cidr
}
Debug Output
IBM Schemetic workspace logs:
2024/06/24 20:10:31 Terraformapply | Error: failedtoGetPINetworkPort 06d6ce7f-7b6b-4a7b-8bde-48bac3924daeforNetworkreserve_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/2420:10:31 Terraform apply |
2024/06/2420:10:31 Terraform apply | with module.site1_powervs_instance.ibm_pi_network_port_attach.port_attach_reserve[0],
2024/06/2420: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 Terraformapply | 305: resource"ibm_pi_network_port_attach""port_attach_reserve" {
2024/06/2420:10:31 Terraform apply |
2024/06/2420:10:31 �[1m�[31mTerraform APPLYerror:TerraformAPPLYerrorexitstatus1�[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 Terraformapply | Error: failedtoGetPINetworkPort 06d6ce7f-7b6b-4a7b-8bde-48bac3924daeforNetworkreserve_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/2420:10:31 Terraform apply |
2024/06/2420:10:31 Terraform apply | with module.site1_powervs_instance.ibm_pi_network_port_attach.port_attach_reserve[0],
2024/06/2420: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 Terraformapply | 305: resource"ibm_pi_network_port_attach""port_attach_reserve" {
2024/06/2420:10:31 Terraform apply |
2024/06/2420:10:31 �[1m�[31mTerraform APPLYerror:TerraformAPPLYerrorexitstatus1�[39m�[0m
Here port is being attached but we are getting this error through the powervs port attachment resource.
Can you verify if network is created in the same flow? If yes then you will need to reference network resource o/p to this resource or add explicit depends_on.
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
The text was updated successfully, but these errors were encountered: