open-nomad/scheduler
Tim Gross 0e3264aa4f scheduler/csi: fix early return when multiple volumes are requested
When multiple CSI volumes are requested, the feasibility check could return
early for read/write volumes with free claims, even if a later volume in the
request was not feasible for any other reason (including not existing at
all). This can result in random failure to fail feasibility checking,
depending on how the map of volumes was being ordered at runtime.

Remove the early return from the feasibility check. Add a test to verify that
missing volumes in the map will cause a failure; this test will not catch a
regression every test run because of the random map ordering, but any failure
will be caught over the course of several CI runs.
2021-03-10 15:18:36 -05:00
..
annotate.go scheduler: label loops with nested switch statements for effective break (#8528) 2020-07-24 08:50:41 -04:00
annotate_test.go Deprecate IOPS 2018-12-06 15:09:26 -08:00
context.go scheduler: fix panic when preempting and evicting 2019-12-02 20:22:22 -08:00
context_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
device.go Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
device_test.go Change types of weights on spread/affinity 2019-01-30 12:20:38 -08:00
feasible.go scheduler/csi: fix early return when multiple volumes are requested 2021-03-10 15:18:36 -05:00
feasible_test.go scheduler/csi: fix early return when multiple volumes are requested 2021-03-10 15:18:36 -05:00
generic_sched.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
generic_sched_test.go Persist shared allocated ports for inplace update (#9830) 2021-01-15 12:45:12 -05:00
preemption.go Only preempt for network when there is a network 2019-06-07 18:55:55 -04:00
preemption_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
propertyset.go server 2018-09-15 16:23:13 -07:00
rank.go Apply some suggested fixes from staticcheck (#9598) 2020-12-10 07:29:18 -08:00
rank_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
reconcile.go Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
reconcile_test.go add default update stanza and max_parallel=0 disables deployments (#6191) 2019-09-02 10:30:09 -07:00
reconcile_util.go Only ignore rescheduled allocations if they got stopped 2020-09-14 21:11:52 -04:00
reconcile_util_test.go Fix linting 2018-03-28 12:26:28 -05:00
scheduler.go Respect alloc job version for lost/failed allocs 2020-08-19 09:52:48 -04:00
scheduler_oss.go include pro tag in serveral oss.go files 2020-02-10 15:56:14 -05:00
select.go Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
select_test.go Implement affinity support in generic scheduler 2018-09-04 16:10:11 -05:00
spread.go More error->debug for logging in the bin packing iterator 2019-12-12 15:50:16 -06:00
spread_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
stack.go Respect alloc job version for lost/failed allocs 2020-08-19 09:52:48 -04:00
stack_not_ent.go sync 2017-10-13 14:36:02 -07:00
stack_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
system_sched.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
system_sched_test.go Events/msgtype cleanup (#9117) 2020-10-19 09:30:15 -04:00
testing.go writetxn can return error, add alloc and job generic events. Add events 2020-10-14 12:44:39 -04:00
util.go consul/connect: correctly detect when connect tasks not updated 2021-02-23 15:12:49 -06:00
util_test.go consul/connect: correctly detect when connect tasks not updated 2021-02-23 15:12:49 -06:00