Commit Graph

8905 Commits

Author SHA1 Message Date
Chelsea Holland Komlo
c513bdfd15 add documentation for job list acl 2017-09-15 21:26:27 +00:00
Chelsea Holland Komlo
1bd4965c6e add job list acl 2017-09-15 21:26:27 +00:00
Chelsea Komlo
1edd297a73 Merge pull request #3225 from hashicorp/f-acl-cli-comp
ACL CLI for token/policy create
2017-09-15 16:57:52 -04:00
Chelsea Holland Komlo
4e3d4b1cd0 remove unneeded hidden command 2017-09-15 20:23:41 +00:00
Chelsea Holland Komlo
9c42804bca embed acl subcommands 2017-09-15 20:11:37 +00:00
Chelsea Komlo
284be2f762 Merge pull request #3194 from hashicorp/f-grafana-metrics
Grafana metrics
2017-09-15 15:44:02 -04:00
Chelsea Holland Komlo
7941e78406 filter acl subcommands 2017-09-15 19:37:57 +00:00
Chelsea Holland Komlo
3763ad1d5f add link to configuration 2017-09-15 19:23:08 +00:00
Chelsea Holland Komlo
3491d2296f update readme for steps to create 2017-09-15 19:23:08 +00:00
Chelsea Holland Komlo
c918acfeb5 add a sample grafana dashboard and readme 2017-09-15 19:23:08 +00:00
Chelsea Komlo
4278a310f0 Merge pull request #3186 from hashicorp/f-prometheus-dashboard
Prometheus dashboard
2017-09-15 14:30:05 -04:00
Chelsea Holland Komlo
e7933df125 reworded prometheus readme 2017-09-15 18:27:04 +00:00
Chelsea Holland Komlo
c5ec17bf3a fix up comments 2017-09-15 18:12:17 +00:00
Chelsea Holland Komlo
23e0acbea4 fixups from code review 2017-09-15 18:08:46 +00:00
Michael Schurter
dcbc9a55f6 Check for permission denied errors 2017-09-15 10:41:28 -07:00
Chelsea Holland Komlo
3a8320caa2 fixups from code review 2017-09-15 16:22:39 +00:00
Armon Dadgar
3c405013ad website: document token create 2017-09-14 22:05:17 -07:00
Michael Schurter
3fbd3a10c9 Node.List ACL enforcement 2017-09-14 22:01:18 -07:00
Armon Dadgar
3a8c21508e command: document CLI flags 2017-09-14 21:59:36 -07:00
Armon Dadgar
2a53d420e8 command: Adding acl token create 2017-09-14 21:55:25 -07:00
Michael Schurter
71ae8a555e Node.GetAllocs ACL enforcement 2017-09-14 21:42:19 -07:00
Michael Schurter
0579e0f66e Fix comments for Node ACL tests 2017-09-14 21:41:26 -07:00
Armon Dadgar
4e8f7d856c website: document acl policy apply 2017-09-14 21:31:15 -07:00
Armon Dadgar
e17b4a31c7 command: Adding intermediate command for help text 2017-09-14 21:31:05 -07:00
Armon Dadgar
9de9a349d7 command: Adding acl policy apply test 2017-09-14 21:19:56 -07:00
Michael Schurter
2d4ec79d75 Node.GetNode ACL enforcement 2017-09-14 20:59:18 -07:00
Michael Schurter
5b22fd4b6d Node.Evaluate ACL enforcement 2017-09-14 20:41:44 -07:00
Michael Schurter
69be9f3808 Node.UpdateDrain ACL enforcement 2017-09-14 20:33:31 -07:00
Michael Schurter
f0dee7cbf2 Add NodePolicy test helper 2017-09-14 20:33:12 -07:00
Michael Schurter
cfee5237eb Merge pull request #3220 from hashicorp/f-allocs-acl
Alloc.{GetAlloc,List} ACL enforcement
2017-09-14 19:47:07 -07:00
Michael Schurter
a014676c94 Alloc.GetAlloc ACL enforcement 2017-09-14 17:44:57 -07:00
Michael Schurter
d992d00ca6 Alloc.List ACL enforcement 2017-09-14 17:43:17 -07:00
Michael Schurter
1564e1c4b3 Move check_restart to its own section. 2017-09-14 16:48:39 -07:00
Michael Schurter
5141c957f7 Add check_restart to jobspec tests 2017-09-14 16:48:39 -07:00
Michael Schurter
a508bb9709 Fold SetFailure into SetRestartTriggered 2017-09-14 16:48:39 -07:00
Michael Schurter
6f72270d13 Test check watch updates 2017-09-14 16:48:39 -07:00
Michael Schurter
3c0a42ba8e Rename unhealthy var and fix test indeterminism 2017-09-14 16:48:39 -07:00
Michael Schurter
10dc1c7900 DRY up restart handling a bit.
All 3 error/failure cases share restart logic, but 2 of them have
special cased conditions.
2017-09-14 16:48:39 -07:00
Michael Schurter
5cd1d57218 Watched -> TriggersRestart
Watched was a silly name
2017-09-14 16:48:39 -07:00
Michael Schurter
40ed2625f0 Handle multiple failing checks on a single task
Before this commit if a task had 2 checks cause restarts at the same
time, both would trigger restarts of the task! This change removes all
checks for a task whenever one of them is restarted.
2017-09-14 16:48:39 -07:00
Michael Schurter
f8e872c855 RestartDelay isn't needed as checks are re-added on restarts
@dadgar made the excellent observation in #3105 that TaskRunner removes
and re-registers checks on restarts. This means checkWatcher doesn't
need to do *any* internal restart tracking. Individual checks can just
remove themselves and be re-added when the task restarts.
2017-09-14 16:48:39 -07:00
Michael Schurter
237c096661 Simplify from 2 select loops to one 2017-09-14 16:48:39 -07:00
Michael Schurter
8b8c164622 Wrap check watch updates in a struct
Reusing checkRestart for both adds/removes and the main check restarting
logic was confusing.
2017-09-14 16:48:39 -07:00
Michael Schurter
092057a32b Canonicalize and Merge CheckRestart in api 2017-09-14 16:48:39 -07:00
Michael Schurter
9fb28656c9 Fix whitespace 2017-09-14 16:47:41 -07:00
Michael Schurter
568b963270 Remove unused lastStart field 2017-09-14 16:47:41 -07:00
Michael Schurter
526528c7c9 Removed partially implemented allocLock 2017-09-14 16:47:41 -07:00
Michael Schurter
3db835cb8f Improve check watcher logging and add tests
Also expose a mock Consul Agent to allow testing ServiceClient and
checkWatcher from TaskRunner without actually talking to a real Consul.
2017-09-14 16:47:41 -07:00
Michael Schurter
850d991286 Add changelog entry for #3105 2017-09-14 16:47:41 -07:00
Michael Schurter
7e103f69cb Document new check_restart stanza 2017-09-14 16:46:54 -07:00