huaweicloud / terraform-provider-huaweicloudstack

Terraform provider for HuaweiCloudStack
https://www.terraform.io/docs/providers/huaweicloudstack/
Mozilla Public License 2.0
7 stars 10 forks source link

Fail to create Autoscaling Group resource #9

Closed polidori7 closed 4 years ago

polidori7 commented 4 years ago

Using huaweicloudstack_as_group_v1 module show an error message describing that arguments "networks" and "security_groups" are not expected to happen inside the block but on documentation says: "networks" and "security_groups" are required information.

ShiChangkuo commented 4 years ago

@polidori7 Thanks for raising, it looks like a syntax error. Lists of objects can be created with repeated blocks, using this structure:

service {
    key = "value"
}

service {
    key = "value"
}

Obviously, the documentation gives an outdated usage , and we will correct these mistakes.

henriquepolidori commented 4 years ago

I followed this guide https://github.com/terraform-providers/terraform-provider-huaweicloudstack and test again create an AS group module using the latest huaweicloudstack provider version with Huawei Cloud Stack 6.5.1 but failed again:

As you can see, I received a message AS.2013 (invalid subnet, but before to input the value, I double checked the subnet information through huawei cloudstack networking subnet_v2 module. I tried huawei cloudstack networking subnet_v2.xxxx.id, ID directly.

image

image

version image

ShiChangkuo commented 4 years ago

@polidori7 Maybe you can use the id of network, the format likes huaweicloudstack_networking_network_v2.xxx.id

and the version of huaweicloudstack provider maybe not the latest, it should be: + provider.huaweicloudstack v1.1.0 Please have a check, thanks.

henriquepolidori commented 4 years ago

Friend,

As you can see, now I'm using this version + provider.huaweicloudstack v1.1.0 but the same issue is happening to create AS group.

image

image

I already tested using new terraform verison 0.12.20 and the same issue happen.

Best Regards

ShiChangkuo commented 4 years ago

@henriquepolidori please try to use huaweicloudstack_networking_network_v2.xxx.id instead.

henriquepolidori commented 4 years ago

Friend,

Now I was able to create AS group. Very Good, but when I tried to destroy the environment I receive this message below:

image

Should I close this ticket and open new one or Is there a relationship in use AS group using huaweicloudstack_networking_network_v2.xxx.id with this error ?

ShiChangkuo commented 4 years ago

Opening a new issue will be better.

BTW, you can also give the error message in text format, thanks.

henriquepolidori commented 4 years ago

thanks