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
When changes to a ecl_compute_instance_v2 resouce are made that forces a replacement of that resource (eg. changing the user_data or adding another network), terraform doesn't recognise that an attached ecl_network_port_v2 resouce will automatically be deleted. So when recreating the compute_instance Terraform tries to attach to the no-longer existing network_port and throws an error.
Terraform marks the network_port attached to a vm as deleted when the vm gets deleted/recreated and recreates it before the vm.
Actual Behavior
Terraform deletes and recreates the compute_instance and then tries to connect it to the no-longer existing network_port which obviously fails.
Steps to Reproduce
Create a tf file with a compute instance and a network_port which is referenced in the compute_instances network block. Apply the script. Afterwards, change an argument in the compute_instance resource that forces its recreation (eg. add another network or change the user_data argument). Apply changes.
Regards,
Robert
The text was updated successfully, but these errors were encountered:
In case where a VM (virtual server) is created using a port (NW interface) created in advance (before the VM), deleting the VM/detaching IF would automatically delete the port on current service design. After this maintenance, the port will no longer be automatically deleted in such cases.
So this issue won't happen now. Can you confirm that again?
When changes to a ecl_compute_instance_v2 resouce are made that forces a replacement of that resource (eg. changing the user_data or adding another network), terraform doesn't recognise that an attached ecl_network_port_v2 resouce will automatically be deleted. So when recreating the compute_instance Terraform tries to attach to the no-longer existing network_port and throws an error.
Terraform Version
Terraform v0.12.20
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Terraform marks the network_port attached to a vm as deleted when the vm gets deleted/recreated and recreates it before the vm.
Actual Behavior
Terraform deletes and recreates the compute_instance and then tries to connect it to the no-longer existing network_port which obviously fails.
Steps to Reproduce
Create a tf file with a compute instance and a network_port which is referenced in the compute_instances network block. Apply the script. Afterwards, change an argument in the compute_instance resource that forces its recreation (eg. add another network or change the user_data argument). Apply changes.
Regards,
Robert
The text was updated successfully, but these errors were encountered: