Commit Graph

8369 Commits

Author SHA1 Message Date
Alex Dadgar
472a1f7943 Merge pull request #3107 from hashicorp/b-migrate-context-all
All context should use string context "all"
2017-08-28 12:38:54 -07:00
Michael Schurter
4ed87263c4 Merge pull request #3109 from hashicorp/f-squelch-usage-logspam
Squelch logspam when unable to get disk usage stats
2017-08-28 12:28:31 -07:00
Alex Dadgar
c250d00cc4 Merge pull request #3103 from hashicorp/vagrant-install-autocomplete
Automatically install autocomplete for Nomad getting started guide
2017-08-28 12:25:35 -07:00
Alex Dadgar
d40037e138 Merge pull request #3096 from hashicorp/d-all-allocs
Describe the all parameter when listing job allocs
2017-08-28 12:25:24 -07:00
Michael Schurter
7a84cbe02a Squelch logspam when unable to get disk usage stats
To reproduce logspam:

```
$ docker plugin install --grant-all-permissions vieux/sshfs
$ nomad agent -dev
...
2017/08/25 17:09:03.282868 [WARN] client: error fetching host disk usage stats for /var/lib/docker/plugins/a8b4a69b07e5180f828d19e1e9e102ccc0e26f9c9939eaef85357260c30b20a7/rootfs/mnt/volumes: permission denied
... repeats every collection period ...
```
2017-08-28 12:04:32 -07:00
Alex Dadgar
85a1899dfa Reduce startup time on Mac
This PR moves creating the API client into the returned predict
function. The creation of the client causes a lookup of all the system
certificates and doing that for each command on mac was extremely slow.
2017-08-28 11:29:27 -07:00
Chelsea Holland Komlo
7ed974c57e migrate all context 2017-08-28 05:29:38 +00:00
Alex Dadgar
4d97b302a0 Search respects QueryOptions and returns QueryMeta
@chelseakomlo heads up on this change
2017-08-27 22:17:51 -07:00
Alex Dadgar
5bb3c80113 Add QueryOptions to SearchRequest 2017-08-26 15:56:13 -07:00
Chelsea Holland Komlo
d5210ba765 automatically install autocomplete 2017-08-25 23:38:24 +00:00
Chelsea Komlo
3d462d71d2 Merge pull request #3102 from hashicorp/b-status-deployment-id
Get status of deployment via status cli command
2017-08-25 18:07:29 -04:00
Chelsea Holland Komlo
1fdabecad3 get status of deployment via status cli command 2017-08-25 21:06:33 +00:00
Chelsea Komlo
732328e6ae Merge pull request #3047 from hashicorp/f-status-autocomplete
Status autocomplete
2017-08-25 16:27:53 -04:00
Chelsea Holland Komlo
039c2070cc add global flags to status; re-order functions 2017-08-25 19:47:21 +00:00
Chelsea Holland Komlo
f6ca06ce43 refactor and fixups from code review 2017-08-25 17:34:05 +00:00
Chelsea Komlo
0993dea9bd Merge pull request #3097 from hashicorp/d-search-http-documentation
Add HTTP documentation for search api
2017-08-25 13:27:26 -04:00
Chelsea Holland Komlo
e7f6174761 add changelog 2017-08-25 16:44:26 +00:00
Chelsea Holland Komlo
cf432b6528 vendor updated cli and autocomplete dependencies 2017-08-25 16:43:49 +00:00
Chelsea Holland Komlo
497432bc71 cli help and logging formatting 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
d123a4a2b4 fix up formatting of error message
fixups from code review
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
a5238232aa limit argument autocompletion to one 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
3d8c3c59de use existing arg parsing functionality 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
d1ab4f4317 small fixups 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
c24caaaa18 fix autocomplete to list all matches 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
d003af3125 default to job status if no arguments are provided 2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
9e3be518e3 adds any resource autocomplete
defaults to listing jobs if no id is provided
2017-08-25 16:42:11 +00:00
Chelsea Holland Komlo
d93daec7a1 job names causes errors when searching other contexts, only log but not return this err 2017-08-25 16:42:11 +00:00
Alex Dadgar
ec62111ff5 vendor complete library 2017-08-25 09:39:04 -07:00
Chelsea Holland Komlo
004f984147 alignment and fixups from code review 2017-08-25 14:12:23 +00:00
Chelsea Holland Komlo
fa215ede1a add HTTP documentation for search api 2017-08-25 00:14:04 +00:00
Alex Dadgar
1b8eb39444 Fix confusing batch job example 2017-08-24 17:12:43 -07:00
Alex Dadgar
a07ba08ec8 Merge pull request #3091 from jippi/patch-3
Add missing ReconcileSummaries API method
2017-08-24 17:02:39 -07:00
Alex Dadgar
0d17cd78ce Describe the all parameter when listing job allocs
Fixes https://github.com/hashicorp/nomad/issues/3092
2017-08-24 17:01:24 -07:00
Alex Dadgar
2935f7e7ed changelog 2017-08-24 16:58:31 -07:00
Alex Dadgar
ba1eecbf7f Merge pull request #3073 from clinta/docker-500
Allow retry of 500 API errors to be handled by restart policies
2017-08-24 16:57:36 -07:00
Alex Dadgar
00c811ad9f changelog 2017-08-24 13:25:25 -07:00
Alex Dadgar
66a6b5ce73 Merge pull request #3089 from hashicorp/b-link-local
Handle interfaces that only have link-local addrs
2017-08-24 13:24:08 -07:00
Christian Winther
dfd3eb053d Add missing ReconcileSummaries API method
References https://www.nomadproject.io/api/system.html#reconcile-summaries
2017-08-24 11:55:10 +02:00
Armon Dadgar
46e65475d7 Fix Golang update in Vagrant provisioner 2017-08-23 19:55:39 -07:00
Chelsea Komlo
df72e2a442 Merge pull request #3075 from hashicorp/fix-build-lxc-failure
Root permissions are needed for testing certain functionality
2017-08-23 20:01:22 -04:00
Chelsea Komlo
0409cc1dcd Merge pull request #3087 from hashicorp/f-flag-autocomplete
Enable autocompletion of flags
2017-08-23 19:56:52 -04:00
Chelsea Holland Komlo
b24f9948d4 Root permissions are needed for testing certain functionality 2017-08-23 23:43:51 +00:00
Chelsea Komlo
e7c1853b28 Merge pull request #3078 from hashicorp/b-remove-make-bin
Use make release target, remove make bin
2017-08-23 19:35:11 -04:00
Alex Dadgar
73990d68e0 Autocomplete global flags 2017-08-23 23:29:29 +00:00
Chelsea Holland Komlo
ac7669e90a small fixes and cleanup 2017-08-23 23:04:47 +00:00
Chelsea Holland Komlo
e88228cc5d add global flags to autocomplete 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
335cf888b0 use PredictAnything when an flag accepts an argument 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
36f5dd59bc fixes for changelog 2017-08-23 22:58:44 +00:00
Chelsea Holland Komlo
753b033480 update changelog 2017-08-23 22:57:07 +00:00
Chelsea Holland Komlo
c1e5c7132a enable autocompletion of flags 2017-08-23 22:57:07 +00:00