Commit Graph

16378 Commits

Author SHA1 Message Date
Drew Bailey
39280e7a94 returns a 404 if not found instead of redirect to ui 2019-11-08 15:34:35 -05:00
Drew Bailey
5e117eccfe Merge pull request #6650 from hashicorp/b-better-ws-error
decompress response body from websocket error
2019-11-08 10:31:13 -05:00
Drew Bailey
43e3570629 Merge pull request #6639 from hashicorp/return-after-forward
return after request has been forwarded
2019-11-08 09:48:35 -05:00
Drew Bailey
69751a787f update changelog 2019-11-08 09:32:52 -05:00
Drew Bailey
8c891fcb94 switch to uuid helper package 2019-11-08 09:28:06 -05:00
Drew Bailey
03a4f59a05 Remove response body from websocket error
If a websocket connection errors we currently return the error with a
copy of the response body. The response body from the websocket can
often times be completely illegible so remove it from the error string.

make alloc id empty for more reliable failure

un-gzip if content encoding header present
2019-11-08 09:28:02 -05:00
Lars Lehtonen
954d197671 TestEvalBroker_Dequeue_Blocked() proper goroutine error handling (#6651)
TestEvalBroker_Dequeue_Blocked() improve test readability
2019-11-08 08:52:23 -05:00
Nick Ethier
1f6dbeaf78 Merge pull request #6653 from hashicorp/b-6646
nomad: fix bug that didn't allow for multiple connect services in same tg
2019-11-08 08:26:18 -05:00
Nick Ethier
fa4ea8a05b update CHANGELOG 2019-11-08 04:37:40 -05:00
Nick Ethier
005f75a756 nomad: fix bug that didn't allow for multiple connect services in same tg 2019-11-08 04:33:39 -05:00
Chris Baker
e715e142cf Merge pull request #6647 from hashicorp/b-6644-reschedule-on-device-changes
Consider devices in tasksUpdated
2019-11-07 16:46:20 -06:00
Chris Baker
bb964defa4 changed all tests to require from t.Fatalf 2019-11-07 22:39:47 +00:00
Lars Lehtonen
818acc1adb TestEvalBroker_PauseResumeNackTimeout() proper goroutine error handling (#6649)
TestEvalBroker_PauseResumeNackTimeout() improve test readability
2019-11-07 16:04:59 -05:00
Chris Baker
09c58d3190 Update CHANGELOG.md
Co-Authored-By: Michael Schurter <mschurter@hashicorp.com>
2019-11-07 14:11:40 -06:00
Chris Baker
d7d5e59089 updated CHANGELOG 2019-11-07 17:56:21 +00:00
Chris Baker
bcd1243471 the scheduler checks whether task changes require a restart, this needed
to be updated to consider devices
2019-11-07 17:51:15 +00:00
Drew Bailey
a8998f7599 Merge pull request #6573 from hashicorp/update-cci-consul
updates default consul version to 1.6.1
2019-11-07 11:01:22 -05:00
Lars Lehtonen
5d6c1bc0c9 nomad: TestEvalBroker_EnqueueAll_Dequeue_Fair() proper goroutine error handling (#6636)
nomad: TestEvalBroker_EnqueueAll_Dequeue_Fair() improve test readability
2019-11-07 10:39:29 -05:00
Drew Bailey
5d69b3a2a5 update vagrant & packer consul versions 2019-11-07 10:13:14 -05:00
Ben Barnard
a56b880570 Escape job ID in API requests (#2411)
Jobs can be created with user-provided IDs containing any character
except spaces. The jobId needs to be escaped when used in a request
path, otherwise jobs created with names such as "why?" can't be managed
after they are created.
2019-11-07 08:35:39 -05:00
Drew Bailey
a58f50ae6e return after request has been forwarded 2019-11-07 08:33:53 -05:00
Tim Gross
28eb2a23ee doc: switch README to CircleCI build status badge (#6634) 2019-11-06 17:00:48 -05:00
Lars Lehtonen
693c526ce6 nomad: fix dropped error in TestJobEndpoint_Deregister_ACL (#6602) 2019-11-06 16:40:45 -05:00
Tim Gross
a7bc31b011 fix broken test expectation from message change (#6635) 2019-11-06 16:33:13 -05:00
Charlie Voiselle
94a21dce74 Merge pull request #6596 from rjspiker/rj.fonts
website - font and brand update
2019-11-06 13:01:58 -05:00
Robert James Hernandez
2a933cc9fc Bumping freebsd vagrant to 11.3-STABLE (#6500) 2019-11-06 08:58:34 -05:00
James Rasell
c01e495aa3 Remove trailing dot on drain message to ensure better consistency. (#5956) 2019-11-05 16:53:38 -05:00
Drew Bailey
3aa5ac42cf Merge pull request #6623 from hashicorp/monitor-docs
Monitor docs
2019-11-05 14:43:13 -05:00
Drew Bailey
58b24031ec fix long lines, add possible values 2019-11-05 14:24:52 -05:00
Drew Bailey
743a9b0598 agent api docs for monitor
update CHANGELOG
2019-11-05 13:53:35 -05:00
Drew Bailey
eb51141b14 Merge pull request #6499 from hashicorp/f-nomad-monitor
Nomad Monitor
2019-11-05 12:42:36 -05:00
Drew Bailey
03f0aff010 unlock before returning, no need for label
comment, trigger build

return length written
2019-11-05 11:44:29 -05:00
Drew Bailey
8ccb770b00 simplify logch goroutine 2019-11-05 11:44:28 -05:00
Drew Bailey
158517972b wireup plain=true|false query param 2019-11-05 11:44:28 -05:00
Drew Bailey
79411c5e0e coordinate closing of doneCh, use interface to simplify callers
comments
2019-11-05 11:44:26 -05:00
Drew Bailey
33ba36acbd log-json -> json
fix typo command/agent/monitor/monitor.go

Co-Authored-By: Chris Baker <1675087+cgbaker@users.noreply.github.com>

Update command/agent/monitor/monitor.go

Co-Authored-By: Chris Baker <1675087+cgbaker@users.noreply.github.com>

address feedback, lock to prevent send on closed channel

fix lock/unlock for dropped messages
2019-11-05 09:51:59 -05:00
Drew Bailey
bb2a7f4338 address feedback, fix gauge metric name 2019-11-05 09:51:57 -05:00
Drew Bailey
4f618eb1e3 simplify assert message 2019-11-05 09:51:56 -05:00
Drew Bailey
dc977dc8e6 move forwarded monitor request into helper 2019-11-05 09:51:56 -05:00
Drew Bailey
676800f03a address feedback 2019-11-05 09:51:56 -05:00
Drew Bailey
8423ccf890 allow more time for streaming message
remove unused struct
2019-11-05 09:51:55 -05:00
Drew Bailey
f74bd99b2a monitor command takes no args
rm extra new line

fix lint errors

return after close

fix, simplify test
2019-11-05 09:51:55 -05:00
Drew Bailey
9a96c10d4c moving endpoints over to frames 2019-11-05 09:51:54 -05:00
Drew Bailey
f8eaf1f5af lock in sub select
rm redundant lock

wip to use framing

wip switch to stream frames
2019-11-05 09:51:54 -05:00
Drew Bailey
58117c03c4 fix deadlock issue, switch to frames envelope 2019-11-05 09:51:54 -05:00
Drew Bailey
873969cf41 return 400 if invalid log_json param is given
Addresses feedback around monitor implementation

subselect on stopCh to prevent blocking forever.

Set up a separate goroutine to check every 3 seconds for dropped
messages.

rename returned ch to avoid confusion
2019-11-05 09:51:53 -05:00
Drew Bailey
6bf8617d02 rename function, initialize log level better
underscores instead of dashes for query params
2019-11-05 09:51:53 -05:00
Drew Bailey
1176fc0227 address feedback, use agent_endpoint instead of monitor 2019-11-05 09:51:53 -05:00
Drew Bailey
a72bd5cf65 use channel instead of empty string to determine close 2019-11-05 09:51:52 -05:00
Drew Bailey
9bb606a0ae update go-hclog dep
remove duplicate lock
2019-11-05 09:51:52 -05:00