Alex Dadgar
2102855ae7
Merge pull request #1237 from hashicorp/b-regions
...
CLI can forward request to different regions
2016-06-08 11:00:23 -07:00
Diptanu Choudhury
66052700ca
Moving the stats error to the bottom of alloc status
2016-06-08 12:28:41 -04:00
Alex Dadgar
a0557e766e
Run and plan automatically sets the region
2016-06-07 11:28:07 -07:00
Alex Dadgar
b1298bb658
plan shows failure reasons and ordered annotations
2016-05-31 21:51:23 +00:00
Diptanu Choudhury
29f458cdac
Making the cli use new apis
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
c0dc6cfbf2
Changing the api of the stats endpoints
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
a0c279f3b2
comments
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
a5f835d5bf
Using the api client for querying nomad client endpoints
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
37e8e0dc35
Fixed the node status cli command
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
05c221186b
Added disk usage to node status
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
cf247c1309
Added uptime to node stats
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
d5a6d6533f
Added a stats api for retreiving node stats
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
313c61b9db
Added pidstats in task resource usage struct
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
cfd3016747
Renamed CpuUsage to CpuStats
2016-05-28 19:59:20 -07:00
Diptanu Choudhury
e9b8360ca7
updating the CpuStats api
2016-05-28 19:51:22 -07:00
Diptanu Choudhury
13825f434e
Added the nomad stats command
2016-05-28 19:42:34 -07:00
Alex Dadgar
3cbb89c61e
Merge pull request #1188 from hashicorp/f-no-failed-allocs
...
Failed Allocation Metrics stored in Evaluation
2016-05-24 20:06:28 -07:00
Alex Dadgar
fcc57fbc66
rename SpawnedBlockedEval and simplify map safety check
2016-05-24 18:12:59 -07:00
Alex Dadgar
92e182d560
nil protection
2016-05-24 11:18:32 -07:00
Alex Dadgar
2a4d5f0ef9
Compress HTTP API responses and have the api client utilize this
2016-05-24 10:26:53 -07:00
Alex Dadgar
1feb57b047
Evals track blocked evals they create
2016-05-19 13:09:52 -07:00
Alex Dadgar
8f5f12ae81
Scheduler no longer produces failed allocations; failed alloc metrics stored in evaluation
2016-05-18 18:11:40 -07:00
Alex Dadgar
a5ab96d40e
Merge pull request #1168 from hashicorp/f-plan-endpoint
...
Job.Plan endpoint
2016-05-16 13:15:40 -07:00
Alex Dadgar
a231f6f998
Switch to using the harness
2016-05-16 12:49:18 -07:00
Sean Chittenden
dc28ab0cb5
Speling police
2016-05-15 09:41:34 -07:00
Alex Dadgar
7a44ec5ccc
Remove plan from the response
2016-05-12 11:29:38 -07:00
Alex Dadgar
b634486ebd
Plan api
2016-05-11 18:51:48 -07:00
Alex Dadgar
e8bb0ab864
Merge pull request #1090 from hashicorp/f-inspect-submittable
...
Make inspect output submittable via HTTP API
2016-04-13 17:18:54 -07:00
Alex Dadgar
538389c056
Make inspect output submittable
2016-04-13 16:53:39 -07:00
Alex Dadgar
f38ed64938
Validate driver config on job register
2016-04-13 15:55:46 -07:00
Diptanu Choudhury
2f5046811f
Using the command key in nomad spi for script checks
2016-03-31 13:35:55 -07:00
Alex Dadgar
9a1b1f01c8
run -output adds job key
2016-03-29 15:02:14 -07:00
Diptanu Choudhury
9d495a4be4
Added the /fs/cat/ api
2016-03-28 11:06:22 -07:00
Diptanu Choudhury
c872711d01
Merge pull request #986 from hashicorp/scripts
...
Implement script checks
2016-03-25 18:22:35 -07:00
Alex Dadgar
25dc8a0dcb
Explain restart decision and display in alloc-status
2016-03-25 12:47:14 -07:00
Alex Dadgar
647c20e465
Merge pull request #978 from hashicorp/f-enforce-user
...
Operator specifiable blacklist for task's using certain users
2016-03-25 12:44:05 -07:00
Alex Dadgar
5293b6a5e9
small fixes
2016-03-25 11:38:18 -07:00
Diptanu Choudhury
2a9e522ed4
Added an impl for Nomad Checks
2016-03-24 19:00:24 -07:00
Alex Dadgar
45dfae8f6f
Operator specifiable blacklist for task's using certain users
2016-03-24 10:55:14 -07:00
Alex Dadgar
fc0e48b0ec
Merge pull request #950 from mssola/raw-exec-user
...
client: added the "user" option to tasks
2016-03-24 08:57:13 -07:00
Miquel Sabaté Solà
8c56c64615
client/driver: added the `user` config value
...
This way Nomad allows to set which user has to run the task.
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
2016-03-23 12:57:31 +01:00
Alex Dadgar
90a61172b4
Add nomad inspect command
2016-03-21 12:46:35 -07:00
Alex Dadgar
823261c974
add destination to artifact block and validate it
2016-03-18 12:01:46 -07:00
Alex Dadgar
bf74e2f790
display server leaders per region
2016-03-17 16:04:09 -07:00
Alex Dadgar
e6d50f96ef
Respond to comments and fix test
2016-03-15 20:21:52 -07:00
Alex Dadgar
9f878a16bf
Download artifacts and remove old code for drivers
2016-03-15 13:28:57 -07:00
Alex Dadgar
68059fa85c
Go-getter options are generic and validation of checksums
2016-03-15 13:28:57 -07:00
Alex Dadgar
315fd954ea
Parse artifacts and options
2016-03-15 13:28:57 -07:00
Diptanu Choudhury
b07c23fd5e
Showing Task Resources in alloc status
2016-03-11 14:28:51 -08:00
Alex Dadgar
61972c9ddc
Refactor task runner to include driver starting into restart policy and add recoverable errors
2016-02-28 16:56:05 -08:00
Alex Dadgar
143972b6d9
Job GC endpoint
2016-02-20 15:50:41 -08:00
Alex Dadgar
d1011c9668
Fixes
2016-02-19 15:49:32 -08:00
Diptanu Choudhury
c3ebef83c6
Formatting test
2016-02-12 10:37:34 -08:00
Diptanu Choudhury
c6e395fa0e
Fixed tests
2016-02-11 17:34:46 -08:00
Diptanu Choudhury
566d709110
Handling errors when client can't re-attach to syslog collector
2016-02-10 16:40:36 -08:00
Diptanu Choudhury
412d777d1e
Fixing the api tests
2016-02-10 13:36:47 -08:00
Diptanu Choudhury
9d6eed1fb4
Merge branch 'master' into f-logrotator
2016-02-09 12:25:44 -08:00
Alex Dadgar
a64f07b809
Store alloc creation time
2016-02-08 21:58:05 -08:00
Diptanu Choudhury
91e7922f3b
Implemented log rotator for exec based drivers
2016-02-04 23:54:15 -08:00
Alex Dadgar
6f20d3f435
Restart on-success shouldn't be user specifiable
2016-02-02 17:35:06 -08:00
Alex Dadgar
f83b26029e
Fix test
2016-02-02 13:27:50 -08:00
Alex Dadgar
2d98c0eadd
Fix double pull with introduction of AllocModifyIndex
2016-02-01 15:43:59 -08:00
Alex Dadgar
f8b99e7da3
Merge pull request #722 from iverberk/f-double-alloc-update
...
Add new RPC call to fetch a lightweight list of allocation information.
2016-01-30 16:39:09 -08:00
Ivo Verberk
2dd3ff6d81
Add additional API endpoint for requesting client specific node allocations.
2016-01-29 20:01:21 +01:00
Jake Champlin
9a6bd0d7fe
Updates from comments, fix tests
2016-01-28 23:11:13 -05:00
Diptanu Choudhury
c265b610f1
Not trying to parse response if the body is not a json
2016-01-27 21:39:50 -08:00
Diptanu Choudhury
980bc19d10
Added more information about files
2016-01-27 14:20:10 -08:00
Diptanu Choudhury
4a1d4ff69a
Changed the api of the ReadAt API
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
2a9dd78572
Introducing an AllocFileInfo in the api package
2016-01-27 12:53:24 -08:00
Diptanu Choudhury
68c2164088
Added the cli for fs-cat
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
a70e5dbdc7
Added an impl for stating a file
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
edd3194a16
Added some comments
2016-01-27 12:53:23 -08:00
Diptanu Choudhury
1e9c817a52
Added the cli for listing alloc dir
2016-01-27 12:53:23 -08:00
Alex Dadgar
248b20ae24
Merge pull request #675 from nautsio/f-cli-short-ids
...
Shorten CLI identifiers
2016-01-19 15:11:41 -08:00
Alex Dadgar
5e900b94d0
Move endpoint to be under job
2016-01-19 11:09:36 -08:00
Alex Dadgar
a7b986328a
Fix comments
2016-01-15 11:44:11 -08:00
Ivo Verberk
91a9f2c4ce
Shorten CLI identifiers
...
* Truncate all UUID identifiers to eight characters by default
* Refactor the node identifier to an auto-generated UUID
* Created and updated tests and mocks
2016-01-14 21:57:43 +01:00
Alex Dadgar
80dd30b03d
Add force spawn endpoint
2016-01-13 10:19:53 -08:00
Alex Dadgar
f843e95cbf
Check parent id of prefix jobs and special case the output if no child job has been launched
2016-01-07 14:43:55 -08:00
Alex Dadgar
24fd4a8c27
Add ProhibitOverlap option to PeriodicConfig
2016-01-07 11:19:46 -08:00
Alex Dadgar
ce22c049db
Merge pull request #575 from nautsio/f-short-ids
...
Allow lookups based on short identifiers
2016-01-06 14:36:19 -08:00
Ivo Verberk
9527fc254d
Improvements for short identifiers
...
* Fix tests
* Update documentation
2016-01-06 22:46:57 +01:00
Alex Dadgar
c0721e45f6
Fix bug, add tests, and cli output
2016-01-04 14:23:06 -08:00
Alex Dadgar
1e5c776e40
Merge pull request #624 from hashicorp/f-adjustable-timeout
...
User specifiable kill timeout and operator configurable max
2016-01-04 11:44:22 -08:00
Ivo Verberk
fd177f4c6f
Bring up-to-date with master
2015-12-24 21:16:32 +01:00
Ivo Verberk
0c01ca49e6
Refactoring continued
...
* Refactor other cli commands to new design
* Add PrefixList method to api package
* Add more tests
2015-12-24 20:53:37 +01:00
Alex Dadgar
7586a84dbe
Update deregister test
2015-12-23 18:26:39 -08:00
Alex Dadgar
f6769c3d96
Leader election restore, add structs to api jobs
2015-12-23 18:26:39 -08:00
Alex Dadgar
ddf392c6be
User specifiable kill timeout and operator configurable max
2015-12-22 16:10:30 -08:00
Ivo Verberk
7838b2a57c
Refactoring
...
* Reverted changes to get methods
* Added prefix query parameter
* Updated node status to use prefix based searching
* Fixed tests
* Removed truncation logic
2015-12-22 23:44:33 +01:00
Alex Dadgar
156d5845d1
Fix api test
2015-12-18 12:17:54 -08:00
Alex Dadgar
31c3e12957
merge
2015-12-18 12:17:13 -08:00
Diptanu Choudhury
76486d71e2
Making the allocs hold service ids
2015-12-14 15:08:35 -08:00
Chris Hines
33f4afe05e
Remove clock granularity sensitive test assertion.
...
TestRequestTime already verifies that the request time is properly recorded.
2015-12-14 17:03:08 -05:00
Alex Dadgar
44788e8694
Merge pull request #523 from ChrisHines/windows-api-tests
...
api: fix tests on Windows.
2015-12-08 19:07:40 -08:00
Ryan Uber
1067c4208f
Add Meta field for Node struct
2015-12-07 21:41:57 -08:00
Chris Hines
30712dc249
Test request timing with a server slow enough to measure with low granularity system clocks.
2015-12-01 14:53:01 -05:00
Ryan Uber
617c64ee20
api: add regions wrapper
2015-11-24 13:11:48 -08:00
Diptanu Choudhury
bb7f29f023
Changed the http field to path
2015-11-18 14:29:55 -08:00
Diptanu Choudhury
04d2d6921d
Exctacted a method for parsing checks
2015-11-17 15:13:25 -08:00
Diptanu Choudhury
0d9e34bea4
Added the service definitions in api structs too
2015-11-17 15:13:25 -08:00
Chris Bednarski
9f40143684
Merge branch 'master' into f-port-labels
2015-11-16 16:02:38 -08:00
Alex Dadgar
b649039448
Fix the capacity
2015-11-16 15:14:21 -08:00
Alex Dadgar
6133917e33
Change event type to string
2015-11-16 15:14:21 -08:00
Alex Dadgar
82f51601db
Track Task State in the client and capture Wait results
2015-11-16 15:14:21 -08:00
Alex Dadgar
359251744f
Add TaskState to alloc
2015-11-16 15:14:21 -08:00
Diptanu Choudhury
33fc6b88d3
Fixed the api tests
2015-11-16 13:10:57 -08:00
Diptanu Choudhury
b083a3f307
Fixed the parsing and encoding logic
2015-11-16 13:10:57 -08:00
Antonio Fernández
89d4717c92
api /v1/node/<id>/allocations returns an array of Allocation objects, not AllocationIndexStub
2015-11-09 17:54:18 +01:00
Diptanu Choudhury
52eb6c77af
Fixing tests to not create a TG without restart policies
2015-11-02 13:24:59 -08:00
Diptanu Choudhury
c80f0e38d1
Added a RestartPolicy to some mocks
2015-10-30 21:33:33 -07:00
Diptanu Choudhury
99c24e5243
Sending restart policies to the Nomad API
2015-10-30 16:32:05 -07:00
Alex Dadgar
3cdbfc010f
Remove weight and hard/soft fields from constraint
2015-10-27 14:31:14 -07:00
Gregory Man
1af62592c1
Sort server-members output using name and tags
2015-10-23 21:33:18 +03:00
Jeff Mitchell
959c175ca1
Update the location of cleanhttp
2015-10-22 14:21:07 -04:00
Jeff Mitchell
cea5fd9081
Use cleanhttp for truly clean clients and transports.
2015-10-22 10:58:23 -04:00
Diptanu Choudhury
79ccde7c2c
Fixed the imports
2015-10-20 16:42:53 -07:00
Diptanu Choudhury
b4d714ec56
Added the UpdataStrategy struct to the api/jobs struct so that we don't loose the information passed on from the cli
2015-10-20 16:16:05 -07:00
Jeff Mitchell
50c2955f54
Remove usage of http.DefaultClient
2015-10-16 16:56:43 -04:00
Alex Dadgar
f40397e6ef
Switch to using BlkioWeight
2015-10-06 15:44:01 -07:00
Antoine POPINEAU
722141bfa6
Added a jobspec directive to specify envvars. Updated Docker driver to use them accordingly.
2015-10-02 17:46:55 -07:00
Ryan Uber
fb35ceb4c3
api: add client server methods
2015-09-24 21:17:33 -07:00
Chris Bednarski
0060ac933f
Add dynamic ports to api resources; copy dynamic ports into offer
2015-09-23 18:01:49 -07:00
Armon Dadgar
b213462cb4
Change CPU from float64 to int
2015-09-23 11:14:32 -07:00
Ryan Uber
84a5de4e02
command: start alloc-status command
2015-09-22 10:45:07 -07:00
Ryan Uber
8f9877edaa
api: rename jobs.Delete -> jobs.Deregister
2015-09-22 10:45:06 -07:00
Ryan Uber
5ddb67f3cf
api: job deregister returns eval ID
2015-09-22 10:45:06 -07:00
Ryan Uber
c1aa896918
api: test job sort
2015-09-17 13:15:45 -07:00
Ryan Uber
61b8249d08
api: sort all list responses
2015-09-17 13:10:20 -07:00
Ryan Uber
cbb5be79e8
api: composing jobs takes region
2015-09-16 11:42:08 -07:00
Ryan Uber
90a79bafab
api: fix tests after struct validations
2015-09-16 11:26:48 -07:00
Ryan Uber
f136c86112
api: add region to jobs
2015-09-16 11:26:47 -07:00
Ryan Uber
3a84c96429
api: fixing join tests
2015-09-14 14:04:30 -07:00
Ryan Uber
b9cd47807c
api: fix agent test
2015-09-14 13:24:03 -07:00
Ryan Uber
7b5fd8a214
command: use meta struct for common options
2015-09-14 13:24:03 -07:00
Ryan Uber
761aad186a
api: return the number of nodes joined
2015-09-14 13:24:03 -07:00
Ryan Uber
8961b910d5
api: fix status type
2015-09-14 13:24:03 -07:00
Ryan Uber
855ec7a712
api: use stub structs
2015-09-13 20:02:22 -07:00
Ryan Uber
531d093a2f
api: run all tests in parallel
2015-09-13 12:17:08 -07:00
Ryan Uber
29cd5064de
api: remove unneeded test
2015-09-12 11:49:32 -07:00
Ryan Uber
cbb7e7aec0
api: fix nodes tests
2015-09-11 21:28:21 -07:00
Ryan Uber
6fcec7088e
api: correct status leader test
2015-09-11 20:35:13 -07:00
Ryan Uber
4334dc56b7
api: use strconv
2015-09-11 17:20:33 -07:00
Ryan Uber
fb3e3f5b13
api: add status endpoint
2015-09-11 17:02:56 -07:00
Ryan Uber
b86bc3e73f
api: add nodes endpoints
2015-09-11 16:51:18 -07:00
Ryan Uber
fae5a39666
api: support force-eval
2015-09-09 18:39:24 -07:00
Ryan Uber
5e1932136a
api: more tests
2015-09-09 18:10:16 -07:00
Ryan Uber
7926aed642
api: more tests for jobs
2015-09-09 17:29:43 -07:00
Ryan Uber
2cbdd4c1c3
api: working on evaluations
2015-09-09 13:48:56 -07:00
Ryan Uber
a807612091
api: allow query options everywhere
2015-09-09 13:18:50 -07:00
Ryan Uber
aff13fc84c
api: restructure client
2015-09-09 13:05:27 -07:00
Ryan Uber
3ec197d440
api: structs are composable
2015-09-09 00:33:56 -07:00
Ryan Uber
7acc90aa32
api: add constraints generators
2015-09-08 19:27:04 -07:00
Ryan Uber
1904724839
api: finishing jobs
2015-09-08 18:42:34 -07:00
Ryan Uber
05cd0b7990
api: look up allocations by job ID
2015-09-08 17:52:47 -07:00
Ryan Uber
4196ab8fb1
api: allow retrieving jobs by ID
2015-09-08 17:20:52 -07:00
Ryan Uber
d47772f8a6
api: return query meta/write meta
2015-09-08 16:45:16 -07:00
Ryan Uber
0f31b16fae
api: starting on jobs
2015-09-08 16:24:26 -07:00
Ryan Uber
4ff1753466
api: starting on allocs
2015-09-08 15:37:07 -07:00
Ryan Uber
40a5696fb2
api: finish agent endpoint
2015-09-08 14:47:29 -07:00
Ryan Uber
801db291ed
api: agent join api works
2015-09-08 14:26:53 -07:00
Ryan Uber
9bd115e0fd
api: allow query parameters in query/write/delete
2015-09-08 14:26:26 -07:00
Ryan Uber
5a8bc52c56
api: region is queryable, optimize agent caching
2015-09-08 12:13:39 -07:00
Ryan Uber
500daf5d7f
api: datacenter is cached and queryable
2015-09-08 12:01:54 -07:00
Ryan Uber
c1f4faaab3
api: allow querying node name from agent
2015-09-08 11:51:20 -07:00
Ryan Uber
f5c57cedfa
api: add agent self call
2015-09-08 11:41:03 -07:00
Armon Dadgar
f91d735634
api: Adding basic skeleton
2015-09-06 13:29:51 -07:00