terraform-provider-baiducloud icon indicating copy to clipboard operation
terraform-provider-baiducloud copied to clipboard

Change cds size failed

Open novboy opened this issue 3 years ago • 1 comments

refer to issue #8 , change disk size from 40 GB to 50 GB , got following error:

baiducloud_cds.tf-server-data: Refreshing state... [id=v-LTPPeii1]
baiducloud_eip.tf-eip: Refreshing state... [id=180.76.154.104]
baiducloud_instance.tf-server: Refreshing state... [id=i-nJMIKbZW]
baiducloud_eip_association.tf-eip-link: Refreshing state... [id=180.76.154.104]
baiducloud_cds_attachment.default: Refreshing state... [id=v-LTPPeii1]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  ~ update in-place

Terraform will perform the following actions:

  # baiducloud_cds.tf-server-data will be updated in-place
  ~ resource "baiducloud_cds" "tf-server-data" {
      ~ disk_size_in_gb = 40 -> 50
        id              = "v-LTPPeii1"
        name            = "tf-server-data"
        # (8 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Do you want to perform these actions in workspace "vm-2"?
  Terraform will perform the actions described above.
  Only 'yes' will be accepted to approve.

  Enter a value: yes

baiducloud_cds.tf-server-data: Modifying... [id=v-LTPPeii1]
╷
│ Error: [ERROR] terraform-provider-baiducloud/baiducloud/resource_baiducloud_cds.go:295:
│ [ERROR] terraform-provider-baiducloud/baiducloud/service_baiducloud_cds.go:183: Resource baiducloud_cds Resize CDS volume v-LTPPeii1 Failed!!! [SDK bce-sdk-go ERROR]:
│ [Code: BadRequest; Message: Type cannot be changed to ephemeral; RequestId: 15ad24a5-ee53-4986-b08f-4c1cdb9e2852]
│ 
│   on baidu-vm.tf line 32, in resource "baiducloud_cds" "tf-server-data":
│   32: resource "baiducloud_cds" "tf-server-data" {

novboy avatar Apr 28 '21 01:04 novboy

#10 fixed

zhihuwang avatar Jun 09 '21 01:06 zhihuwang