seal-io / walrus

Walrus is an open-source application management platform based on IaC tools including OpenTofu, Terraform and others. It helps platform engineers build golden paths for developers and empowers developers with self-service capabilities.
Apache License 2.0
427 stars 48 forks source link

Deletion of the Alibaba Cloud vSwitch and VPC failed #2226

Open Finenyaco opened 8 months ago

Finenyaco commented 8 months ago

Describe the bug

Steps to reproduce

  1. Using built-in resource definition postgresql to create a resoruce and do not specify the VPC id.
  2. Wait for the resource deployment to complete.
  3. Stop the resource and check the component list after stopping.

Result

  1. Deletion of one vSwitch and one VPC failed.

    image
  2. Check the run details.

    image
  3. Check the event details on the Alicloud consoles.

    image
image

Expected behavior

Environment

Additional context Add any other context about the problem here.

shanewxy commented 8 months ago

The API of Alibaba is unstable. Sometimes the first-time deletion fails on the vswitch because of dependency issues, but the resources that depend on it have already been removed from the console.

Found similar issues on the Alibaba provider like https://github.com/aliyun/terraform-provider-alicloud/issues/2114.

We could upgrade the provider version once it got fixed on the provider side. For now, as a workaround, we could make a second attempt if the first deletion failed. It usually works fine for the second deletion.