Open eissko opened 1 month ago
Looks like this is a different conflict but I had to manually manipulate state to remove a conflicting setting (mine was related to DDoS). I think my issue was also in upgrading from 32.
Based on the diagnostic_attribute="AttributeName("https")"
you might need to edit the state or change the HCL to remove your http_protocol_enable_v1_only
block then update the HCL with a different setting and then do the provider upgrade.
Obviously not working as intended, but if you're stuck there are options.
@michaelbuemi thank you for response. from debug log I see those attributes are deprecated enable_ddos_detection, disable_ddos_detection, enable_threat_intelligence, disable_threat_intelligence but those are not causing an issue during upgrade. I removed below block from terraform state and plan was suddenly successful.
"http_protocol_options": [
{
"http_protocol_enable_v1_only": true,
"http_protocol_enable_v1_v2": false,
"http_protocol_enable_v2_only": false
}
],
This is disaster. Having tens or hundreds terraform states, you have to write script to adjust iteratively all states prior the upgrade.
This is disaster. Having tens or hundreds terraform states, you have to write script to adjust iteratively all states prior the upgrade.
Agreed, this is going to have to get worked out or it won't be sustainable.
@michaelbuemi Looks like this has been fixed here in volterra provider 0.11.35 -> fix https state change issue by @SanjeetKr7 in https://github.com/volterraedge/terraform-provider-volterra/pull/275
However, I am not sure if this fix covers all cases for:
"http_protocol_enable_v1_only": true,
"http_protocol_enable_v1_v2": false,
"http_protocol_enable_v2_only": false
My issues was only with "http_protocol_enable_v1_only", so I am fine. But I don't see in the code change mentioned strings "http_protocol_enable_v1_v2" and "http_protocol_enable_v2_only"
I am unable to upgrade volterra provider
ERROR:
2024-08-09T14:53:17.303Z [ERROR] provider.terraform-provider-volterra_v0.11.34: Response contains error diagnostic: tf_provider_addr=provider diagnostic_severity=ERROR diagnostic_summary="missing expected [" tf_proto_version=5.3 tf_req_id=791fd57d-057e-9638-4c83-390a5459fa28 @caller=github.com/hashicorp/terraform-plugin-go@v0.14.3/tfprotov5/internal/diag/diagnostics.go:55 @module=sdk.proto tf_rpc=UpgradeResourceState diagnostic_attribute="AttributeName(\"https\")" diagnostic_detail="" tf_resource_type=volterra_http_loadbalancer timestamp=2024-08-09T14:53:17.303Z 2024-08-09T14:53:17.306Z [ERROR] vertex "module.xxx[0].module.http_lb.volterra_http_loadbalancer.this" error: missing expected [ 2024-08-09T14:53:17.306Z [ERROR] vertex "module.xxx.module.http_lb.volterra_http_loadbalancer.this (expand)" error: missing expected [ 2024-08-09T14:53:17.323Z [WARN] Planning encountered errors, so plan is not applyable 2024-08-09T14:53:17.324Z [INFO] backend/local: plan operation completed 2024-08-09T14:53:17.324Z [INFO] backend/local: writing plan output to: tfplan