Commit Graph

2912 Commits

Author SHA1 Message Date
Ryan Uber 7bb41d2f21 agent: return empty config for empty config dirs 2015-09-29 15:07:52 -07:00
Dave York ff2b331192 fixes another typo
- Ui should be UI
2015-09-29 17:16:55 -04:00
ziporah b9833d627c Changed typo in documentation 2015-09-28 19:51:29 -07:00
Carlos Diaz-Padron 1c6ca9b0a4 Parse Client config Options
This adds Options to the agent ClientConfig and fixes the merging logic
to include Options, as defined in the docs
2015-09-28 16:45:32 -07:00
Ryan Uber 8c992355c4 Merge pull request #128 from hashicorp/f-alloc-status
Add alloc-status command
2015-09-27 15:06:17 -07:00
Ryan Uber 53e676f42a command: better test for alloc-status 2015-09-27 14:42:04 -07:00
Ryan Uber 079b3c753a command: placeholder for <none> in kv output 2015-09-27 14:04:53 -07:00
Ryan Uber 5ce6f4bb64 command: better output for alloc-status 2015-09-27 13:59:27 -07:00
Ryan Uber 3d771c5780 command: first pass at alloc-status command 2015-09-27 12:02:14 -07:00
Armon Dadgar 91e69c5973 website: lowercase examples of dynamic ports 2015-09-26 18:26:51 -07:00
Alex Dadgar 0f855e2088 Fix cgroup isolation 2015-09-25 16:49:18 -07:00
Alex Dadgar 3cea4288b9 Merge qemu test 2015-09-25 16:49:14 -07:00
Ryan Uber cc7c1cc808 agent: all dynamic ports for tests 2015-09-25 12:19:13 -07:00
Ryan Uber a7757436c9 Merge pull request #114 from hashicorp/f-clients
Make servers list configurable on clients
2015-09-25 12:03:21 -07:00
Ryan Uber 65a89dffae command: rename client-servers -> client-config 2015-09-25 11:49:31 -07:00
Ryan Uber 052aa8b56e command: fix help 2015-09-24 22:01:41 -07:00
Ryan Uber f084d22047 command: adding client-servers command 2015-09-24 21:32:12 -07:00
Ryan Uber 114b38b8a8 agent: add HTTP endpoint for querying/modifying the server list 2015-09-24 20:39:03 -07:00
Armon Dadgar 77a9e52449 command/validate: Adding new command 2015-09-24 18:29:46 -07:00
Chris Bednarski 1654d08fca Add docker ports; change to uppercase examples and tests 2015-09-23 18:01:08 -07:00
Armon Dadgar c57012105c command/init: tweak constraint 2015-09-22 21:48:44 -07:00
Armon Dadgar 692e10603f command/run: update synopsis 2015-09-22 21:48:44 -07:00
Armon Dadgar b7f1447d4b command/run: update help output 2015-09-22 21:48:43 -07:00
Armon Dadgar 461df354e1 command/init: fixing inconsistencies 2015-09-22 21:48:43 -07:00
Armon Dadgar cf62f158fc command/node-status: removing extra formating input 2015-09-22 21:48:43 -07:00
Armon Dadgar 8257c243b1 command/init: reworking behavior and default file 2015-09-22 21:48:43 -07:00
Armon Dadgar 683985c872 agent: Do not override default log levels 2015-09-22 21:48:42 -07:00
Ryan Uber dd95f4033d Merge pull request #79 from hashicorp/f-bootstrap
Add flags for bootstrap modes to CLI
2015-09-22 20:28:30 -07:00
Ryan Uber f0c21b79f1 agent: json decode directly to structs in api 2015-09-22 20:02:10 -07:00
Chris Bednarski 0da7a2c83b Switch to named port config syntax 2015-09-22 16:14:28 -07:00
Chris Bednarski 48a875a702 Added init command 2015-09-22 16:11:01 -07:00
Ryan Uber e5f644b02c agent: remove explicit Bootstrap option in favor of BootstrapExpect 2015-09-22 14:41:49 -07:00
Ryan Uber e1a6c02004 agent: test agent command args 2015-09-22 14:04:40 -07:00
Ryan Uber 16f4e1c8c2 command/agent: add bootstrap flags 2015-09-22 13:28:06 -07:00
Armon Dadgar 38f9508764 agent: test config parsing 2015-09-22 11:29:58 -07:00
Ryan Uber 0958c731a9 command: rename some agent commands to use a server- prefix 2015-09-22 11:01:41 -07:00
Ryan Uber 5fdc10befc command/monitor: set initial status to 'pending' 2015-09-22 10:45:08 -07:00
Ryan Uber 306a6dc81f command: print a warning if we get 0 evaluated nodes 2015-09-22 10:45:08 -07:00
Ryan Uber 75c79b705e command: monitor output updates 2015-09-22 10:45:08 -07:00
Ryan Uber 0e36424c6e command/run: validate job before submission 2015-09-22 10:45:08 -07:00
Ryan Uber d7f3697e5d command: adjustments to monitor logs 2015-09-22 10:45:07 -07:00
Ryan Uber cf8fe7e8d7 command: remove unnecessary alloc-status command 2015-09-22 10:45:07 -07:00
Ryan Uber 6f8d0040f9 command: return 2 for scheduling failures when using monitor 2015-09-22 10:45:07 -07:00
Ryan Uber f1020c8a0b command: fix alloc-status tests 2015-09-22 10:45:07 -07:00
Ryan Uber aa8bee0cfa command: allocation monitor adjustments 2015-09-22 10:45:07 -07:00
Ryan Uber 277e5ae8d6 command: simplify alloc status, dump during job run 2015-09-22 10:45:07 -07:00
Ryan Uber c796157278 command/status: don't display node ID in evaluations 2015-09-22 10:45:07 -07:00
Ryan Uber fd61e29d01 command/monitor: dump info regardless of initial status 2015-09-22 10:45:07 -07:00
Ryan Uber ac70a19ea5 command: spelling 2015-09-22 10:45:07 -07:00
Ryan Uber 84a5de4e02 command: start alloc-status command 2015-09-22 10:45:07 -07:00
Ryan Uber c5ab58761b command/status: cleanup 2015-09-22 10:45:07 -07:00
Ryan Uber b4c9f2ea7c command/monitor: cleanup 2015-09-22 10:45:07 -07:00
Ryan Uber 0908337ac8 command/monitor: display scheduling errors 2015-09-22 10:45:06 -07:00
Ryan Uber 646612175d command: enter monitor mode by default 2015-09-22 10:45:06 -07:00
Ryan Uber 435fd7038b command/monitor: handle more alloc state changes 2015-09-22 10:45:06 -07:00
Ryan Uber e3611a1694 command/monitor: account for updated allocations 2015-09-22 10:45:06 -07:00
Ryan Uber a532acaa79 command/monitor: more tests 2015-09-22 10:45:06 -07:00
Ryan Uber 3384fb5769 command/monitor: tests 2015-09-22 10:45:06 -07:00
Ryan Uber 5df780ccc5 command: only use prefixed UI during monitoring 2015-09-22 10:45:06 -07:00
Ryan Uber 099fd00760 command/stop: inital stop command 2015-09-22 10:45:06 -07:00
Ryan Uber bb2a11d004 command/monitor: cleanup 2015-09-22 10:45:06 -07:00
Ryan Uber c6fd98b11b command: easier exit codes, check if eval is already finished 2015-09-22 10:45:06 -07:00
Ryan Uber e4b7aa1e3a command: add prefixed output for monitor commands 2015-09-22 10:45:06 -07:00
Ryan Uber 104cd67cff command: adding eval-monitor 2015-09-22 10:45:05 -07:00
Ryan Uber 3258f16568 command: monitor allocation client status updates 2015-09-22 10:45:05 -07:00
Ryan Uber 8db83e71e0 command: working on monitor 2015-09-22 10:45:05 -07:00
Ryan Uber bd40b1f5ad command: start implementing eval monitoring for run 2015-09-22 10:45:05 -07:00
Ryan Uber 43a33dd054 command: add primitive run command 2015-09-22 10:45:05 -07:00
Ryan Uber b15d45fa2b command: use an empty config instead of default config for cli options 2015-09-22 10:44:46 -07:00
Armon Dadgar bb58ba2705 website: document additional configuration options 2015-09-22 10:41:12 -07:00
Ryan Uber dbf60d4682 command/agent: fix help usage 2015-09-22 01:59:17 -07:00
Ryan Uber 0e54398200 command/agent: more arguments 2015-09-21 21:37:55 -07:00
Ryan Uber d734dedb54 command/agent: accept server/client/data-dir 2015-09-21 20:48:39 -07:00
Ryan Uber 3df6f52e96 agent: fix CLI help 2015-09-21 20:39:10 -07:00
Alex Dadgar 33117772b7 Merge pull request #75 from hashicorp/h-spawn-daemon-build-dep
Make spawn-daemon only defined on linux
2015-09-21 17:27:08 -07:00
Alex Dadgar 96b81124bf Make spawn-daemon only defined on linux 2015-09-21 15:24:08 -07:00
Armon Dadgar 6fb7d45acf agnet: fixing inversion of LeaveOnInt 2015-09-21 14:14:19 -07:00
Armon Dadgar 0621b2e2df agent: adding Atlas and Region to output 2015-09-21 14:14:19 -07:00
Alex Dadgar 0e3f21b34f Linux executor with cgroup isolation support 2015-09-21 09:08:57 -07:00
Armon Dadgar 0074270c45 http: validating job is provided to avoid nil pointer 2015-09-20 17:38:26 -07:00
Ryan Uber 02529aee52 command: fix tests after job validation 2015-09-16 11:42:28 -07:00
Ryan Uber e98307bd46 command: final adjustments for list output 2015-09-15 16:51:17 -07:00
Ryan Uber 1299fabf1f command: helpers for columns 2015-09-15 16:44:38 -07:00
Ryan Uber c577cd2143 command: output adjustments 2015-09-15 13:21:49 -07:00
Ryan Uber 1aac77c452 command: testing alloc/eval dump and short mode for status 2015-09-15 12:53:13 -07:00
Ryan Uber 8a25ca10a7 command: add evals/allocs to status command, add -short flag 2015-09-15 11:35:38 -07:00
Ryan Uber dd4e804d7e command: dump allocations for nodes in node-status 2015-09-15 11:20:08 -07:00
Ryan Uber 6af11360f3 command: separate k/v pairs with an '=' 2015-09-14 20:29:08 -07:00
Armon Dadgar 53834b39ba SCADA support 2015-09-14 15:33:08 -07:00
Ryan Uber 709c04dbde command: tests 2015-09-14 14:08:50 -07:00
Ryan Uber 4eddeebc9b command: guard tests from multiple parallel calls 2015-09-14 14:06:37 -07:00
Ryan Uber 7b5fd8a214 command: use meta struct for common options 2015-09-14 13:24:03 -07:00
Ryan Uber bfb60d6a06 command: kill AllAtOnce in job list mode 2015-09-14 13:24:03 -07:00
Ryan Uber 18745e6e68 command: cleanup 2015-09-14 13:24:03 -07:00
Ryan Uber c6fdb6060a command: add node-drain command 2015-09-14 13:24:03 -07:00
Ryan Uber 1183f0f270 command: more cli tests 2015-09-14 13:24:03 -07:00
Ryan Uber c363bc95f5 command: use testutil.TestServer in command tests 2015-09-14 13:24:03 -07:00
Ryan Uber b40d6715f6 command: cli tests 2015-09-14 13:24:03 -07:00
Ryan Uber 578934fb17 command: fix test agent helper 2015-09-14 13:24:03 -07:00
Ryan Uber be3e081dec command: add node-status command 2015-09-14 13:24:03 -07:00
Ryan Uber 3118043a4c command: add agent-join command 2015-09-14 13:24:03 -07:00
Ryan Uber 92c2c58a37 command: convert members so we get a descriptive status 2015-09-14 13:24:03 -07:00
Ryan Uber 8053570f18 command: adding agent-members command 2015-09-14 13:24:03 -07:00
Ryan Uber 7cdaf95f4e command: add agent-force-leave command 2015-09-14 13:24:02 -07:00
Ryan Uber fe245396d1 command: tests 2015-09-14 13:24:02 -07:00
Ryan Uber f0ee34651a command: add agent-info command 2015-09-14 13:24:02 -07:00
Ryan Uber b047700788 command: unexport helpers 2015-09-14 13:24:02 -07:00
Ryan Uber 1b026abf08 command: adjustments for status 2015-09-14 13:24:02 -07:00
Ryan Uber a307f9b688 command: basic status command 2015-09-14 13:24:02 -07:00
Ryan Uber 4d5901c1ae command: add helpers 2015-09-14 13:24:02 -07:00
Armon Dadgar 2ff133c0e6 nomad: rename region1 to global. Fixes #41 2015-09-13 18:18:40 -07:00
Ryan Uber f4499491a9 agent: remove unreachable code 2015-09-11 21:28:35 -07:00
Ryan Uber 90f18850a5 agent: add default bind addr and port numbers 2015-09-11 12:19:05 -07:00
Ryan Uber 3b5004f2a4 agent: split out server config parser, add tests 2015-09-11 12:06:42 -07:00
Ryan Uber 8d816ec883 agent: allow specifying advertise addrs in ip:port format 2015-09-11 11:27:14 -07:00
Ryan Uber 9ce9552a6b agent: test listener from config 2015-09-11 11:10:55 -07:00
Ryan Uber fa614cd3ef agent: adjust tests 2015-09-10 19:04:06 -07:00
Ryan Uber 35580ef9ec agent: use ports/addresses/advertise_addrs for network config 2015-09-10 18:37:42 -07:00
Ryan Uber 936bca5194 agent: addresses and ports are configurable 2015-09-10 17:48:02 -07:00
Ryan Uber b95ed91628 agent: merge telemetry, server, and client configs 2015-09-10 11:25:19 -07:00
Ryan Uber bc683a800e agent: config loading tests 2015-09-09 22:11:48 -07:00
Ryan Uber faf5cc0447 agent: config merge works + tests 2015-09-09 21:42:50 -07:00
Armon Dadgar 7d69aa78c1 nomad: using Raft StartAsLeader to make tests faster 2015-09-07 10:46:41 -07:00
Armon Dadgar 24e032b61f http: list results are never null 2015-09-07 10:03:10 -07:00
Armon Dadgar 1a5579384a nomad: cleanup API descrepencies 2015-09-06 20:47:42 -07:00
Armon Dadgar 0702f17989 Rename client endpoint to node endpoint 2015-09-06 20:31:32 -07:00
Armon Dadgar 628e4434cd http: adding the drain toggle endpoint 2015-09-06 20:03:59 -07:00
Armon Dadgar ffe701da87 http: parsing flags for node drain 2015-09-06 19:35:05 -07:00
Armon Dadgar 8a389414ff http: adding the agent endpoints 2015-09-06 19:08:05 -07:00
Armon Dadgar 30b34777ff http: adding status APIs 2015-09-06 18:39:03 -07:00
Armon Dadgar ce446e5e2a http: complete the eval endpoints 2015-09-06 16:18:25 -07:00
Armon Dadgar 7c162542aa http: adding the eval endpoints 2015-09-06 16:02:53 -07:00
Armon Dadgar 009fc62cc8 http: adding alloc lookup endpoint 2015-09-06 15:49:44 -07:00
Armon Dadgar 05a8ae06c7 http: adding allocs list endpoint 2015-09-06 15:37:21 -07:00
Armon Dadgar 28dc212e4a http: Adding nodes list 2015-09-06 14:31:17 -07:00
Armon Dadgar bb0ba026bc http/node: adding a few node endpoints 2015-09-06 14:18:11 -07:00
Armon Dadgar 479a9255d6 agent: fixing test names 2015-09-06 14:15:29 -07:00
Armon Dadgar f43a47fbb6 agent: set default HTTP address 2015-09-06 13:29:03 -07:00
Armon Dadgar 71d1178a70 http/job: complete the job endpoints 2015-09-06 12:32:22 -07:00
Armon Dadgar f166c7248f http/job: support force evaluation endpoint 2015-09-06 11:50:37 -07:00
Armon Dadgar 5e277579d0 http/job: handle register 2015-09-06 11:47:52 -07:00
Armon Dadgar 327368d763 http/job: adding update endpoint 2015-09-05 19:08:47 -07:00
Armon Dadgar 540c9d3496 http/job: adding job query endpoint 2015-09-05 18:43:40 -07:00
Armon Dadgar a4ac7fe177 agent: make unit tests much faster 2015-09-05 18:41:00 -07:00
Armon Dadgar a2176148f2 http/job: implement deregister 2015-09-05 18:20:47 -07:00
Armon Dadgar f858c31426 http: framework jobs endpoints 2015-09-05 18:00:30 -07:00
Armon Dadgar 1a3069ee67 agent: adding basic test 2015-09-05 17:07:36 -07:00
Armon Dadgar 4bf257e951 http: basic framework 2015-09-05 17:06:05 -07:00
Armon Dadgar 253995e377 agent: adding stats 2015-08-30 18:20:00 -07:00
Armon Dadgar 7989cb4642 agent: working on setup 2015-08-30 18:14:40 -07:00
Armon Dadgar 6e7fc1a4a3 agent: config merging 2015-08-30 18:10:23 -07:00
Armon Dadgar 0c3064bada agent: adding HTTP server 2015-08-23 17:50:33 -07:00
Armon Dadgar 19990f4657 agent: basic setup 2015-08-23 17:40:27 -07:00
Armon Dadgar adb771ed1d agent: moving functions into helpers 2015-08-23 16:57:54 -07:00
Armon Dadgar 07b832c588 agent: use the client 2015-08-23 16:53:15 -07:00
Armon Dadgar f42a37480e agent: boilerplate 2015-08-16 16:40:04 -07:00
Armon Dadgar 1e36821bfd changing default ports 2015-08-16 15:10:11 -07:00
Armon Dadgar e7505cfa69 agent: working on setup 2015-08-16 14:34:38 -07:00
Armon Dadgar 93332295db agent: start basic logging setup 2015-08-16 13:54:49 -07:00
Armon Dadgar 867571de8f agent: initial skeleton 2015-08-15 18:54:41 -07:00
Armon Dadgar 6882c9d6a1 command/agent: basic command 2015-08-15 18:34:47 -07:00
Armon Dadgar 408159d40f Adding basic version command 2015-06-01 15:25:51 +02:00