Commit Graph

8296 Commits

Author SHA1 Message Date
Alex Dadgar
7e0302376c nomad stop 2017-08-22 13:22:29 -07:00
Alex Dadgar
fcacdd5c73 inspect 2017-08-22 13:19:29 -07:00
Alex Dadgar
f18fbc6ba4 node drain 2017-08-22 13:13:44 -07:00
Alex Dadgar
920e0d7f87 logs and fs 2017-08-22 13:11:32 -07:00
Alex Dadgar
3ae8ecb32f Autocomplete deployment commands 2017-08-22 13:05:24 -07:00
Alex Dadgar
5addfc97b4 changelog 2017-08-22 10:44:55 -07:00
Alex Dadgar
7a6ccf126c Merge pull request #3002 from jrasell/gh_2993
Add the Nomad agent version to the node-status CLI output.
2017-08-22 10:43:25 -07:00
Alex Dadgar
14452be68e Merge branch 'master' of github.com:hashicorp/nomad 2017-08-21 17:58:58 -07:00
Alex Dadgar
7540f4779b fix lxc 2017-08-21 17:43:51 -07:00
Alex Dadgar
58bc664d56 fix lxc 2017-08-21 17:09:17 -07:00
Alex Dadgar
d6b0350dbe remove printing of GOOS for generate 2017-08-21 15:18:24 -07:00
Alex Dadgar
2772f89d2e Merge pull request #2953 from jen20/gnumake
build: Replace shell scripts with GNUmakefile
2017-08-21 15:16:46 -07:00
Alex Dadgar
06edd3ba6e changelog 2017-08-21 14:12:38 -07:00
Alex Dadgar
2cc3962ec7 Merge pull request #3070 from hashicorp/b-rolling
Placing allocs counts towards placement limit
2017-08-21 14:08:10 -07:00
Alex Dadgar
b6ed801ce0 fix test 2017-08-21 14:07:54 -07:00
Chelsea Komlo
b98524232a Merge pull request #3068 from hashicorp/f-add-deployments-search-api
Add deployments to search api
2017-08-21 16:34:00 -04:00
Alex Dadgar
993f4d94fa Merge pull request #3069 from clinta/mount-docs
add docs for mount
2017-08-21 12:54:37 -07:00
Alex Dadgar
99bfa4164b changelog 2017-08-21 12:53:48 -07:00
Alex Dadgar
1f54b68223 Placing allocs counts towards placement limit
This PR makes placing new allocations count towards the limit. We do not
restrict how many new placements are made by the limit but we still
count towards the limit. This has the nice affect that if you have a
group with count = 5 and max_parallel = 1 but only 3 allocs exist for it
and a change is made, you will create 2 more at the new version but not
destroy one, taking you down to two running as you would have
previously.

Fixes https://github.com/hashicorp/nomad/issues/3053
2017-08-21 12:41:19 -07:00
Clint Armstrong
3ee1ca15fb add docs for mount 2017-08-21 15:32:44 -04:00
Rob Genova
76f01880bd Merge pull request #3059 from hashicorp/d-minor-doc-updates-2
Minor doc updates
2017-08-21 11:20:26 -07:00
Alex Dadgar
d5982d5584 Merge pull request #3041 from hashicorp/b-3036-update-gopsutil
Update gopsutil to stop calling SetEnv
2017-08-21 10:42:04 -07:00
Chelsea Holland Komlo
9051c7ed8c add deployments to search api 2017-08-21 15:20:55 +00:00
Alex Dadgar
7342fe55f8 fix hook 2017-08-20 20:45:00 -07:00
Rob Genova
6cc533b573 add bold formatting 2017-08-19 00:14:13 +00:00
Rob Genova
c6f869b04b reword for clarity; note that data is not replicated between regions 2017-08-19 00:13:26 +00:00
Rob Genova
1c4dc061f8 Merge pull request #3058 from hashicorp/d-minor-doc-updates
Minor documentation tweaks
2017-08-18 16:35:52 -07:00
Rob Genova
de36bd7f42 Reword long-ish sentence. 2017-08-18 23:18:20 +00:00
Rob Genova
0774bba4fd Clarify that it is not required to set a Vault token on the clients. 2017-08-18 23:17:20 +00:00
Rob Genova
5640284730 Make it explicit that data is not replicated between regions. 2017-08-18 23:16:39 +00:00
Michael Schurter
0a4ea47de4 Merge pull request #3031 from hashicorp/f-2924-consul-headers
Add Header and Method support for HTTP checks
2017-08-18 13:35:08 -07:00
Michael Schurter
948d869cfd Merge mistake made go fmt fail 2017-08-18 13:19:44 -07:00
James Nugent
dcdc91fb6b build: Replace shell scripts with GNUmakefile
This commit replaces the shell script-driven build process for Nomad
with one based around GNU Make (note we _do_ use GNU-specific
constructs), requiring no additional scripts for common cases of
development. The following targets are implemented:

Per-OS/arch combinations:

    Binaries (Host - Mac OS X):
	pkg/darwin_amd64/nomad

    Binaries (Host - Linux):
	pkg/linux_386/nomad
	pkg/linux_amd64/nomad
	pkg/linux_amd64-lxc/nomad
	pkg/linux_arm/nomad
	pkg/linux_arm64/nomad
	pkg/windows_386/nomad
	pkg/windows_amd64/nomad

    Packages (Host - Mac OS X):
	pkg/darwin_amd64.zip

    Packages (Host - Linux):
	pkg/linux_386.zip
	pkg/linux_amd64.zip
	pkg/linux_amd64-lxc.zip
	pkg/linux_arm.zip
	pkg/linux_arm64.zip
	pkg/windows_386.zip
	pkg/windows_amd64.zip

Phony targets:

	dev - Builds for the current host GOOS/GOARCH (unless overriden
	      in the environment)

	release - Builds all appropriate release packages for the
	          current host GOOS/GOARCH (i.e. Windows and Linux
		  packages on a Linux host, Darwin packages on an OSX
		  host)

	generate - Generate code for the current host architecture using
	           `go generate`.

	test - Runs the Nomad test suite

	clean - Removes build artifacts

	travis - Runs `make test` with the wrapper script to prevent
	         Travis CI from timing out.

	help - Displays usage information about commonly used targets.

Note that there are some semantic differences from the previous version.

1. `generate` is no longer a dependency of `dev` builds. This is because
   it causes a rebuild every time, even when no code has changed, since
   `go generate` does not appear to leave file timestamps alone.
   Regardless, it is insufficient to generate on one host OS - it needs
   to be run on each target to ensure everything is generated correctly.

2. `gofmt` is no longer checked. This should be enabled as a linter once
   the `gofmt -s` refactoring will pass on the whole code base, in order
   to avoid special cased checks versus using go-metalinter.

Example Usages:

Make a development build for the current GOOS/GOARCH:

	make dev

Make release build packages appropriate for the host OS:

	make release

Update generated code for the host OS:

	make generate

Run linting checks:

	make check

Build a specific alternative GOOS/GOARCH/tags combination:

	make pkg/linux_amd64-pkg/nomad
	make pkg/linux_amd64-pkg.zip
2017-08-18 06:29:26 +01:00
Alex Dadgar
879eb315ea build acl branch 2017-08-17 17:29:33 -07:00
Michael Schurter
ad940977fa Merge pull request #3021 from clinta/docker-mount2
Expose docker mount options
2017-08-17 16:57:09 -07:00
Michael Schurter
cb17d47f40 Update to latest upstream gopsutil 2017-08-17 16:52:53 -07:00
Michael Schurter
a6bf5b6098 Document check header and method 2017-08-17 16:49:14 -07:00
Michael Schurter
9757867396 Add check header and method changelog entry 2017-08-17 16:49:14 -07:00
Michael Schurter
172c40a90e Put header diff in its own function 2017-08-17 16:49:14 -07:00
Michael Schurter
42041e5666 Test check header error conditions 2017-08-17 16:49:14 -07:00
Michael Schurter
f41475e9dd Error should tell user exactly what type to use 2017-08-17 16:49:14 -07:00
Michael Schurter
5192cdd8d2 Initializing embedded structs is weird 2017-08-17 16:49:14 -07:00
Michael Schurter
bf9f096107 Add diff support for ServiceCheck.Header 2017-08-17 16:49:14 -07:00
Michael Schurter
e0ea41e774 Test createCheckReg 2017-08-17 16:49:14 -07:00
Michael Schurter
7627c1705b Update and test service/check interpolation 2017-08-17 16:49:14 -07:00
Michael Schurter
99724b3858 Add missing consul/testutil/retry pkg 2017-08-17 16:44:21 -07:00
Michael Schurter
45a8617442 Add jobspec test for check method/header 2017-08-17 16:44:21 -07:00
Michael Schurter
c7e5ef7562 Update Consul to v0.9.2 for Header and Method 2017-08-17 16:44:21 -07:00
Michael Schurter
947516405a Add Header and Method support for HTTP checks 2017-08-17 16:44:21 -07:00
Michael Schurter
9d4b98f126 Fix broken link 2017-08-17 16:39:19 -07:00