Skip to content

Commit

Permalink
e2e: Run system jobs on all datacenters (#11060)
Browse files Browse the repository at this point in the history
Target all e2e datacenters for system and sysbatch e2e tests.  They
require that the system jobs run on all linux clients.

However, the jobs currenly only target `dc1` datacenter, but the nightly
e2e cluster has 4 clients spread in `dc1` and `dc2` datacenters, causing
the tests to fail.

I missed this problem in e2e dev cluster because it only used a single
dc1 datacenter.
  • Loading branch information
Mahmood Ali committed Aug 17, 2021
1 parent fdb8684 commit 2bb0317
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion e2e/scheduler_sysbatch/input/sysbatch_dispatch.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "sysbatchjob" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "sysbatch"

Expand Down
2 changes: 1 addition & 1 deletion e2e/scheduler_sysbatch/input/sysbatch_job_fast.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "sysbatchjob" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "sysbatch"

Expand Down
2 changes: 1 addition & 1 deletion e2e/scheduler_sysbatch/input/sysbatch_job_slow.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "sysbatchjob" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "sysbatch"

Expand Down
2 changes: 1 addition & 1 deletion e2e/scheduler_sysbatch/input/sysbatch_periodic.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "sysbatchjob" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "sysbatch"

Expand Down
2 changes: 1 addition & 1 deletion e2e/scheduler_system/input/system_job0.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "system_job" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "system"

Expand Down
2 changes: 1 addition & 1 deletion e2e/scheduler_system/input/system_job1.nomad
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
job "system_job" {
datacenters = ["dc1"]
datacenters = ["dc1", "dc2"]

type = "system"

Expand Down

0 comments on commit 2bb0317

Please sign in to comment.