Commit Graph

8463 Commits

Author SHA1 Message Date
Alex Dadgar 602cce5c21 Node Client doesn't share HTTP client 2017-08-29 14:22:11 -07:00
Chelsea Holland Komlo 81f6f1be69 add .exe file extensions for windows builds 2017-08-29 19:15:55 +00:00
Alex Dadgar 9f5c46f119 Fix TLSServerName for Node API Client
This PR fixes the construction of the TLSServerName when connecting to a
node that has TLS enabled and adds tests for all possible permutations.

Fixes https://github.com/hashicorp/nomad/issues/3013
2017-08-29 11:11:19 -07:00
Chelsea Komlo a544ee89e1 Merge pull request #3119 from jippi/patch-3
Error message for search API does not include the "all" option
2017-08-29 13:23:44 -04:00
Alex Dadgar 6a55596f90 changelog 2017-08-29 10:19:31 -07:00
Alex Dadgar 4b4e6ffa6a Merge pull request #3120 from hashicorp/b-multi-match
Fix exact job match when prefix of other job
2017-08-29 10:15:48 -07:00
Alex Dadgar eaefca0a71 bump down version 2017-08-29 10:13:09 -07:00
Alex Dadgar 708393da68 Merge pull request #3122 from hashicorp/b-even-uuids
status commands handle uuid prefixes with hyphens
2017-08-29 10:10:43 -07:00
Alex Dadgar f99b13c141 add prefix tests 2017-08-29 10:09:30 -07:00
Alex Dadgar 52fa3396e7 use helper 2017-08-29 10:04:02 -07:00
Alex Dadgar 242d7794b6 respond to comments 2017-08-29 09:46:14 -07:00
Alex Dadgar 8c1573642d status commands handle uuid prefixes with hyphens 2017-08-29 09:43:28 -07:00
Alex Dadgar 92dc3d3857 Fix even length uuid post hyphen 2017-08-29 09:21:18 -07:00
Alex Dadgar cd613dfaa5 Status honors exact match and displays matches when more than one is available 2017-08-29 08:42:09 -07:00
Christian Winther e4a72782c7 Error message for search API does not include the "all" option 2017-08-29 15:41:21 +02:00
Alex Dadgar 25128c0b67 bump version 2017-08-28 22:50:00 -07:00
Alex Dadgar 77e694774b
Release v0.6.2 2017-08-28 22:36:59 -07:00
Alex Dadgar c0802f0f1e bump version 2017-08-28 22:30:22 -07:00
Alex Dadgar b94d0e4b08 fix zip structure 2017-08-28 22:29:49 -07:00
Alex Dadgar 65a6d3047a Merge pull request #3116 from hashicorp/b-fix-fs
Fix logs/fs commands
2017-08-28 22:26:25 -07:00
Alex Dadgar 582fd8edda changelog 2017-08-28 22:24:53 -07:00
Alex Dadgar 7af98ee57c Fix logs/fs commands
This PR fixes an assignment to a nil map in the api pkg related to
accessing logs and the filesystem of allocations.

Fixes https://github.com/hashicorp/nomad/issues/3115
2017-08-28 22:21:54 -07:00
Michael Schurter df88205d74 Merge pull request #3114 from hashicorp/f-release-0.6.1
Nomad 0.6.1
2017-08-28 16:29:03 -07:00
Michael Schurter 468c8adfc2 Nomad 0.6.1 2017-08-28 16:26:27 -07:00
Michael Schurter ad9c80e285 Merge pull request #3110 from hashicorp/f-commit-generated
Welcome to the brave new world
2017-08-28 16:23:29 -07:00
Michael Schurter b3b0d62017 Merge pull request #3113 from hashicorp/f-have-appveyor-run-install
Just run go install until we fix tests on Windows
2017-08-28 16:18:25 -07:00
Michael Schurter 934583655a Merge pull request #3112 from hashicorp/b-vendor-windows-dep
Vendor missing windows dep
2017-08-28 16:17:02 -07:00
Michael Schurter affff6f980 Just run go install until we fix tests on Windows 2017-08-28 16:16:37 -07:00
Michael Schurter 985f571c37 Vendor missing windows dep 2017-08-28 16:13:48 -07:00
Michael Schurter d60b625430 Add #3108 to changelog 2017-08-28 16:13:20 -07:00
Alex Dadgar 7867310809 Merge pull request #3111 from hashicorp/d-status
Document new status command
2017-08-28 16:11:01 -07:00
Alex Dadgar ac2e20d511 Document new status command
This PR documents the new status and job status command.
2017-08-28 16:05:58 -07:00
Michael Schurter 28e9fa73f6 Welcome to the brave new world
Committing generated code to help ensure reproducible builds.
2017-08-28 15:51:18 -07:00
Alex Dadgar 19cee09320 Merge branch 'master' of github.com:hashicorp/nomad 2017-08-28 15:45:55 -07:00
Alex Dadgar e4581f0354 Remove tests checking autocomplete only does 1 arg 2017-08-28 15:42:32 -07:00
Michael Schurter 4227373e2d Merge pull request #3108 from hashicorp/b-3013-stats-tls
Fix TLS support in api pkg / cli
2017-08-28 15:37:31 -07:00
Michael Schurter eddc375b9b Simplify region handling 2017-08-28 14:58:15 -07:00
Michael Schurter b145e04d5d Refactor GetNodeClient weirdness
- No need to for a pointer to a pointer
- Properly set and use QueryOptions.Region
2017-08-28 14:41:21 -07:00
Alex Dadgar 76306a6fe9 cleanup changelog 2017-08-28 13:46:31 -07:00
Alex Dadgar 5182ebb8cf don't limit on one arg 2017-08-28 13:40:04 -07:00
Alex Dadgar d8fc61efbd changelog 2017-08-28 12:46:46 -07:00
Alex Dadgar e6bf8f8e75 Merge pull request #3081 from clinta/maxparallel0
If MaxParallel == 0 default limit to count
2017-08-28 12:42:50 -07:00
Alex Dadgar cff1c5ca08 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 3015edffe1 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 af944cc739 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 88908410ef 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 78823d559b 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
Michael Schurter 7363b50666 Fix TLS support in api pkg / cli
Fixes #3013

It's a little weird that Client now has a method for returning a
NewClient, but it's a convenient way to dedupe the logic to
connect-directly-to-a-node which is nontrivial and had sutble
differences between locations.
2017-08-28 11:46:28 -07:00
Alex Dadgar 1df249f1fb 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 6243690899 migrate all context 2017-08-28 05:29:38 +00:00