Commit Graph

12116 Commits

Author SHA1 Message Date
Dhia Ayachi 9e4d7a3d26
generate a single debug file for a long duration capture (#10279) (#10360)
* debug: remove the CLI check for debug_enabled

The API allows collecting profiles even debug_enabled=false as long as
ACLs are enabled. Remove this check from the CLI so that users do not
need to set debug_enabled=true for no reason.

Also:
- fix the API client to return errors on non-200 status codes for debug
  endpoints
- improve the failure messages when pprof data can not be collected

Co-Authored-By: Dhia Ayachi <dhia@hashicorp.com>

* remove parallel test runs

parallel runs create a race condition that fail the debug tests

* snapshot the timestamp at the beginning of the capture

- timestamp used to create the capture sub folder is snapshot only at the beginning of the capture and reused for subsequent captures
- capture append to the file if it already exist

* Revert "snapshot the timestamp at the beginning of the capture"

This reverts commit c2d03346

* Refactor captureDynamic to extract capture logic for each item in a different func

* snapshot the timestamp at the beginning of the capture

- timestamp used to create the capture sub folder is snapshot only at the beginning of the capture and reused for subsequent captures
- capture append to the file if it already exist

* Revert "snapshot the timestamp at the beginning of the capture"

This reverts commit c2d03346

* Refactor captureDynamic to extract capture logic for each item in a different func

* extract wait group outside the go routine to avoid a race condition

* capture pprof in a separate go routine

* perform a single capture for pprof data for the whole duration

* add missing vendor dependency

* add a change log and fix documentation to reflect the change

* create function for timestamp dir creation and simplify error handling

* use error groups and ticker to simplify interval capture loop

* Logs, profile and traces are captured for the full duration. Metrics, Heap and Go routines are captured every interval

* refactor Logs capture routine and add log capture specific test

* improve error reporting when log test fail

* change test duration to 1s

* make time parsing in log line more robust

* refactor log time format in a const

* test on log line empty the earliest possible and return

Co-authored-by: Freddy <freddygv@users.noreply.github.com>

* rename function to captureShortLived

* more specific changelog

Co-authored-by: Paul Banks <banks@banksco.de>

* update documentation to reflect current implementation

* add test for behavior when invalid param is passed to the command

* fix argument line in test

* a more detailed description of the new behaviour

Co-authored-by: Paul Banks <banks@banksco.de>

* print success right after the capture is done

* remove an unnecessary error check

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>

* upgraded github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57 => v0.0.0-20210601050228-01bbb1931b22

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
Co-authored-by: Freddy <freddygv@users.noreply.github.com>
Co-authored-by: Paul Banks <banks@banksco.de>

Co-authored-by: Daniel Nephin <dnephin@hashicorp.com>
Co-authored-by: Freddy <freddygv@users.noreply.github.com>
Co-authored-by: Paul Banks <banks@banksco.de>
2021-06-07 15:51:57 -04:00
Dhia Ayachi a73453e274 fix monitor to only start the monitor in json format when requested (#10358)
* fix monitor to only start the monitor in json format when requested

* add release notes

* add test to validate json format when requested
2021-06-07 16:09:40 +00:00
hc-github-team-consul-core d0d47b318b Putting source back into Dev Mode 2021-06-04 17:58:06 +00:00
hc-github-team-consul-core 599b5a3bff
Release v1.8.12 2021-06-04 02:02:11 +00:00
hc-github-team-consul-core 04e19838a9
update bindata_assetfs.go 2021-06-04 02:02:10 +00:00
Mike Morris 2b1d97b931 changelog: add unreleased entries for 1.8.12 2021-06-03 21:51:10 -04:00
hc-github-team-consul-core 10cf54e7a6 Merge branch 'release/1.8.11' into remote-x 2021-06-03 20:51:46 +00:00
hc-github-team-consul-core f766e37178 Putting source back into Dev Mode 2021-06-03 20:51:43 +00:00
hc-github-team-consul-core 083d71fa03
Release v1.8.11 2021-06-03 19:57:33 +00:00
hc-github-team-consul-core 3c4cea9158
update bindata_assetfs.go 2021-06-03 19:57:32 +00:00
Mike Morris 71fc46509a changelog: merge entries from 1.8.11-beta1 and 1.8.11-beta2 into unreleased 1.8.11 2021-06-03 15:44:55 -04:00
Daniel Nephin 1819976011 Merge pull request #10345 from hashicorp/dnephin/backport-logging-fix
[1.9.x] agent: remove leading whitespace from agent log lines
2021-06-03 18:43:21 +00:00
Mike Morris ea6d6dd2ee Revert "Revert "Merge pull request #10277 from hashicorp/dnephin/backport-serf-tag-refactor""
This reverts commit 442a8efc7f.
2021-06-03 14:24:30 -04:00
Daniel Nephin 8d49cc6585
Merge pull request #10332 from hashicorp/dnephin/backport-envoy-cli-fix
[1.8.x] envoy: fix deadlock when input is larger than named pipe buffer size
2021-06-03 13:00:51 -04:00
Daniel Nephin 68db7f2685 Merge pull request #10324 from hashicorp/dnephin/fix-envoy-bootstrap-exec
envoy: fix deadlock when input is larger than named pipe buffer size
2021-06-01 14:15:45 -04:00
Daniel Nephin ee250d3113 Merge pull request #10321 from hashicorp/dnephin/backport-debug-cli-fix
[1.9.x] debug: remove the CLI check for debug_enabled
2021-05-31 20:10:45 +00:00
Daniel Nephin 655468ad88 Merge pull request #10196 from hashicorp/backport-ci-changes
[1.8.x] Backport CI changes
2021-05-27 12:01:45 -04:00
hc-github-team-consul-core 322bac84a1 Putting source back into Dev Mode 2021-05-26 14:29:48 +00:00
hc-github-team-consul-core a772dbc37a
Release v1.8.11-beta2 2021-05-26 02:18:24 +00:00
hc-github-team-consul-core 2195429f32
update bindata_assetfs.go 2021-05-26 02:18:23 +00:00
Mike Morris 34fc32e6ad changelog: add unreleased entries for v1.8.11-beta2 2021-05-25 21:25:31 -04:00
Mike Morris b589604d92 changelog: add entry for network areas WAN config fix 2021-05-25 21:24:06 -04:00
Mike Morris 442a8efc7f Revert "Merge pull request #10277 from hashicorp/dnephin/backport-serf-tag-refactor"
This reverts commit f45ab674ce, reversing
changes made to 985ca60d35.
2021-05-25 21:15:19 -04:00
Daniel Nephin f45ab674ce
Merge pull request #10277 from hashicorp/dnephin/backport-serf-tag-refactor
[1.8.x] Backport some ent changes for serf tags
2021-05-21 16:43:24 -04:00
Daniel Nephin 4bd66e0348 Merge pull request #10272 from hashicorp/dnephin/backport-namespace-license-fix
Backport some ent changes for serf tags
2021-05-21 12:54:51 -04:00
hc-github-team-consul-core 985ca60d35 Merge branch 'release/1.8.11-beta1' into remote-x 2021-05-18 20:55:05 +00:00
hc-github-team-consul-core 9360f453d3 Putting source back into Dev Mode 2021-05-18 20:55:00 +00:00
hc-github-team-consul-core 8b4feed8f4
Release v1.8.11-beta1 2021-05-18 20:19:38 +00:00
hc-github-team-consul-core 4b23e123ab
update bindata_assetfs.go 2021-05-18 20:19:37 +00:00
Daniel Nephin ee992f788d Merge pull request #8812 from jjshanks/GH-8728
GH-8728 add raft default values
2021-05-18 19:33:17 +00:00
Mike Morris ad9a46439a changelog: add unreleased entries for v1.8.11-beta1 2021-05-18 13:48:42 -04:00
R.B. Boyer 2f9c448801 server: ensure that central service config flattening properly resets the state each time (#10245)
The prior solution to call reply.Reset() aged poorly since newer fields
were added to the reply, but not added to Reset() leading serial
blocking query loops on the server to blend replies.

This could manifest as a service-defaults protocol change from
default=>http not reverting back to default after the config entry
reponsible was deleted.

Backport of #10239 to 1.9.x
2021-05-14 18:25:37 +00:00
R.B. Boyer 63d03e3b6a agent: ensure we hash the non-deprecated upstream fields on ServiceConfigRequest (#10240) (#10244)
Backport of #10240 to 1.9.x
2021-05-14 15:49:55 +00:00
Freddy c2cfa6cf76 Add changelog entry for network area timeout updates (#10241) 2021-05-13 21:06:19 +00:00
Daniel Nephin ea6600dacc Merge pull request #10218 from hashicorp/dnephin/backport-local-agent-fix
[1.9.x] agent/local: do not persist the agent or user token
2021-05-12 17:20:07 +00:00
Daniel Nephin a632542e52
Merge pull request #10175 from hashicorp/dnephin/backport-9683
[1.8.x] local: use agent token to deregister services
2021-05-06 14:18:37 -04:00
Daniel Nephin f8d33b36fd local: default to the agent token instead of the user token
When de-registering in anti-entropy sync, when there is no service or
check token.

The agent token will fall back to the default (aka user) token if no agent
token is set, so the existing behaviour still works, but it will prefer
the agent token over the user token if both are set.

ref: https://www.consul.io/docs/agent/options#acl_tokens

The agent token seems more approrpiate in this case, since this is an
"internal operation", not something initiated by the user.
2021-05-04 14:45:31 -04:00
R.B. Boyer b73816fabb dev: adding a make target to regenerate envoy golden files (#10158) 2021-04-30 16:27:58 +00:00
R.B. Boyer 59ee091fb0
[1.8.x] remove Codecov from CI runs (#10145) (#10156)
Co-authored-by: Jamie Finnigan <jfinnigan@hashicorp.com>
2021-04-30 10:17:00 -05:00
R.B. Boyer 55600be4a9
[1.8.x] connect: update supported envoy versions to 1.14.7, 1.13.7, 1.12.7, 1.11.2 (#10106) 2021-04-29 15:56:24 -05:00
Matt Keeler 86cd4fbe8a
Merge pull request #10103 from hashicorp/backport/1.8.x/10073
[Backport/1.8.x] Backport #10073
2021-04-23 16:35:49 -04:00
Matt Keeler 835d3d4258 Add replication metrics (#10073)
# Conflicts:
#	agent/consul/replication.go
2021-04-23 16:18:08 -04:00
Matt Keeler c9919348be Update changelog and add telemetry docs (#10107) 2021-04-23 16:08:19 -04:00
R.B. Boyer a524593d66 test: switch envoy integration tests to use pkill instead of ps+grep+awk+kill (#10097) 2021-04-23 18:24:15 +00:00
Daniel Nephin 40eeebd654 Merge pull request #10094 from hashicorp/update-fingerprint
updating fingerprint
2021-04-23 13:44:13 -04:00
R.B. Boyer 066bacc80c
Merge pull request #10080 from hashicorp/1.8.x-ca-force-skip-xc
[1.8.x] connect/ca: Allow ForceWithoutCrossSigning for all providers
2021-04-21 13:07:57 -05:00
Kyle Havlovitz 658e6a97bb Merge pull request #9672 from hashicorp/ca-force-skip-xc
connect/ca: Allow ForceWithoutCrossSigning for all providers
2021-04-20 15:41:32 -05:00
Sam Salisbury 4e5521c4a9 Merge pull request #10065 from hashicorp/ci/update-ssh-rw-key
ci: rotate the read/write SSH key fingerprint
2021-04-19 17:18:43 +00:00
hashicorp-ci 6206ab2588 Putting source back into Dev Mode 2021-04-15 21:36:35 +00:00
hashicorp-ci 46a6ae729e
Release v1.8.10 2021-04-15 18:15:40 +00:00