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
The allowed_address_pairs property is ordered by creation time in the state file, but the Gophercloud api returns them sorted, rather than the order which they were inserted. If they were not created in sorted order, Terraform wants to apply a change of order in every execution (since the output does not actually change after apply)
If vrrp-ports gets addresses in a different ordering compared with their index in the state file, every apply will try to change the order of allowed_address_pairs:
The cause is that ports ip addresses are out of order:
$ terraform state show openstack_networking_port_v2.vrrp-ports[0]
[...]
fixed_ip.# = 1
fixed_ip.0.ip_address = 10.36.8.3
[...]
$ terraform state show openstack_networking_port_v2.vrrp-ports[1]
[...]
fixed_ip.# = 1
fixed_ip.0.ip_address = 10.36.8.5
[...]
$ terraform state show openstack_networking_port_v2.vrrp-ports[2]
[...]
fixed_ip.# = 1
fixed_ip.0.ip_address = 10.36.8.4
[...]
Could the allowed_address_pairs be stored in an unordered structure? Otherwise I guess it will require a bit more complicated logic for determining changes.
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 19, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The
allowed_address_pairs
property is ordered by creation time in the state file, but the Gophercloud api returns them sorted, rather than the order which they were inserted. If they were not created in sorted order, Terraform wants to apply a change of order in every execution (since the output does not actually change afterapply
)Terraform Version
Terraform v0.7.3
Affected Resource(s)
openstack_networking_port_v2
Terraform Configuration Files
Steps to Reproduce
If
vrrp-ports
gets addresses in a different ordering compared with their index in the state file, every apply will try to change the order of allowed_address_pairs:terraform apply
terraform apply
terraform apply
The cause is that ports ip addresses are out of order:
Could the
allowed_address_pairs
be stored in an unordered structure? Otherwise I guess it will require a bit more complicated logic for determining changes.The text was updated successfully, but these errors were encountered: