stackhpc / eiffel-ohpc

Example OpenHPC cluster
Apache License 2.0
0 stars 1 forks source link

Azure NICs not deleted on autoscale down #5

Open sjpb opened 4 years ago

sjpb commented 4 years ago

Because we're using -target on the VMs (to enable reimaging), the NICs don't get deleted. This isn't fixable within the terraform template: destroy will also affect things which have a depends_on to the targeted resource you can't add a depends_on to the NICs pointing to the VMs as the VMs implicity depend on the NICs, so TF complains of a cycle.

If we were just using apply without -target to redefine the infra we wouldn't have this issue, but then reimaging will also destroy/recreate existing nodes.