Jasmine Dahilig
692cd9c19e
job region defaults to client node region if 'global' or none provided ( #6064 )
2019-08-05 14:28:02 -07:00
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
ea37019d7f
Fix one more test set up
2019-05-14 16:13:41 -05:00
Preetha Appan
dee16743b4
Fix test setup to have correct jobcreateindex for deployments
2019-05-13 18:53:47 -05:00
Michael Schurter
5ea4382af7
api: fix migrate stanza initialization
...
Fixes Migrate to be initialized like RescheduleStrategy.
Fixes #5477
2019-04-11 15:29:19 -07:00
Preetha Appan
3cd2ba28e4
fix tests
2019-01-30 14:46:24 -06:00
Mahmood Ali
a5d60fd31c
api: remove MockJob from exported functions
...
`api.MockJob` is a test utility, that's only used by `command/agent`
package. This moves it to the package and removes it from the public
API.
2019-01-18 14:51:31 -05:00
Preetha Appan
7cdaf6e37d
Make spread weight a pointer with default value if unset
2019-01-11 10:31:21 -06: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
8f2d5742c4
Affinity parsing, api and structs
2018-09-04 16:10:11 -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
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
Nick Ethier
4303941098
command/agent: fix url in jobs parse ep test
2018-04-16 19:21:09 -04:00
Nick Ethier
c5945204a6
command/agent: fix ptr ref in job endpoint test
2018-04-16 19:21:09 -04:00
Nick Ethier
03f5c2f6f9
command/agent: add HCL mock for parse endpoint
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
Preetha Appan
e2226ca2b7
s/linear/constant/g
2018-03-26 14:45:09 -05:00
Michael Schurter
b8b1922b9b
test: fix by using mock.BatchJob
2018-03-21 16:51:45 -07: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
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
9a21db844d
Fix unit test
2018-01-31 09:56:53 -06:00
Michael Schurter
304a037e39
Fix service.check_restart stanza propagation
...
There was a bug in jobspec parsing, a bug in CheckRestart merging, and a
bug in CheckRestart canonicalization. All are now tested.
2018-01-09 15:15:36 -08: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
b1eda324c6
code review fixups
2017-12-06 16:37:47 -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
f4e93d9047
remove bad test
2017-10-13 12:40:21 -07:00
Alex Dadgar
21c2ba33e5
403 instead of 500 for permission denied
2017-10-12 14:10:20 -07:00
Michael Schurter
c6756d899a
Rename TestAgent.Token to TestAgent.RootToken
2017-10-06 14:35:14 -07:00
Alex Dadgar
a9e3a41407
Enable more linters
2017-09-26 15:26:33 -07:00
Michael Schurter
924813d57e
Test converting CheckRestart from api->structs
2017-09-15 15:01:56 -07:00
Alex Dadgar
ac1539d5d9
Sync namespace changes
2017-09-07 17:04:21 -07:00
Armon Dadgar
ce4ffe02f4
Adding a comment to address @dadgar
2017-09-04 13:05:53 -07:00
Armon Dadgar
e24fa79aab
agent: thread ACLs for Job Register
2017-09-04 13:05:53 -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
a73e945067
More parallel
2017-07-20 09:36:34 -07:00
Alex Dadgar
873587381d
New test agent
2017-07-19 22:14:36 -07:00
Alex Dadgar
beb01f1754
test fixes
2017-07-07 14:11:27 -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
591ef9c9f3
Rename CreateDeployments and remove cancelling behavior in state_store
2017-07-07 12:10:04 -07:00