Michael Schurter
87f8dff1ef
Merge pull request #5196 from hashicorp/f-plugin-utils
...
Make plugins/shared external and make pluginutls/
2019-01-23 06:59:32 -08:00
Preetha
0723d2c306
Merge pull request #5225 from hashicorp/b-notaskevent-terminalallocs
...
Don't emit task events after alloc is in a terminal DesiredState
2019-01-23 08:54:10 -06:00
Preetha
4a421bb8c4
Merge pull request #5226 from hashicorp/b-node-status-panic
...
nil check node resources to prevent panic
2019-01-23 08:30:14 -06:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Preetha Appan
77225d1d1a
nil check node resources to prevent panic
2019-01-22 19:34:02 -06:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00
Alex Dadgar
dde175ab6a
vet
2019-01-22 15:44:31 -08:00
Alex Dadgar
95297c608c
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
fe2fa21a7d
gofmt
2019-01-22 15:43:34 -08:00
Alex Dadgar
72f8851254
Split hclspec
2019-01-22 15:43:34 -08:00
Alex Dadgar
8be7057177
move hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
e46d67a889
Driver tests do not use hcl2/hcl, hclspec, or hclutils
2019-01-22 15:43:34 -08:00
Alex Dadgar
2d23f4a038
move reattach config
2019-01-22 15:11:58 -08:00
Alex Dadgar
c19cd2e5cf
loader and singleton
2019-01-22 15:11:57 -08:00
Alex Dadgar
b9f36134dc
move catalog + grpcutils
2019-01-22 15:11:57 -08:00
Preetha Appan
26cb3cd12d
Use DesiredState to determine whether to stop sending task events
2019-01-22 16:43:32 -06:00
Preetha Appan
678c6e834b
dont emit events for terminal allocs
2019-01-22 16:26:33 -06:00
Alex Dadgar
7e81a9e3c4
increase log level
2019-01-22 14:20:54 -08:00
Michael Schurter
7c45733ba4
Merge pull request #5211 from hashicorp/test-porting-08
...
Port some 0.8 TaskRunner tests
2019-01-22 14:05:53 -08:00
Michael Lange
316a4f2541
CHANGELOG: added 0.9 ui changes
2019-01-22 09:59:46 -08:00
Michael Schurter
06119e2505
test: port TestTaskRunner_CheckWatcher_Restart
...
Added ability to adjust the number of events the TaskRunner keeps as
there's no way to observe all events otherwise.
Task events differ slightly from 0.8 because 0.9 emits Terminated every
time a task exits instead of only when it exits on its own (not due to
restart or kill).
0.9 does not emit Killing/Killed for restarts like 0.8 which seems fine
as `Restart Signaled/Terminated/Restarting` is more descriptive.
Original v0.8 events emitted:
```
expected := []string{
"Received",
"Task Setup",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Restarting",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Restarting",
"Started",
"Restart Signaled",
"Killing",
"Killed",
"Not Restarting",
}
```
2019-01-22 09:46:46 -08:00
Preetha
23c25f4b6d
Merge pull request #5207 from hashicorp/b-rename-hooks
...
Rename TaskKillHook to TaskPreKillHook to more closely match usage
2019-01-22 10:29:53 -06:00
Michael Schurter
81334cd3a1
test: port RestartTask from 0.8
2019-01-22 08:08:08 -08:00
Michael Schurter
418d360d19
test: port SignalFailure test from 0.8
...
Also fix signal error handling in mock_driver.
2019-01-22 08:08:08 -08:00
Preetha Appan
a1cc48f78d
Rename TaskKillRequest/Response to TaskPreKillRequest/Response
2019-01-22 09:54:02 -06:00
Preetha Appan
6f3e4e72b9
Fix log comments
2019-01-22 09:45:58 -06:00
Preetha Appan
c3f044291d
Rename TaskKillHook to TaskPreKillHook to more closely match usage
...
Also added/fixed comments
2019-01-22 09:41:56 -06:00
Michael Schurter
77c01c6283
Fix comment
...
Co-Authored-By: preetapan <preetha@hashicorp.com >
2019-01-22 09:41:21 -06:00
Preetha Appan
bf9a2168e7
Rename TaskKillHook to TaskPreKillHook to more closely match usage
...
Also added/fixed comments
2019-01-22 09:41:21 -06:00
Mahmood Ali
06ca7860e2
Merge pull request #5216 from hashicorp/b-fix-tests-20180118
...
tests: deflake client TestFS_Logs_TaskPending test
2019-01-21 09:54:15 -05:00
Preetha
49aedf904f
Update CHANGELOG.md
2019-01-19 11:15:04 -06:00
Mahmood Ali
54c86450f0
tests: deflake TestClientAllocations_GarbageCollect_Remote
...
Use the same strategy as one in f2f383b075
2019-01-19 09:07:27 -05:00
Nick Ethier
23f3c6f023
Merge pull request #5198 from hashicorp/f-driver-upgradepath
...
0.9 Upgrade path for drivers and executors
2019-01-19 00:06:21 -05:00
Mahmood Ali
92033f1a81
tests: deflake client TestFS_Logs_TaskPending test
2019-01-18 21:26:48 -05:00
Mahmood Ali
f2f383b075
Merge pull request #5215 from hashicorp/test-fix-garbagecollect
...
test: fix flaky garbage collect test
2019-01-18 21:10:01 -05:00
Mahmood Ali
f7e7b99819
Merge pull request #5213 from hashicorp/b-api-separate
...
Slimmer /api package
2019-01-18 20:52:53 -05:00
Preetha
06e953ce94
Update CHANGELOG.md
2019-01-18 18:15:11 -06:00
Preetha
dbb2e2655b
Merge pull request #5205 from hashicorp/b-queuedallocs-bugfix
...
Reconcile child summaries correctly
2019-01-18 18:13:19 -06:00
Michael Schurter
f22dba9f64
test: fix flaky garbage collect test
...
This seems to fix TestClientAllocations_GarbageCollectAll_Remote being
flaky.
This test confuses me. It joins 2 servers, but then goes out of its way
to make sure the test client only interacts with one. There are not
enough comments for me to figure out the precise assertions this test is
trying to make.
A good old fashioned wait-for-the-client-to-register seems to fix the
flakiness though. The error was that the node could not be found, so
this makes some sense. However, lots of other tests seem to use the same
"wait for node" logic and don't appear to be flaky, so who knows why
waiting fixes this one.
Passes with -race.
2019-01-18 16:01:30 -08:00
Nick Ethier
f3ab65947e
drivers: regen proto
2019-01-18 18:53:45 -05:00
Mahmood Ali
5e185386e0
api: avoid codegen for syncing
...
Given that the values will rarely change, specially considering that any
changes would be backward incompatible change. As such, it's simpler to
keep syncing manually in the rare occasion and avoid the syncing code
overhead.
2019-01-18 18:52:31 -05:00
Preetha Appan
b403c9bf14
code review comments
2019-01-18 17:41:39 -06:00
Preetha Appan
e58fcf7ac7
revert unintended change
2019-01-18 17:36:35 -06:00
Nick Ethier
ce7bb88010
ar: return error from hooks if occured
2019-01-18 18:31:02 -05:00
Nick Ethier
82d16f8f6c
drivers: fix func naming
2019-01-18 18:31:02 -05:00
Nick Ethier
994c66f7d7
drivers: use consts for task handle version
2019-01-18 18:31:01 -05:00
Nick Ethier
1d50ced70a
drivers: add upgrade path for rawexec, java, rkt and qemu
2019-01-18 18:31:01 -05:00
Nick Ethier
7c440aa437
drivers: fix test
2019-01-18 18:31:01 -05:00
Nick Ethier
2f91ac88f7
cleanup code comments and small fixes from refactor
2019-01-18 18:31:01 -05:00
Nick Ethier
07cdedec2f
driver: add pre09 migration logic
2019-01-18 18:31:01 -05:00