Commit Graph

7560 Commits

Author SHA1 Message Date
Michael Schurter 9d4b0651ef Merge pull request #2753 from hashicorp/b-leader-dies-first
Destroy task group leader first
2017-07-03 14:38:04 -07:00
Michael Schurter 6e7cc3964e Merge pull request #2709 from hashicorp/f-advertise-docker-ips
Advertise driver-specific addresses
2017-07-03 14:04:12 -07:00
Michael Schurter 5ec52ec24a Destroy task group leader first
Before this commit all tasks in a task group were destroyed
concurrently. This meant logging sidecars might be stopped before the
leader task whose logs still need to be shipped.

This commit blocks on the leader shutting down before signalling to
followers to shutdown.
2017-07-03 13:56:56 -07:00
Michael Schurter 8d3e13ab8a System jobs without evals are running too 2017-07-03 13:48:51 -07:00
Michael Schurter 9aa2218c13 Merge pull request #2746 from hashicorp/f-validate-job-updates
Validate job updates
2017-07-03 13:43:18 -07:00
Michael Schurter d9e032aabf Merge pull request #2735 from hashicorp/f-no_host_uuid-true
Default no_host_uuid to true instead of false
2017-07-03 13:18:25 -07:00
Michael Schurter 596727230b Suggest wiping out alloc dir too 2017-07-03 12:29:21 -07:00
Michael Schurter 11f68bfca2 Add more logging to restore state errors 2017-07-03 11:58:41 -07:00
Alex Dadgar a72ceffd51 changelog 2017-07-02 16:12:16 -07:00
Alex Dadgar 1205560873 Merge pull request #2762 from alexandredantas/master
Use node name always false
2017-07-02 16:11:28 -07:00
Alexandre Dantas 100b51ac6a Fixing issue where use_node_name was always been set as false when merging telemetry configurations 2017-07-02 00:31:09 -03:00
Alex Dadgar 83bf127763 Merge pull request #2743 from JarvusInnovations/master
Update middleman-hashicorp to 0.3.28 for mega nav fixes
2017-06-30 18:22:56 -07:00
Michael Schurter 2646fad718 Merge pull request #2757 from hashicorp/b-normalize-ipv6
Properly normalize IPv6 addresses
2017-06-30 10:27:34 -07:00
Michael Schurter e9c357187c Properly normalize IPv6 addresses
A fix to #2739 instead of forcing IPv6 users to always specify a port as
well.

Prior to this commit IPv6 advertise addresses which lacked a port would
fail instead of having the default port added because
`net.SplitHostPort(someipv6)` returns a different error than
`net.SplitHostPort(someipv4)`.
2017-06-29 10:46:31 -07:00
Michael Schurter 34ed718d06 Merge pull request #2748 from hashicorp/d-migrate-needs-sticky
Ephemeral Disks: `migrate` requires `sticky`
2017-06-29 09:15:15 -07:00
Michael Schurter aefbb9f7d2 Merge pull request #2749 from hashicorp/d-ephemeral-size-not-enforced
Noted that ephemeral storage `size` not enforced
2017-06-29 09:14:31 -07:00
Seth Vargo 4b6b9d4bab
Document permissions for agents
Fixes GH-948
2017-06-29 16:59:19 +08:00
Seth Vargo 73b2f8e1ec
Document context of service checks
Fixes GH-1935
2017-06-29 16:54:23 +08:00
Michael Schurter f7d2a74ddf System jobs should be running until stopped
Prior to this commit they would be marked as dead if they had no
currently running allocations -- even though they would spring back to
life (running) if the cluster state changed such that a new eval+alloc
was created.
2017-06-28 11:39:24 -07:00
Charlie Voiselle 9cd861a307 Noted that ephemeral storage `size` not enforced
This value is strictly used in the job placement, but is not enforced like a quota
2017-06-28 12:51:27 -04:00
Charlie Voiselle 47a1077c62 Ephemeral Disks: `migrate` requires `sticky`
The migrate option is a no-op when sticky is set to false
2017-06-28 12:21:01 -04:00
Michael Schurter 9c56f70d12 Validate job updates
Incurs a local read-before-write but because validation is transitive
there's no need to retry the read-validate-write on concurrent updates.
2017-06-27 16:08:18 -07:00
Arvid E. Picciani aa4f029f10 Do not fail when no docker registry auth is available
this amends the behaviour introduced with #2651
and allows pulling public images when docker.auth.helper is set
2017-06-27 11:11:18 +02:00
Michael Schurter 66d1c78763 Merge pull request #2737 from hashicorp/fix-typo
Remove an errant # from vault policy sample.
2017-06-26 13:16:28 -07:00
Michael Schurter a863ead30e Fix test error formats 2017-06-26 12:53:43 -07:00
Michael Schurter 71c2cb3b83 Merge pull request #2740 from multani/upgrade-go-sockaddr
Upgrade hashicorp/go-sockaddr/template to latest version + upgrade CHANGELOG
2017-06-26 12:01:43 -07:00
Ryon Coleman 9dd9dfed0d Update middleman-hashicorp to 0.3.28 for mega nav fixes
Fixes detailed at https://github.com/hashicorp/middleman-hashicorp/pull/47
2017-06-26 14:30:09 -04:00
Jonathan Ballet 3ffb39ea2b Upgrade go-sockaddr/template to latest version + upgrade CHANGELOG 2017-06-25 20:55:40 +02:00
Jeremy Voorhis cd2a9e7bea Remove an errant # from vault policy sample. 2017-06-23 21:15:25 -07:00
Michael Schurter 8fcf866a7d Fix some tests still expecting reverted behavior 2017-06-23 16:51:38 -07:00
Michael Schurter e81252ba45 Default no_host_uuid to true instead of false
The host UUID isn't unique in many virtualized cases and of dubious
value even when it is univerally unique. Default to a random UUID.
2017-06-23 16:23:01 -07:00
Michael Schurter 9b531d51a6 Remove defunct DRIVER references in docs
Simplifies things greatly!
2017-06-23 15:32:47 -07:00
Michael Schurter 5a274e6683 Style and comments 2017-06-23 15:20:04 -07:00
Michael Schurter cff8546035 Fix spelling & re-add immutable state struct 2017-06-23 13:01:39 -07:00
Alex Dadgar 0a85733f7e Merge pull request #2733 from grossws/patch-1
HCL typo fix
2017-06-23 11:36:41 -07:00
Michael Schurter d359d3b554 Rename immutable -> alloc
meh; naming is hard
2017-06-23 10:58:36 -07:00
Konstantin Gribov ea5e5788af HCL typo fix 2017-06-23 20:40:50 +03:00
Michael Schurter af2fc0f1bc Persist Alloc when EvalID changes 2017-06-22 17:33:12 -07:00
Michael Schurter 9e686e84a1 Remove DRIVER env vars from docs 2017-06-22 16:16:17 -07:00
Michael Schurter 641bb7e031 Merge pull request #2729 from hashicorp/b-2696-lookup-ip-on-path
Update go-sockaddr to lookup ip on $PATH
2017-06-22 14:08:26 -07:00
Michael Schurter 3c66f4ddc8 Update go-sockaddr to lookup ip on $PATH
Fixes #2696
2017-06-22 13:46:48 -07:00
Michael Schurter 8b93ec023c Fixup example 2017-06-21 17:19:08 -07:00
Michael Schurter f3a6ddc57d Remove DRIVER env vars
Also make NOMAD_ADDR_* use host ip:port for consistency. NOMAD_PORT_*
varies based on port map and the driver IP isn't exposed as an env var
as the only place it can be used is in script checks anyway.
2017-06-21 17:19:08 -07:00
Michael Schurter 0633d0c286 Have Qemu return PortMap 2017-06-21 17:19:08 -07:00
Michael Schurter 5b59bea67b Move caonicalization from nomad/structs/ to api/ 2017-06-21 17:19:08 -07:00
Michael Schurter 38a0695687 Simplify Docker Networks processing 2017-06-21 17:19:08 -07:00
Michael Schurter fec83b271a Bump error log level 2017-06-21 17:19:08 -07:00
Michael Schurter 73c696e717 Remove readme 2017-06-21 17:19:08 -07:00
Michael Schurter 7fd41b778d Add script to demo weave in vagrant 2017-06-21 17:19:08 -07:00
Michael Schurter 9da78ae25f Remove debug logging 2017-06-21 17:19:08 -07:00