You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ovh_cloud_project_network_private.vnet: Refreshing state... [id=pn-xxx]
2022-08-04T09:43:08.632+0200 [INFO] provider.terraform-provider-ovh_v0.19.1: 2022/08/04 09:43:08 [DEBUG] Will read public cloud private network for project: xxx, id: pn-xxx: timestamp=2022-08-04T09:43:08.632+0200
2022-08-04T09:43:08.632+0200 [INFO] provider.terraform-provider-ovh_v0.19.1: 2022/08/04 09:43:08 [DEBUG] OVH API Request Details:
---[ REQUEST ]---------------------------------------
GET /1.0/cloud/project/xxx/network/private/pn-xxx HTTP/1.1
[...]
-----------------------------------------------------: timestamp=2022-08-04T09:43:08.632+0200
2022-08-04T09:43:10.499+0200 [INFO] provider.terraform-provider-ovh_v0.19.1: 2022/08/04 09:43:10 [DEBUG] OVH API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/1.1 200 OK
[...]
10f
{
"id": "pn-xxx",
"name": "xxx",
"vlanId": 2,
"regions": [
{
"region": "SBG5",
"status": "ACTIVE",
"openstackId": "xxx"
},
{
"region": "GRA7",
"status": "ACTIVE",
"openstackId": "xxx"
}
],
"type": "private",
"status": "ACTIVE"
}
0
-----------------------------------------------------: timestamp=2022-08-04T09:43:10.498+0200
2022-08-04T09:43:10.499+0200 [INFO] provider.terraform-provider-ovh_v0.19.1: 2022/08/04 09:43:10 [DEBUG] Read Public Cloud Private Network Id: pn-xxx, Status: ACTIVE, Name: xxx, Vlanid: 2, Type: private, Regions: [Status:ACTIVE, Region: SBG5 Status:ACTIVE, Region: GRA7]: timestamp=2022-08-04T09:43:10.499+0200
2022-08-04T09:43:10.500+0200 [WARN] Provider "registry.terraform.io/ovh/ovh" produced an unexpected new value for ovh_cloud_project_network_private.vnet during refresh.
- .regions_status: planned set element cty.ObjectVal(map[string]cty.Value{"region":cty.StringVal("GRA7"), "status":cty.StringVal("ACTIVE")}) does not correlate with any element in actual
- .regions_attributes: planned set element cty.ObjectVal(map[string]cty.Value{"openstackid":cty.StringVal("xxx"), "region":cty.StringVal("GRA7"), "status":cty.StringVal("ACTIVE")}) does not correlate with any element in actual
2022-08-04T09:43:10.502+0200 [INFO] ReferenceTransformer: reference not found: "var.service_name"
2022-08-04T09:43:10.502+0200 [DEBUG] ReferenceTransformer: "ovh_cloud_project_network_private_subnet.vnet_subnet_gra" references: []
2022-08-04T09:43:10.502+0200 [INFO] ReferenceTransformer: reference not found: "var.service_name"
2022-08-04T09:43:10.502+0200 [DEBUG] ReferenceTransformer: "ovh_cloud_project_network_private_subnet.vnet_subnet_sbg" references: []
The OVH API returns the expected result (all regions).
The root cause may be related to this part:
2022-08-04T09:43:10.500+0200 [WARN] Provider "registry.terraform.io/ovh/ovh" produced an unexpected new value for ovh_cloud_project_network_private.vnet during refresh.
- .regions_status: planned set element cty.ObjectVal(map[string]cty.Value{"region":cty.StringVal("GRA7"), "status":cty.StringVal("ACTIVE")}) does not correlate with any element in actual
- .regions_attributes: planned set element cty.ObjectVal(map[string]cty.Value{"openstackid":cty.StringVal("xxx"), "region":cty.StringVal("GRA7"), "status":cty.StringVal("ACTIVE")}) does not correlate with any element in actual
Expected Behavior
regions_attributes should contain all regions defined in regions key
Actual Behavior
regions_attributes contains only one region (not always the same)
In fact, if you change the type to TypeList there is no problem and the regions are filled correctly. Also, I tested the current type (TypeSet) adding a custom hashing function:
Hello,
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
The OVH API returns the expected result (all regions).
The root cause may be related to this part:
Expected Behavior
regions_attributes should contain all regions defined in regions key
Actual Behavior
regions_attributes contains only one region (not always the same)
Steps to Reproduce
terraform apply
References
Could be related to #254
The text was updated successfully, but these errors were encountered: