Commit graph

11242 commits

Author SHA1 Message Date
Chelsea Holland Komlo dd5f627feb set server configuration checksum on reload 2018-03-27 18:03:52 -04:00
Michael Schurter eca421415f docs: clarify service.port depends on address_mode
Hopefully helps prevent more issues like #3681 and #4008. The
port/address_mode logic is really subtle, and it took me a long time to
diagnose #4008 despite being the one to have addressed the duplicate
issue before! Not to mention I wrote the code! Definitely need to do
something to make it more understandable...
2018-03-27 14:58:08 -07:00
Michael Schurter fcaee471a0 client: always mark exited sys/svc allocs as failed
When restarts.attempts=0 was set in a jobspec a system or service alloc
that exited with 0 status would be marked as `completed` instead of
`failed`. Since system and service jobs are intended to run until
stopped or updated, they should always be marked as failed when they
exit even in cases where the exit code is 0.
2018-03-27 14:30:19 -07:00
Michael Schurter 7dcea6a37f demo: give agents unique names
Give demo agents unique names to improve `nomad node status` output.
Since the agents default to the hostname, they all had the same name
whether using the root or demo Vagrantfiles.
2018-03-27 14:29:53 -07:00
Michael Schurter ec60a1d3e3 drain: improve comments 2018-03-27 14:27:09 -07:00
Michael Schurter 559dae984f drain: give cli more time before exiting
May want to bump this a bit more as the drain often completes amidst a
flurry of alloc updates.
2018-03-27 14:24:02 -07:00
Michael Schurter e5dfb7e487 drain: unittest draining node logic 2018-03-27 14:24:01 -07:00
Michael Schurter a1ed305a24 test: add mock batch and system allocs
Since the BatchJob helper had a different task group than the Alloc
helper, it was difficult to create a valid batch alloc.
2018-03-27 14:24:01 -07:00
Michael Schurter 77bddc7941 drain: stop sys jobs after drain completes
System allocs should be drained when a node's deadline is hit or when
all other allocs on the node have stopped/migrated.
2018-03-27 14:24:01 -07:00
Michael Schurter fae77b874b drainer: reset index when new job registered 2018-03-27 14:12:59 -07:00
Chelsea Komlo 92a51471e9
Merge pull request #4035 from hashicorp/node-events-timestamps
Properly format node event timestamps
2018-03-27 16:57:39 -04:00
Mildred Ki'Lya 1017cbe8ab
Allow to specify total memory on agent configuration
Allow to set the total memory of an agent in its configuration file. This
can be used in case the automatic detection doesn't work or in specific
environments when memory overcommit (using swap for example) can be
desirable.
2018-03-27 15:46:18 -05:00
Preetha 4e6c5b9718
Merge pull request #4024 from hashicorp/f-delayed-rescheduling-docs
docs for delayed rescheduling options
2018-03-27 15:14:20 -05:00
Preetha Appan e0b5b6f59f
more review feedback 2018-03-27 14:55:19 -05:00
Preetha Appan 13bf976b1f
Replace linear with constant, and other small changes 2018-03-27 14:55:19 -05:00
Preetha Appan 7b0aaebb50
Initial docs for new delayed rescheduling options 2018-03-27 14:55:19 -05:00
Chelsea Holland Komlo b522a0fadc fix up to string to use time.Time 2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo 31557cc44f move tests to use time.Time 2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo 003bc209b9 use time.Time for node events for compatibility 2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo ee96bbbe1d properly formatting unix timestamps 2018-03-27 15:43:57 -04:00
Chelsea Holland Komlo 6e6d6b7e33 check file contents when determining if agent should reload TLS configuration 2018-03-27 15:42:20 -04:00
Alex Dadgar 59005d1d26
Merge pull request #4049 from hashicorp/b-tunnel
Only track nodes if the conn is from the node
2018-03-27 12:39:34 -07:00
Alex Dadgar b88f10ed1d
Merge pull request #4051 from hashicorp/b-alloc-stream-snap
Fix alloc watcher snapshot streaming
2018-03-27 12:39:13 -07:00
Alex Dadgar 432784dae3 Fix alloc watcher snapshot streaming 2018-03-27 11:14:53 -07:00
Alex Dadgar 8b0d8df442
Merge pull request #4048 from hashicorp/f-system
Correct status desc on draining system allocs
2018-03-27 10:12:36 -07:00
Alex Dadgar 5dacb057b7 Only track nodes if the conn is from the node
Fixes a bug in which a connection to a Nomad server was treated as a
connection to a node because the server forwarded a node specific RPC.
2018-03-27 09:59:31 -07:00
Alex Dadgar 9d60e2cebf Correct status desc on draining system allocs 2018-03-26 17:54:46 -07:00
Chelsea Komlo 57e2cd04bd
Merge pull request #4025 from hashicorp/reload-http-tls
Allow TLS configurations for HTTP and RPC connections to be reloaded …
2018-03-26 18:00:30 -04:00
Preetha Appan 539114124e
Fix too long token test case 2018-03-26 16:28:33 -05:00
Preetha b4ae8c48eb
Merge pull request #4045 from hashicorp/f-rename-linear-constant
s/linear/constant/g
2018-03-26 16:22:21 -05:00
Preetha Appan 33e170c15d
s/linear/constant/g 2018-03-26 14:45:09 -05:00
Chelsea Komlo 9fc0b2b303
Merge pull request #4043 from hashicorp/tls-documentation-update
Nomad now closes old connections on reloading a TLS configuration
2018-03-26 15:11:05 -04:00
Preetha 63108b4752
Merge pull request #4039 from hashicorp/b-reschedule-validate
Adds additional validation for ambiguous settings
2018-03-26 13:41:00 -05:00
Preetha Appan 7db930b3c3
Extra test case and better error message for ambiguous config 2018-03-26 13:30:09 -05:00
Preetha 5668c3c38e
Merge pull request #4037 from hashicorp/b-fix-terminal-filtering-service-allocs
Fix edge case in reconciler
2018-03-26 13:14:51 -05:00
Preetha Appan 1b9e413a1a
one field per line in struct definition 2018-03-26 13:13:21 -05:00
Alex Dadgar 648ce8df9b
Merge pull request #4040 from jeloou/fix/vault-stanza-docs
fix typo and remove duplicated text in Vault stanza docs
2018-03-26 11:07:14 -07:00
Alex Dadgar 36fc47c366
Merge pull request #4038 from hashicorp/f-deployment
Only create deployment if job changes or no allocs
2018-03-26 11:06:39 -07:00
Alex Dadgar e106da84de name and test 2018-03-26 11:06:21 -07:00
Chelsea Holland Komlo d20649c46a nomad closes connections on reloading a tls configuration 2018-03-26 11:43:24 -04:00
Chelsea Holland Komlo c2a95f9d7d add test for upgrading only RPC connections 2018-03-26 10:55:27 -04:00
Chelsea Holland Komlo 96df419fff code review feedback 2018-03-26 10:55:22 -04:00
Joseph Núñez beebbe8ae8 website: removed duplicated text 2018-03-25 20:23:05 -03:00
Joseph Núñez 009c394bc1 website: fix typo in Vault stanza docs 2018-03-25 19:45:14 -03:00
Preetha Appan fbd56c35a8
Adds additional validation for ambigous settings (having both unlimited and attempts set) 2018-03-24 10:29:20 -05:00
Alex Dadgar e2a6e64fca Don't create unnecessary deployments 2018-03-23 16:55:21 -07:00
Preetha Appan cbfd69ce7a
Fix edge case in reconciler where service jobs with ClientstatusComplete were not replaced 2018-03-23 18:41:00 -05:00
Alex Dadgar 3b72dd94ba Do not mark an allocation as an inplace update if specification hasn't changed 2018-03-23 14:36:05 -07:00
Chelsea Komlo 7e714664bb
Merge pull request #4033 from hashicorp/make-check-fix
Remove unused function
2018-03-23 15:12:49 -04:00
Alex Dadgar 05449fea09 drop stats fetching log 2018-03-23 12:01:50 -07:00