Files
nomad/nomad
Mahmood Ali e57c252e50 Handle Scaling Policies in Job Plan endpoint (#8567)
Fixes https://github.com/hashicorp/nomad/issues/8544

This PR fixes a bug where using `nomad job plan ...` always report no change if the submitted job contain scaling.

The issue has three contributing factors:
1. The plan endpoint doesn't populate the required scaling policy ID; unlike the job register endpoint
2. The plan endpoint suppresses errors on job insertion - the job insertion fails here, because the scaling policy is missing the required ID
3. The scheduler reports no update necessary when the relevant job isn't in store (because the insertion failed)

This PR fixes the first two factors.  Changing the scheduler to be more strict might make sense, but may violate some idempotency invariant or make the scheduler more brittle.
2020-07-30 12:27:36 -04:00
..
2019-11-26 08:39:04 -05:00
2020-02-16 16:04:59 -06:00
2020-05-26 10:18:09 -04:00
2018-09-15 16:23:13 -07:00
2020-07-17 11:04:57 -04:00
2020-05-21 21:05:53 -04:00
2018-05-07 14:50:01 -05:00
2017-10-13 14:36:02 -07:00
2020-07-20 09:55:55 -04:00
2020-07-15 11:23:49 -04:00
2019-01-22 15:44:31 -08:00
2020-06-07 16:38:11 -04:00
2020-07-20 09:25:09 -04:00
2019-01-22 15:44:31 -08:00
2017-10-13 14:36:02 -07:00
2017-09-26 15:26:33 -07:00
2019-01-22 15:44:31 -08:00
2018-02-15 13:59:00 -08:00
2018-09-15 16:23:13 -07:00
2020-03-02 13:47:43 -05:00
2020-03-02 13:47:43 -05:00
2018-09-15 16:23:13 -07:00
2018-09-15 16:23:13 -07:00
2018-09-15 16:23:13 -07:00
2020-02-13 18:56:53 -05:00
2020-02-13 18:56:53 -05:00