ucloud/terraform-provider-ucloud

Failed to set up VPC peering connection

zzxwill opened this issue · 1 comments

I hit the following issue when applying vpc resource in https://github.com/ucloud/terraform-provider-ucloud/tree/master/examples/vpc.

➜  vpc git:(master) t apply -auto-approve

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

  # ucloud_udpn_connection.default will be created
  + resource "ucloud_udpn_connection" "default" {
      + bandwidth   = 2
      + charge_type = "month"
      + create_time = (known after apply)
      + expire_time = (known after apply)
      + id          = (known after apply)
      + peer_region = "cn-sh2"
    }

  # ucloud_vpc.bar will be created
  + resource "ucloud_vpc" "bar" {
      + cidr_blocks  = [
          + "10.10.0.0/16",
        ]
      + create_time  = (known after apply)
      + id           = (known after apply)
      + name         = "tf-example-vpc-02"
      + network_info = (known after apply)
      + remark       = (known after apply)
      + tag          = "tf-example"
      + update_time  = (known after apply)
    }

  # ucloud_vpc.foo will be created
  + resource "ucloud_vpc" "foo" {
      + cidr_blocks  = [
          + "192.168.0.0/16",
        ]
      + create_time  = (known after apply)
      + id           = (known after apply)
      + name         = "tf-example-vpc-01"
      + network_info = (known after apply)
      + remark       = (known after apply)
      + tag          = "tf-example"
      + update_time  = (known after apply)
    }

  # ucloud_vpc_peering_connection.connection will be created
  + resource "ucloud_vpc_peering_connection" "connection" {
      + id              = (known after apply)
      + peer_project_id = (known after apply)
      + peer_region     = "cn-sh2"
      + peer_vpc_id     = (known after apply)
      + vpc_id          = (known after apply)
    }

Plan: 4 to add, 0 to change, 0 to destroy.
ucloud_vpc.bar: Creating...
ucloud_vpc.foo: Creating...
ucloud_udpn_connection.default: Creating...
ucloud_vpc.foo: Creation complete after 5s [id=uvnet-mcyi4jhk]
ucloud_vpc.bar: Creation complete after 5s [id=uvnet-ev1ce1bd]
ucloud_udpn_connection.default: Still creating... [10s elapsed]
ucloud_udpn_connection.default: Still creating... [20s elapsed]
ucloud_udpn_connection.default: Still creating... [30s elapsed]
ucloud_udpn_connection.default: Still creating... [40s elapsed]
ucloud_udpn_connection.default: Still creating... [50s elapsed]
ucloud_udpn_connection.default: Still creating... [1m0s elapsed]
ucloud_udpn_connection.default: Still creating... [1m10s elapsed]
ucloud_udpn_connection.default: Still creating... [1m20s elapsed]
ucloud_udpn_connection.default: Still creating... [1m30s elapsed]
ucloud_udpn_connection.default: Still creating... [1m40s elapsed]
ucloud_udpn_connection.default: Still creating... [1m50s elapsed]
ucloud_udpn_connection.default: Still creating... [2m0s elapsed]
ucloud_udpn_connection.default: Still creating... [2m10s elapsed]
ucloud_udpn_connection.default: Still creating... [2m20s elapsed]
ucloud_udpn_connection.default: Still creating... [2m30s elapsed]
ucloud_udpn_connection.default: Still creating... [2m40s elapsed]
ucloud_udpn_connection.default: Still creating... [2m50s elapsed]
╷
│ Error: error on waiting for udpn connection "" complete creating, couldn't find resource (21 retries)
│
│   with ucloud_udpn_connection.default,
│   on main.tf line 11, in resource "ucloud_udpn_connection" "default":
│   11: resource "ucloud_udpn_connection" "default" {
│
╵

I will try to running the test to see if I can reproduce the error.