Commit Graph

8604 Commits

Author SHA1 Message Date
James Nugent
f8ff0463b0 build: Rework Vagrant to support multiple OS boxes
This commit reworks the Vagrantfile for Nomad in order to support
straightforward testing on more than one operating system, whilst
retaining the ability to stand up a test cluster running Ubuntu.

The following changes are made:

- Scripts have been extracted from the Vagrantfile into their own shell
  script files, in order that editors lint them.

- All scripts have been edited to lint with no warnings or errors for
  their respective shells.

- Scripts are named according to the operating system and privilege
  level which they run. We prefer to run a whole shell script as root
  versus prefixing (essentially) every command with `sudo` or an
  equivalent.

- The Linux development box has been separated from the test cluster,
  removing some of the more gnarly (and less portable) logic. The Linux
  development box is still primary and autostarts.

- A FreeBSD target has been added. The base box works for both
  Virtualbox and VMWare Fusion.

- A target is added to the GNUmakefile to stand up a test cluster, using
  the default provider, or overriding the provider by setting the PROVIDER
  variable in make:
	- `make testcluster`
	- `make testcluster PROVIDER=vmware_fusion`

- Machines in the test cluster have Avahi configured for zeroconf
  discovery. Each machine can ping each other machine at `hostname.local`
  - for example `nomad-server02.local`, `nomad-client03.local`.
2017-09-08 19:45:38 -05:00
James Nugent
5a30dbd8fd build: Add build targets for FreeBSD/amd64 2017-09-08 18:40:26 -05:00
Michael Schurter
25931340e9 Merge pull request #3179 from jen20/nan-floats
client: Guard against "NaN" values from floats
2017-09-08 14:38:55 -07:00
James Nugent
3a5082022d client: Guard against "NaN" values from floats
This commit protects against finding `0.NaN` tokens in JSON streams
because of infinity representation on serialization.
2017-09-08 16:21:07 -05:00
Michael Schurter
ca8268813f Merge pull request #3178 from jen20/update-x-sys-unix
deps: Update golang.org/x/sys/{unix,windows}
2017-09-08 13:39:22 -07:00
James Nugent
df9a956840 deps: Update golang.org/x/sys/{unix,windows} 2017-09-08 13:33:25 -05:00
Alex Dadgar
4fb2dce22a Merge pull request #3173 from hashicorp/f-namespace-sync
Sync namespace changes
2017-09-08 10:45:55 -07:00
Alex Dadgar
5cb155930e vendor filter iterator 2017-09-07 17:15:56 -07:00
Alex Dadgar
2f3e590602 Fix search contexts 2017-09-07 17:13:18 -07:00
Alex Dadgar
ac1539d5d9 Sync namespace changes 2017-09-07 17:04:21 -07:00
Chelsea Komlo
845c0b6865 Merge pull request #3162 from hashicorp/f-tagged-metrics-api
Tagged metrics API
2017-09-07 18:03:15 -04:00
Chelsea Holland Komlo
36d36afb7f match table names to logged values
docs fixup
2017-09-07 21:57:01 +00:00
Alex Dadgar
0ad65d9908 Merge pull request #3169 from hashicorp/v-cli
Vendor cli to get exit code 127 on unknown command
2017-09-07 12:35:43 -07:00
Alex Dadgar
f6fa70f4d4 Merge pull request #3168 from hashicorp/t-job-deployment
Add testing around nomad job deployments command
2017-09-07 12:35:25 -07:00
Alex Dadgar
ce520b7f68 Merge pull request #3150 from hashicorp/f-watchctx
WatchCtx propogates context error
2017-09-07 12:34:03 -07:00
Chelsea Holland Komlo
e5410d106c update telemetry client metrics for new values 2017-09-07 19:02:38 +00:00
Alex Dadgar
e5670d0f9f WatchCtx propogates context error 2017-09-06 17:37:40 -07:00
Alex Dadgar
9317318f49 changelog 2017-09-06 17:20:31 -07:00
Alex Dadgar
a4e762f30b Vendor cli to get exit code 127 on unknown command 2017-09-06 17:19:07 -07:00
Alex Dadgar
b8b0da4589 Add testing around nomad job deployments command 2017-09-06 17:16:46 -07:00
Alex Dadgar
bb578ab2b7 Merge pull request #3166 from pkrolikowski/fix-panic-deployment-latest
[cli] Fix panic while running latest deployment command witch -latest flag
2017-09-06 16:55:16 -07:00
Chelsea Holland Komlo
c3006c685f improve documentation
move metrics to telemetry; copy to client config
2017-09-06 21:38:06 +00:00
piotr.krolikowski
395161c442 Fix panic while running latest deployment command 2017-09-06 20:26:22 +02:00
Chelsea Holland Komlo
1df5310c6e tagged metrics config options should be on telemetry config
better api example, add telemetry documentation
2017-09-06 15:25:36 +00:00
Chelsea Holland Komlo
cc00c13f4a add documentation for new HTTP metrics endpoint 2017-09-06 13:51:19 +00:00
Chelsea Holland Komlo
4085560503 add http endpoint for in memory metrics
prevent against flaky test due to timing/initialization issues
2017-09-06 13:51:19 +00:00
Alex Dadgar
3e34a230a0 Fix Windows AMD64 build architecture 2017-09-05 17:23:21 -07:00
Alex Dadgar
281132110d changelog 2017-09-05 17:18:43 -07:00
Alex Dadgar
d8d4fb877b Merge pull request #3148 from clinta/purge-stopped
Always purge stopped containers
2017-09-05 17:18:05 -07:00
Alex Dadgar
586580f173 Merge pull request #3165 from hashicorp/b-docker-auth
Fix repo name passed to docker credential helpers
2017-09-05 16:56:51 -07:00
Alex Dadgar
c2648f92dc Merge pull request #3164 from hashicorp/v-go-getter
Update go-getter
2017-09-05 16:54:19 -07:00
Alex Dadgar
9f49f936f7 Vendor consul-template (#3153)
* Vendor consul-template

Fixes https://github.com/hashicorp/nomad/issues/3133

* changelog
2017-09-05 16:53:28 -07:00
Alex Dadgar
4cab1781f6 Fix repo name passed to docker credential helpers
This PR fixes the server url passed to docker credential helpers and
fixes stderr capture.

Fixes https://github.com/hashicorp/nomad/issues/2957
2017-09-05 16:43:21 -07:00
Alex Dadgar
807c8786f8 Update go-getter
Fixes https://github.com/hashicorp/nomad/issues/3154
2017-09-05 16:41:33 -07:00
Alex Dadgar
f585d9f272 Merge pull request #3140 from hashicorp/f-round-trip-test
Integration test for round tripping a job.
2017-09-05 16:38:41 -07:00
Alex Dadgar
0f1b5ba705 update test to use assert 2017-09-05 16:38:15 -07:00
Alex Dadgar
81bc5340a4 changelog 2017-09-05 14:46:25 -07:00
Alex Dadgar
b9f51ce61c Parse Docker mounts correctly (#3163)
* Parse Docker mounts correctly

This PR fixes the parsing of Docker mounts and adds testing to ensure no
regressions.

Fixes https://github.com/hashicorp/nomad/issues/3156

* Review feedback
2017-09-05 14:02:57 -07:00
Chelsea Komlo
949df54e0d Merge pull request #3147 from hashicorp/b-tagged-metrics
Add support for tagged metrics
2017-09-05 15:55:39 -04:00
Chelsea Holland Komlo
0d434d0703 add changelog 2017-09-05 19:24:34 +00:00
Chelsea Holland Komlo
68686cd69a final code review fixups 2017-09-05 18:47:44 +00:00
Chelsea Holland Komlo
ef4aef0223 fix up travis test failure via race condition 2017-09-05 15:04:59 +00:00
Chelsea Holland Komlo
681a3f337a fixups from code review 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
3c0710074c labels depend on full setup of client beforehand 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
b6e104fdf9 update comments 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
a265d86505 remove prints during test 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
a1e81abf40 parse config for metrics fields 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
fce72a1bc9 refactor to use baseLabels 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
a6eeede7e2 pass in commonly used values 2017-09-05 14:13:34 +00:00
Chelsea Holland Komlo
50ab667799 create base labels to be used in every metric 2017-09-05 14:13:34 +00:00