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

Change cds size failed #9

Open
novboy opened this issue Apr 28, 2021 · 1 comment
Open

Change cds size failed #9

novboy opened this issue Apr 28, 2021 · 1 comment

Comments

@novboy
Copy link

novboy commented Apr 28, 2021

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" {
@zhihuwang
Copy link

#10 fixed

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

2 participants