Commit Graph

11143 Commits

Author SHA1 Message Date
Michael Schurter
1bee190eb4 Merge pull request #4084 from hashicorp/f-drain-timestamps
drain: add timestamps to cli output
2018-03-30 15:07:43 -07:00
Michael Schurter
6fcfee7b92 cli: fix drain monitoring formating 2018-03-30 14:20:30 -07:00
Alex Dadgar
05d183bbab Fix lost handling of not actually down nodes 2018-03-30 14:17:41 -07:00
Michael Schurter
2c1f24c1ce cli: remove unreachable drain message 2018-03-30 14:15:12 -07:00
Michael Schurter
6dd601791c cli: log if a node goes down during draining 2018-03-30 14:02:42 -07:00
Michael Schurter
482f0b9fc7 drain: fix monitor node index handling 2018-03-30 12:43:53 -07:00
Alex Dadgar
d6813306d9 Merge pull request #4087 from hashicorp/b-server-members
Generic handling of server region errors
2018-03-30 12:35:41 -07:00
Michael Schurter
3e53517132 Merge pull request #4070 from hashicorp/tests-fix-allocrunner
test: don't rely on alloc runner update count
2018-03-30 12:34:49 -07:00
Michael Schurter
7ff790bc7d cli: differentiate normal output vs info 2018-03-30 11:42:11 -07:00
Alex Dadgar
1188529acf Merge pull request #4086 from hashicorp/b-force
Fix issue where force deadlines weren't respected
2018-03-30 11:26:14 -07:00
Alex Dadgar
aa7df6ab5b Test transistion from both infinite and a future deadline to force 2018-03-30 11:24:39 -07:00
Michael Schurter
55b98ee299 cli: add color to drain output 2018-03-30 11:15:12 -07:00
Alex Dadgar
6cf7b733cd changelog 2018-03-30 10:59:31 -07:00
Alex Dadgar
9f99b9d3d7 Generic handling of server region errors 2018-03-30 10:57:32 -07:00
Michael Schurter
4d22c08b09 drain: add timestamps to cli output
Also toggle eligibility output based on value
2018-03-30 10:26:43 -07:00
Michael Schurter
efbaf2cc2d drain: fix cli blocking when allocs already stopped 2018-03-30 10:18:14 -07:00
Alex Dadgar
c0bbb136a8 Fix force deadline notification 2018-03-30 09:58:29 -07:00
Michael Schurter
2ee0426985 test: don't rely on alloc runner update count
We were incorrectly relying on the count of alloc updates in a number of
tests. Since alloc updates are async, their number is non-determinstic
and largely meaningless.

This should fix quite a few flaky tests in Travis and prevent future
mistaken assumptions in tests.
2018-03-30 09:34:33 -07:00
Alex Dadgar
91749a92b6 Integration test 2018-03-30 09:33:23 -07:00
Preetha Appan
97d39b158f Another e2e rescheduling test case 2018-03-29 20:48:55 -05:00
Alex Dadgar
645aea2d75 Canonicalize migrate 2018-03-29 17:42:58 -07:00
Alex Dadgar
80072d89cf Merge pull request #4083 from hashicorp/b-drain-batch
Unset drain when final batch allocs finish
2018-03-29 17:11:02 -07:00
Alex Dadgar
2a628c1dcb Merge branch 'master' into b-drain-batch 2018-03-29 17:10:34 -07:00
Preetha Appan
9a5b63c1c4 more e2e rescheduling tests 2018-03-29 19:04:18 -05:00
Michael Schurter
8630e8296a Merge pull request #4055 from hashicorp/docs-4008-ports
docs: clarify service.port depends on address_mode
2018-03-29 17:03:38 -07:00
Michael Schurter
53a504c69c Merge pull request #4069 from hashicorp/f-hashealth
add HasHealth helper for nil checks
2018-03-29 17:03:20 -07:00
Alex Dadgar
223c9c7948 Handle upgrade where Node doesn't have eligiblity
This PR handles upgrading a node that has no scheduling eligiblity set.
2018-03-29 16:52:23 -07:00
Alex Dadgar
4d212932a5 test handleTaskGroup 2018-03-29 16:38:47 -07:00
Alex Dadgar
251dd090d8 Watch batch jobs 2018-03-29 16:07:51 -07:00
Preetha
f5efd5f620 Merge pull request #4071 from hashicorp/b-handle-missing-finishedat
handle missing finishedAt
2018-03-29 17:11:34 -05:00
Michael Lange
f9f9fbd62e Merge pull request #4081 from hashicorp/b-ui-service-breadcrumbs
UI: Service job breadcrumbs + errant open connections
2018-03-29 15:08:14 -07:00
Charlie Voiselle
f40cc9ce59 Corrected orphan token issue link 2018-03-29 17:47:22 -04:00
Michael Lange
c06e1f80bd Track multiple xhrs per URL rather than overriding
It was possible for a url to be overridden then canceled, leaving the
open connection open and forgotten about.
2018-03-29 14:40:57 -07:00
Chelsea Komlo
4029e5c915 Merge pull request #4013 from hashicorp/node-events-documentation
Add node events to documentation
2018-03-29 17:16:26 -04:00
Alex Dadgar
a998cafde8 Integration test for batch complete case 2018-03-29 13:51:04 -07:00
Preetha
144471979d Merge pull request #4079 from hashicorp/b-filter-desiredstop
Filter desired status stop allocs correctly
2018-03-29 15:36:22 -05:00
Michael Schurter
52937eac24 Merge pull request #4066 from hashicorp/f-block-drain-cli
drain: block cli until all allocs stop
2018-03-29 13:17:42 -07:00
Preetha Appan
2ba965fa7a rename skip->ignore and improve comment formatting 2018-03-29 15:11:10 -05:00
Alex Dadgar
0360176c00 Autocomplete command aliases
This PR allows aliased commands to be autocompleted but still filters
them from the help output.
2018-03-29 12:55:25 -07:00
Preetha Appan
3809c53a2b remove unused 2018-03-29 14:42:21 -05:00
Preetha Appan
e552af6a64 Use time from task events if task state does not have FinishedAt set 2018-03-29 14:05:56 -05:00
Michael Lange
b6ae7da470 Merge pull request #4067 from hashicorp/ui-upgrade-ember
UI: Upgrade Ember to LTS + fix job summary issues
2018-03-29 12:43:54 -06:00
Michael Lange
3f53c27c67 Merge pull request #4068 from hashicorp/b-ui-firefox-index-watching
UI: Check for a case-sensitive or lowercase header value
2018-03-29 12:41:31 -06:00
Alex Dadgar
3e33d9aa49 Disallow Update stanza on Batch 2018-03-29 11:28:56 -07:00
Preetha Appan
fc50ab930f Refactored for readability, pair programmed with @dadgar 2018-03-29 13:28:37 -05:00
Alex Dadgar
357a10bcf4 Always capture the finish time 2018-03-29 11:27:22 -07:00
Chelsea Holland Komlo
58d24f8bd1 update timestamp and format api reference descriptions 2018-03-29 14:22:46 -04:00
Michael Schurter
4cefb6f06a drain: block cli until all allocs stop
Before the drain CLI would block until the node was marked as completing
drain operations. While technically correct, it could lead operators (or
more likely: scripts) to shutdown drained nodes before all of its
allocations had *actually* terminated.

This change makes the CLI block until all allocations have terminated
(unless ignoring system jobs).
2018-03-29 10:56:09 -07:00
Chelsea Holland Komlo
43f11cc930 add further driver info; driver name with subsystem 2018-03-29 13:34:30 -04:00
Chelsea Holland Komlo
0c6b896707 Revert "omit driver key/val from details"
This reverts commit 74fc5543ba.
2018-03-29 12:49:46 -04:00