Closed mingsheng36 closed 7 years ago
Hi.
The short answer is no, unfortunately - it's a deliberate design decision in Terraform that providers are not given the option to control the ordering of resources (that's a choice made purely by Terraform) because otherwise it would be hard to make them play nicely together in mixed configurations (e.g. server in CloudControl, DNS in Azure). You'd also run into this problem if someone else in your organisation was running their own Terraform deployment with VLANs at the same time as you were (something we couldn't fix by messing with ordering at the provider level).
For now, unfortunately, you'll need to have one VLAN depend on another. I know it's a little ugly but once you've worked with Terraform for a while you'll yourself setting up explicit dependencies every now and then because a lot of providers are like this (their back-ends often have similar constraints).
It's not all bad though 😃
We can automatically retry operations (in some circumstances) if CloudControl returns RESOURCE_BUSY. This has been on the backlog for a while as #11 but I've not had time to look at it properly yet. I'll try to have a look again in a week or 2 depending on what other work I have on, so it'll get done eventually :)
I'm closing this as a duplicate of #11, but feel free to add any other notes you may have to this issue (or #11).
When deploying multiple vlans in different network domains, the VLANs will not deploy in sequence and will have errors like below.
Understand that it could be solve by using "depends_on" field as only one VLAN can be deployed at any point of time for a DimensionData MCP account, but the code would not look nice.
Is it possible to queue up the VLANs deployment for multiple network domains like how it will behave in VLAN deployment in a single network domain? e.g.