Commit Graph

479 Commits

Author SHA1 Message Date
Alex Dadgar
9f5ab6648f print spawned eval in monitor 2016-05-19 13:16:10 -07:00
Alex Dadgar
154875c0bc Show task group failures in eval-monitor 2016-05-18 22:02:51 -07:00
Diptanu Choudhury
6b0757c6c4 Merge pull request #1174 from hashicorp/f-config-consul-block
Using the auto-register flag
2016-05-18 04:16:38 +02:00
Dara Kong
4c6c3d0b41 Fix "http_api_response_headers" config not working
On startup, the agent starts with either a dev or default config.  Extra
config files are merged into final config.

The HTTPAPIResponseHeaders config was missing from the merge logic
therefore it would always result in empty value (regardlesss of any
config files specified).
2016-05-16 20:57:54 -07:00
Alex Dadgar
af7725432c Merge pull request #1168 from hashicorp/f-plan-endpoint
Job.Plan endpoint
2016-05-16 13:15:40 -07:00
Alex Dadgar
f56bdbe03a Switch to using the harness 2016-05-16 12:49:18 -07:00
Alex Dadgar
2b09a4c302 improve help message for fs missing input 2016-05-16 11:08:28 -07:00
Alex Dadgar
9272de88ca Merge pull request #1150 from hashicorp/f-fs-command
Refactor fs subcommands into fs command
2016-05-16 11:05:29 -07:00
Jake Champlin
c1ef910f4d Update per comments 2016-05-16 13:17:37 -04:00
Diptanu Choudhury
25273db2c1 Using the auto-register flag 2016-05-16 18:23:01 +02:00
Sean Chittenden
29be52f762 Speling police 2016-05-15 09:41:34 -07:00
Diptanu Choudhury
9c60703e52 Testing if stats is present and it is a map 2016-05-14 01:20:51 -07:00
Diptanu Choudhury
f2de4f2019 Using advertise addr for the http address 2016-05-14 01:09:05 -07:00
Diptanu Choudhury
8c5aa0fe65 Added some docs 2016-05-14 00:36:26 -07:00
Diptanu Choudhury
947c481a45 Merge branches 'master' and 'f-config-consul-block' of github.com:hashicorp/nomad into f-config-consul-block 2016-05-13 13:05:11 -07:00
Diptanu Choudhury
b2c18168a4 Making Nomad register services with consul in dev mode 2016-05-13 10:19:49 -07:00
Alex Dadgar
614a93e1e8 Plan api 2016-05-11 18:51:48 -07:00
Diptanu Choudhury
2216944676 Fixed an agent test 2016-05-11 17:26:53 -07:00
Diptanu Choudhury
de660c4acf Removed allocID and task name from consul service 2016-05-11 16:26:41 -07:00
Diptanu Choudhury
a2237a6057 Implemented registering client and server services 2016-05-11 16:07:02 -07:00
Sean Chittenden
47146b9b87 Fix the unit tests for TestPrettyPrintOff
A different failing test masked that this wasn't even being run.

Pointy Hat: sean- for testing first on Travis in a branch vs verifying locally
2016-05-11 15:48:43 -07:00
Alex Dadgar
0e26f62707 Merge branch 'master' into f-plan-endpoint 2016-05-11 15:39:36 -07:00
Diptanu Choudhury
7b720afd86 Added tests for parsing consul client configuration 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
e5f0d7e531 Adding logic for checking health of client 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
d32757b03e Added a check command 2016-05-11 15:22:58 -07:00
Diptanu Choudhury
2c1611c8cc Added parsing logic for config block 2016-05-11 15:22:58 -07:00
Sean Chittenden
1e8d6eb283 Fix unit tests for TestPrettyPrintBare 2016-05-11 15:20:57 -07:00
Alex Dadgar
f3a4ac6e5f Merge branch 'f-job-diff2' into f-plan-endpoint 2016-05-11 11:25:25 -07:00
Sean Chittenden
534156d9eb Update tests for pretty printing that includes a newline.
Add a test verifying that pretty printing can be disabled, too.
2016-05-11 10:55:01 -07:00
Sean Chittenden
08aa82b483 Append a newline when pretty-printing the response
Instead of typing `curl http://foo/v1/nodes?pretty; echo` to inject a
newline into your terminal, now pretty will provide its own newline.
2016-05-10 15:46:20 -07:00
Alex Dadgar
1303a4365a Initial plan endpoint implementation - WIP 2016-05-05 11:21:58 -07:00
Jake Champlin
d4b8133220 Refactor fs subcommands into fs command
Refactors `nomad fs` command to eliminate `fs` subcommands.
Automatically displays the file, if the path specified is a file; lists
the directory if the path is a directory; or displays stat information
if the `-stat` flag is set.

Currently running `nomad fs ls` to find a file, then running the exact
same command with the exception of `cat` instead of `ls` is time
consuming and awkward. This allows operational testing to be greatly
enhanced, and makes our lives so much better.
2016-05-04 23:59:38 -07:00
Sean Chittenden
65d80a64e0 When checkpoint emits a log message indicating an agent is out of
date, include the current version along with the available version
according to checkpoint.

Inspired by: log output in hashicorp/consul#993
2016-05-04 23:56:37 -07:00
Alex Dadgar
b6585fc50c Better error handling 2016-04-22 15:59:56 -07:00
Alex Dadgar
37a0c2065b Fix missing format variable 2016-04-18 18:53:05 -07:00
Alex Dadgar
47d694d710 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
0c88b6b6ba Merge pull request #1089 from hashicorp/f-validate-driver-on-submit
Validate driver config on job register
2016-04-13 16:54:59 -07:00
Alex Dadgar
20a009e180 Make inspect output submittable 2016-04-13 16:53:39 -07:00
Alex Dadgar
090c1b1448 Lower number of submitted jobs 2016-04-13 16:33:30 -07:00
Alex Dadgar
3896cfb56f check for exact match on job for inspect/stop 2016-04-13 16:05:58 -07:00
Alex Dadgar
6c32b1ebd8 Validate driver config on job register 2016-04-13 15:55:46 -07:00
Alex Dadgar
b63f3bb078 Periodic jobs always are evaluated in UTC TZ 2016-04-12 09:47:25 -07:00
Alex Dadgar
e6e3225c5c Add -self flag to node-drain 2016-04-11 15:20:49 -07:00
Diptanu Choudhury
d8d24c0a8a Merge pull request #1053 from hashicorp/remove-interfaces
removing interfaces from config
2016-04-09 09:18:17 -07:00
Alex Dadgar
bc631c4667 Merge pull request #1052 from iverberk/b-fix-panic-on-fs-job-parameter
Fixes a panic when fs commands with a job parameter return zero allocations
2016-04-08 11:27:20 -07:00
Alex Dadgar
da543308f2 Sort the task resources in alloc-status 2016-04-07 14:55:48 -07:00
Ivo Verberk
13e670159b Make sure we exit on errors 2016-04-07 22:56:17 +02:00
Diptanu Choudhury
1e9fa644a4 removing interfaces from config 2016-04-07 13:25:38 -07:00
Ivo Verberk
b7bc3aae6f Fixes a panic when fs commands with a job parameter return zero allocations 2016-04-07 20:22:09 +02:00
Diptanu Choudhury
b31b6b5d6e Showing the status of the first job when it's prefixed matched and the user input matched exact 2016-03-30 22:17:41 -07:00