Skip to content

Commit

Permalink
steps/infra: serialize master and worker domain sets for libvirt
Browse files Browse the repository at this point in the history
We are seeing race like symptoms when creating multiple domainsets in parallel.
For more info: dmacvicar/terraform-provider-libvirt#402
The issue suggests that its most proabaly a libvirt bug that we can avoid by
serializing master and worker domain sets.
  • Loading branch information
abhinavdahiya committed Sep 7, 2018
1 parent 741d5cc commit f943dd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions steps/infra/libvirt/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ resource "libvirt_domain" "worker" {
hostname = "${var.tectonic_cluster_name}-worker-${count.index}"
addresses = ["${var.tectonic_libvirt_worker_ips[count.index]}"]
}

depends_on = ["libvirt_domain.master"]
}

locals {
Expand Down

0 comments on commit f943dd6

Please sign in to comment.