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

ipv6_cidr_block_mask can't be optional when enabling IPv6 for vSwitch #7170

Open
awx-fuyuanchu opened this issue Apr 18, 2024 · 0 comments
Open

Comments

@awx-fuyuanchu
Copy link

Hi there,

Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.

Terraform Version

Run terraform -v to show the version. If you are not running the latest version of Terraform, please upgrade because your issue may have already been fixed.

> terraform -v
Terraform v1.0.8
on darwin_amd64

Affected Resource(s)

Please list the resources as a list, for example:

  • alicloud_vswitch

If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.

Terraform Configuration Files

  # alicloud_vswitch.alicloud_vswitches["ipv6-test-1"] will be updated in-place
  ~ resource "alicloud_vswitch" "alicloud_vswitches" {
      ~ enable_ipv6       = false -> true
        id                = "vsw-xxxxxxx"
        name              = "ipv6-test-1"
        # (8 unchanged attributes hidden)
    }

Panic Output

│ Error: [ERROR] terraform-provider-alicloud/alicloud/resource_alicloud_vswitch.go:266: Resource vsw-xxxxxxx ModifyVSwitchAttribute Failed!!! [SDK alibaba-cloud-sdk-go ERROR]:
│ SDKError:
│    StatusCode: 400
│    Code: MissingParam.Ipv6CidrBlock
│    Message: code: 400, The parameter The parameter Ipv6CidrBlock is mandatory. is mandatory. request id: 3BA4E41A-97A2-5925-B454-34FCE6AF7ABB
│    Data: {"Code":"MissingParam.Ipv6CidrBlock","HostId":"xxxxxxx.aliyuncs.com","Message":"The parameter The parameter Ipv6CidrBlock is mandatory. is mandatory.","Recommend":"https://api.aliyun.com/troubleshoot?q=MissingParam.Ipv6CidrBlock&product=Vpc&requestId=3BA4E41A-97A2-5925-B454-34FCE6AF7ABB","RequestId":"3BA4E41A-97A2-5925-B454-34FCE6AF7ABB"}
│
│
│   with alicloud_vswitch.alicloud_vswitches["ipv6-test-1"],
│   on main.tf line 38, in resource "alicloud_vswitch" "alicloud_vswitches":
│   38: resource "alicloud_vswitch" "alicloud_vswitches" {
│

Expected Behavior

What should have happened?

As mentioned in this doc, ipv6_cidr_block_mask is optional. So the vSwitch will enable the IPv6 with a generated ipv6_cidr_block_mask when enable_ipv6 is set to true.

Actual Behavior

What actually happened?

Error is shown above. Missing Ipv6CidrBlock when enabling IPv6

Steps to Reproduce

Please list the steps required to reproduce the issue, for example:

  1. terraform apply

Important Factoids

It'll work if I set the attribute ipv6_cidr_block_mask of the resource alicloud_vswitch.

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

1 participant