Jasmine Dahilig
ce55bf5fba
Merge pull request #5664 from hashicorp/f-http-hcl-region
...
backfill region from hcl for jobUpdate and jobPlan
2019-06-13 12:25:01 -07:00
Jasmine Dahilig
c467a94e2b
backfill region from job hcl in jobUpdate and jobPlan endpoints
...
- updated region in job metadata that gets persisted to nomad datastore
- fixed many unrelated unit tests that used an invalid region value
(they previously passed because hcl wasn't getting picked up and
the job would default to global region)
2019-06-13 08:03:16 -07:00
Lang Martin
c086b5f483
api use job.update as the default for taskgroup.update
2019-05-22 12:34:57 -04:00
Lang Martin
9621c073fe
add update AutoPromote bool
2019-05-22 12:32:08 -04:00
Preetha Appan
af2ed66749
Add flag similar to --all for allocs to be able to filter deployments by latest
2019-05-13 18:33:41 -05:00
Alex Dadgar
bc42873e07
Change types of weights on spread/affinity
2019-01-30 12:20:38 -08:00
Preetha Appan
7cdaf6e37d
Make spread weight a pointer with default value if unset
2019-01-11 10:31:21 -06:00
Alex Dadgar
aa59ea6ac7
fix iops bug and increase test matrix coverage
2018-12-11 15:28:21 -08:00
Alex Dadgar
f555dc3f67
Warn if IOPS is being used
2018-12-06 16:17:09 -08:00
Alex Dadgar
0953d913ed
Deprecate IOPS
...
IOPS have been modelled as a resource since Nomad 0.1 but has never
actually been detected and there is no plan in the short term to add
detection. This is because IOPS is a bit simplistic of a unit to define
the performance requirements from the underlying storage system. In its
current state it adds unnecessary confusion and can be removed without
impacting any users. This PR leaves IOPS defined at the jobspec parsing
level and in the api/ resources since these are the two public uses of
the field. These should be considered deprecated and only exist to allow
users to stop using them during the Nomad 0.9.x release. In the future,
there should be no expectation that the field will exist.
2018-12-06 15:09:26 -08:00
Alex Dadgar
e9ddf2c533
parse affinities and constraints on devices
2018-10-11 14:05:19 -07:00
Alex Dadgar
e47ddbdd9f
parse devices
2018-10-08 16:09:41 -07:00
Alex Dadgar
8b9b77dd59
Define device request structs
2018-10-08 15:38:03 -07:00
Preetha Appan
ed4ed16b5d
Parsing and API layer for spread stanza
2018-09-04 16:10:11 -05:00
Preetha Appan
218ce28554
Refactor method to return affinity struct, and add extra test at task level
2018-09-04 16:10:11 -05:00
Preetha Appan
8f2d5742c4
Affinity parsing, api and structs
2018-09-04 16:10:11 -05:00
Preetha Appan
879c2c93c9
Code review feedback
2018-05-10 14:42:24 -05:00
Preetha Appan
1bad719612
Added CLI for evaluating job given ID, and modified client API for evaluate to take a request payload
2018-05-09 15:04:27 -05:00
Preetha Appan
242cc191a1
Work in progress - force rescheduling of failed allocs
2018-05-08 17:26:57 -05:00
Alex Dadgar
20df5aea5b
Canary tags structs
2018-05-07 14:50:01 -05:00
Alex Dadgar
15c3abf816
Initial implementation
2018-05-07 14:50:01 -05:00
Michael Schurter
905bef8f2d
consul: make grpc checks more like http checks
2018-05-04 11:08:11 -07:00
Michael Schurter
93356e7d70
consul: initial grpc implementation
...
Needs to be more like http.
2018-05-04 11:08:11 -07:00
Nick Ethier
14c44da757
command/agent: add Canonicalize option to parse args
2018-04-16 19:21:09 -04:00
Nick Ethier
b2b999249b
command/agent: add /v1/jobs/parse endpoint
...
The parse endpoint accepts a hcl jobspec body within a json object
and returns the parsed json object for the job. This allows users to
register jobs with the nomad json api without specifically needing
a nomad binary to parse their hcl encoded jobspec file.
2018-04-16 19:21:06 -04:00
Alex Dadgar
7f989499ff
Correct defaulting
2018-03-21 16:51:44 -07:00
Preetha Appan
e5b86d405e
Fix incorrect initialization of reschedule policy for system jobs.
2018-03-19 12:16:13 -05:00
Preetha Appan
74bd789c29
Fix formatting
2018-03-14 16:10:32 -05:00
Preetha Appan
d4056c4489
Rename DelayCeiling to MaxDelay
2018-03-14 16:10:32 -05:00
Preetha Appan
e65d870fe9
Add new reschedule options to API layer and unit tests
2018-03-14 16:10:32 -05:00
Preetha Appan
eab9d2da92
Add reschedule policy to API, and HCL parsing support.
2018-01-31 09:56:53 -06:00
Michael Schurter
25569282b9
Allow custom ports for services and checks
...
Fixes #3380
Adds address_mode to checks (but no auto) and allows services and checks
to set literal port numbers when using address_mode=driver.
This allows SDNs, overlays, etc to advertise internal and host addresses
as well as do checks against either.
2017-12-08 12:03:00 -08:00
Chelsea Holland Komlo
359613e115
fix up basic test
...
add conversion for KillSignal for api/struct representation of task
2017-12-06 14:36:45 -05:00
Preetha Appan
bbeb658831
Populate DisplayMessage in various http endpoints that return allocations, plus unit tests.
2017-11-17 14:53:26 -06:00
Alex Dadgar
616e4c6f49
fix namespaces
2017-10-23 16:07:38 -07:00
Michael Schurter
fae8e7f699
SecretID -> AuthToken
2017-10-12 15:16:33 -07:00
Alex Dadgar
ddc2efa4ac
sync
2017-09-19 10:08:23 -05:00
Michael Schurter
092057a32b
Canonicalize and Merge CheckRestart in api
2017-09-14 16:48:39 -07:00
Michael Schurter
78c72f8725
Default grace period to 1s
2017-09-14 16:46:54 -07:00
Michael Schurter
555d1e24dc
on_warning=false -> ignore_warnings=false
...
Treat warnings as unhealthy by default
2017-09-14 16:46:54 -07:00
Michael Schurter
bd1a342a92
Nest restart fields in CheckRestart
2017-09-14 16:46:54 -07:00
Michael Schurter
a720bb5a91
Add restart fields
2017-09-14 16:46:54 -07:00
Alex Dadgar
ac1539d5d9
Sync namespace changes
2017-09-07 17:04:21 -07:00
Armon Dadgar
e24fa79aab
agent: thread ACLs for Job Register
2017-09-04 13:05:53 -07:00
Michael Schurter
947516405a
Add Header and Method support for HTTP checks
2017-08-17 16:44:21 -07:00
Michael Schurter
beae45bad5
Add optional shutdown delay to tasks
...
Fixes #2441
Defaults to 0 (no delay) for backward compat and because this feature
should be opt-in.
2017-08-16 17:59:46 -07:00
Alex Dadgar
053cff812a
Allow template to set Vault grace
...
This PR allows a template to specify the Vault grace duration.
Fixes https://github.com/hashicorp/nomad/issues/2922
2017-08-01 14:14:08 -07:00
Alex Dadgar
f0a090c6e8
Disallow update stanza on batch jobs
...
This PR:
* disallows update stanzas on batch jobs
* undeprecates the stagger field
* changes the way warnings are returned
2017-07-07 12:11:39 -07:00
Alex Dadgar
aaf5ab0a21
Job stability
2017-07-07 12:10:04 -07:00
Alex Dadgar
9220836cb4
JobVersions returns struct with optional diff
2017-07-07 12:05:57 -07:00