Skip to content
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

Failed to set up VPC peering connection #112

Open
zzxwill opened this issue Feb 18, 2022 · 1 comment
Open

Failed to set up VPC peering connection #112

zzxwill opened this issue Feb 18, 2022 · 1 comment
Assignees

Comments

@zzxwill
Copy link
Contributor

zzxwill commented Feb 18, 2022

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" {
│
╵
@wangrzneu
Copy link
Collaborator

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

@wangrzneu wangrzneu self-assigned this May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants