Commit Graph

868 Commits (194b2568617ae606e0d68637a42dbc9c85905637)

Author SHA1 Message Date
Pierre Souchay 728c5308df Fixed sync of Extra in binarySearch
7 years ago
Pierre Souchay 9243daeb0e Run new test in parallel
7 years ago
Pierre Souchay 5b4905e11d More test cases + travis flacky
7 years ago
Pierre Souchay fadfb95e07 Added Unit tests + fixed boudary limit
7 years ago
Pierre Souchay c838376dfa Added comment for function dnsBinaryTruncate
7 years ago
Pierre Souchay 94c0bf978a Perform a binary search to find optimal size of DNS responses
7 years ago
Kyle Havlovitz 2a636275ad
Update static assets
7 years ago
Kyle Havlovitz af4be34a2a
Update make static-assets goal and run format
7 years ago
Matt Keeler d926679278
Merge pull request #4023 from hashicorp/f-near-ip
7 years ago
Matt Keeler 0619efc254 GH-3798: More PR Updates
7 years ago
Matt Keeler 136efeb3be GH-3798: A couple more PR updates
7 years ago
Matt Keeler cec8d5145b GH-3798: A few more PR updates
7 years ago
Matt Keeler d065d3a6db GH-3798: Updates for PR
7 years ago
Matt Keeler 283a7942c4 GH-3798: Wrap DNS request validation in a retry
7 years ago
Jack Pearkes 265359959b
Merge pull request #4015 from hashicorp/ui-service-tags
7 years ago
Matt Keeler 5794fa8837 GH-3798: Add DNS near=_ip test
7 years ago
Matt Keeler de403d6515 GH-3798: Add HTTP prepared query near=_ip test
7 years ago
Matt Keeler 45a537def9 GH-3798: Add near=_ip support for prepared queries
7 years ago
Isaac Williams 01f5db46e8 Close HTTP response in Agent test (HTTPAPI_MethodNotAllowed_OSS)
7 years ago
Paul Banks 0d8993e338
Allow ignoring checks by ID when defining a PreparedQuery. Fixes #3727.
7 years ago
Pierre Souchay a680c8e91b Clearer documentation and comments for enabling Prometheus support
7 years ago
Pierre Souchay 27362320e8 Enable compression / automatic Mime-Type detection for Prometheus endpoint
7 years ago
Matt Keeler 39c17084b6
Merge pull request #4006 from kjothen/patch-1
7 years ago
Pierre Souchay 93a01b0949 Now use prometheus_retention_time > 0 to enable prometheus support
7 years ago
Pierre Souchay fd98fb1449 Added support exposing metrics in Prometheus format
7 years ago
Jack Pearkes eb447f51e6 api/ui: return tags on internal UI endpoints
7 years ago
Matt Keeler 0d1d03c793
Merge pull request #3752 from yfouquet/issue_3687
7 years ago
Yoann 0f6e05d4c1 Add support for compression in http api
7 years ago
Preetha 2c931c92d4
Merge pull request #3998 from zte-opensource/wip-fix-shutdown
7 years ago
Kieran Othen e4b7465193
Update check.go
7 years ago
Matt Keeler 27899f9f46
Merge pull request #3948 from pierresouchay/fix_tcp_dns_limit
7 years ago
Preetha a67d27c756
Adds discovery_max_stale (#4004)
7 years ago
Preetha 1609b2c6b7
Merge pull request #3994 from hashicorp/f-rename-servicemeta
7 years ago
runsisi b082c8d3ab minor fix for endpoints shutdown
7 years ago
Matt Keeler ea6767d8bc
Merge pull request #3990 from hashicorp/b-gh-3854
7 years ago
Preetha Appan c7581d68c6
Renames agent API layer for service metadata to "meta" for consistency
7 years ago
Preetha daa61c5803
Merge pull request #3881 from pierresouchay/service_metadata
7 years ago
Preetha 3c96d64eaa
Merge pull request #3984 from hashicorp/f-allow-federation-disable
7 years ago
Matt Keeler ebc6f414ac Formatting update
7 years ago
Pierre Souchay 980189a33f Added validation of ServiceMeta in Catalog
7 years ago
Preetha Appan 226cb2e95c
fix typo and remove comment
7 years ago
Matt Keeler 3facce6bfa GH-3854: Warn when node name isnt a valid DNS label
7 years ago
Preetha Appan 010a459365
Remove unnecessary nil checks
7 years ago
Preetha Appan 6c0bb5a810
Fix test and remove unused method
7 years ago
Preetha Appan d77ab91123
Allows disabling WAN federation by setting serf WAN port to -1
7 years ago
Pierre Souchay 18baff80ae Merge remote-tracking branch 'origin/master' into node_health_should_change_service_index
7 years ago
Pierre Souchay 5fb1b18073 More test cases
7 years ago
Pierre Souchay 39a7b5c20d Added new test regarding checks index
7 years ago
Pierre Souchay dd9efb755a Fixed minor typo in comments
7 years ago
Guido Iaquinti 8cd11d5888 Add package name to log output
7 years ago
Josh Soref 94835a2715 Spelling (#3958)
7 years ago
Paul Banks a8f7681c70
Merge pull request #3962 from canterberry/upgrade/tls-cipher-suites
7 years ago
Pierre Souchay b6914617d9 Fixed typo in comments
7 years ago
Pierre Souchay 5e974843f1 Refactoring to have clearer code without weird bool
7 years ago
Pierre Souchay a44b9e84b1 [BUGFIX] When a node level check is removed, ensure all services of node are notified
7 years ago
Preetha Appan 2eed7766a8
cleanup unit test code a bit
7 years ago
Preetha c87699abf2
Merge pull request #3885 from eddsteel/support-options-requests
7 years ago
Devin Canterberry 2187ab1e1c
🎨 Formatting changes only; convert leading space to tabs
7 years ago
Devin Canterberry 7236c95e11
Match expectation of TLSCipherSuites to values of tls_cipher_suites
7 years ago
Devin Canterberry a61abcd931
🐛 Formatting changes only; add missing trailing commas
7 years ago
Devin Canterberry c901307a47
🔒 Update supported TLS cipher suites
7 years ago
Pierre Souchay aebfcb6767 Fixed minor typo (+ travis tests is unstable)
7 years ago
Pierre Souchay 93fa1f6f49 Optimize size for SRV records, should improve performance a bit
7 years ago
Preetha 210cfe5ef9
Merge pull request #3940 from pierresouchay/dns_max_size
7 years ago
Pierre Souchay d0e45f22df Fixed wrong format of debug msg in unit test
7 years ago
Pierre Souchay ce3f47a75d Performance optimization for services having more than 2k records
7 years ago
Pierre Souchay 7d59249d96 Avoid issue with compression of DNS messages causing overflow
7 years ago
Pierre Souchay 419bf29041 Cleaner Unit tests from suggestions from @preetapan
7 years ago
Pierre Souchay b77fd5ce9d 64000 max limit to DNS messages since there is overhead
7 years ago
Pierre Souchay be39fb20cc [BUGFIX] do not break when TCP DNS answer exceeds 64k
7 years ago
Mitchell Hashimoto 8217564c48
agent/consul/fsm: begin using testify/assert
7 years ago
Pierre Souchay 0b7f620dc6 Allow to control the number of A/AAAA Record returned by DNS
7 years ago
Edd Steel 41b1d45cc7
Re-use defined endpoints for tests
7 years ago
Paul Banks 9a47449c6d
Merge pull request #3899 from pierresouchay/fix_blocking_queries_index
7 years ago
Pierre Souchay 360dc1dd8d Simplified error handling for maxIndexForService
7 years ago
Paul Banks dbaabb1dbc
Fix test running in non-bash shells
7 years ago
Paul Banks 6da6e086ef
Merge pull request #3900 from hashicorp/fix-monitor-sigint-3891
7 years ago
Preetha Appan 80791d5b21
Remove extra newline
7 years ago
Preetha Appan 907b97b7f2
Unit test that calls revokeLeadership twice to make sure its idempotent
7 years ago
Preetha Appan f59abcc394
Make sure revokeLeadership is called if establishLeadership errors
7 years ago
Alex Dadgar 18bf9647d5 Test autopilots start/stop idempotency
7 years ago
Alex Dadgar 33c5afdb31 Improve autopilot shutdown to be idempotent
7 years ago
Pierre Souchay a8d3745104 Fixed comments for function maxIndexForService
7 years ago
Pierre Souchay 09351ba9a6 [Revert] Only update services if tags are different
7 years ago
Pierre Souchay 60454b570a Only update services if tags are different
7 years ago
Pierre Souchay a05d38737c Enable Raft index optimization per service name on health endpoint
7 years ago
Paul Banks de58eb1820
Fixes #3891: agent monitor no longer unresponsive before logs stream.
7 years ago
Pierre Souchay 4f10fae3c3 Get only first service to test whether we have to cleanup index of a service
7 years ago
Pierre Souchay bac8fb046f Fixed comment about raftIndex + use test.Helper()
7 years ago
Pierre Souchay 73127ef407 Services Indexes modified per service instead of using a global Index
7 years ago
Edd Steel d0f0d67b4a
Clarify comments
7 years ago
Edd Steel f770f360e9 Test every endpoint for OPTIONS/MethodNotFound
7 years ago
Edd Steel c5f0bb3711 Allow endpoints to handle OPTIONS/MethodNotFound themselves
7 years ago
Edd Steel f5af8b0f03
Initialise `allowedMethods` in init()
7 years ago
Kyle Havlovitz 139b98a427
Fix the coordinate update endpoint not passing the ACL token
7 years ago
Edd Steel 77f19f7505
Support OPTIONS requests
7 years ago
Andrei Burd b608091014 adding human readability for dns requests debug log (#3751)
7 years ago
Pierre Souchay b259b1609c Merge remote-tracking branch 'origin/master' into service_metadata
7 years ago
Pierre Souchay 9a57dfd68a Fixed TestSanitize unit test
7 years ago
James Phillips 3724e49ddf
Fixes a panic on TCP-based DNS lookups.
7 years ago
Pierre Souchay 66fdf445e8 Added unit tests for structs and fixed PartialClone()
7 years ago
James Phillips c2a59f1e6c
Addresses additional state mutations.
7 years ago
James Phillips 1c6de1d623
Fixes all the racy output-side updates to tags.
7 years ago
James Phillips 11f6961e47
Adds a more robust unit test for index churn.
7 years ago
Pierre Souchay 80dde5465b Added support for Service Metadata
7 years ago
James Phillips d9a6e2a901
Makes server manager shift away from failed servers from Serf events.
7 years ago
James Phillips fc155dac19
Adds a before/after test for #3845.
7 years ago
James Phillips 533f65b7a6
Merge pull request #3845 from 42wim/tagfix
7 years ago
Kyle Havlovitz f6ecaa4a1c
Add enterprise default config section
7 years ago
James Phillips e748c63fff
Merge pull request #3855 from hashicorp/pr-3782-slackpad
7 years ago
James Phillips 5f31c8d8d3
Changes "TLS" to "GRPCUseTLS" since it only applies to GRPC checks.
7 years ago
Wim ce771f1fb3 Fix service tags not added to health check. Part two
7 years ago
Veselkov Konstantin 5f38e1148a fix refactoring
7 years ago
Veselkov Konstantin 8e16bd7d77 fix refactoring
7 years ago
Veselkov Konstantin 7de57ba4de remove golint warnings
7 years ago
James Phillips 9cd602de06
Improves user lookup error message.
7 years ago
Kyle Havlovitz 144e6e7d31
Remove nonvoter from metadata.Server
7 years ago
James Phillips 64acd0ade0
Gets rid of named return parameters.
7 years ago
James Phillips b443bd1438
Moves non-stdlib includes into their own section.
7 years ago
Kyle Havlovitz bfeb09983b
Reset clusterHealth when autopilot starts
7 years ago
Kyle Havlovitz 17805e4634
Move autopilot health loop into leader operations
7 years ago
James Phillips c190b35b0e
Updates web assets to latest.
7 years ago
Kyle Havlovitz cde1e7ceb6
Merge pull request #3821 from hashicorp/persist-file-handling
7 years ago
Kyle Havlovitz f156b12b22
Merge pull request #3820 from hashicorp/serfwan-port-fix
7 years ago
James Phillips 93fd6bfeb4
Moves the coordinate fetch after the ACL check.
7 years ago
Kyle Havlovitz 68ae92cb8c
Don't remove the files, just log an error
7 years ago
Kyle Havlovitz 8c5be2dd97
Enforce a valid port for the Serf WAN since it can't be disabled.
7 years ago
Kyle Havlovitz 4e325a6b8f
Add graceful handling of malformed persisted service/check files.
7 years ago
James Hartig aedab91a66 Resolve symlinks in config directory
7 years ago
James Phillips 9509aa6c4b
Adds the NodeID field back to the /v1/agent/self Config block.
7 years ago
James Phillips ebcd1787db
Adds more info about how to fix the private IP error.
7 years ago
James Phillips 48cfe6ff5f
Fixes crash where body was optional for PQ endpoint (it is not).
7 years ago
Dmytro Kostiuchenko 1a10b08e82 Add gRPC health-check #3073
7 years ago
Diptanu Choudhury 294151c1ad Using labels
7 years ago
Diptanu Choudhury 006eab2394 Added telemetry around Catalog APIs
7 years ago
James Phillips 5b88b8df38
Updates the checked in web assets.
7 years ago
James Phillips 6412d8d9aa
Updates the built-in web assets.
7 years ago
James Phillips 7a46d9c1e3
Wraps HTTP mux to ban all non-printable characters from paths.
7 years ago
James Phillips 2edc11b44c
Updates the built-in web UI assets.
7 years ago
James Phillips da6a4635b0
Fixes a `go fmt` cleanup.
7 years ago
Kyle Havlovitz 11a0c9cc58
Fix vet error
7 years ago
Kyle Havlovitz 77dc52f430
Move autopilot initializing to oss file
7 years ago
Kyle Havlovitz 039e7f1880
Move autopilot setup to a separate file
7 years ago
Kyle Havlovitz d08ab9fd19
Make some final tweaks to autopilot package
7 years ago
Kyle Havlovitz a86d11ec0a
Merge pull request #3737 from hashicorp/autopilot-refactor
7 years ago
James Phillips 06f980061e
Merge pull request #3728 from weiwei04/fix_globalRPC_goroutine_leak
7 years ago
James Phillips f491a55e47
Merge pull request #3642 from yfouquet/master
7 years ago
James Phillips ca3f9024ac
Works around mapstructure behavior to enable sessions with no checks.
7 years ago
Kyle Havlovitz 324c2ecb53
Expose IsPotentialVoter for advanced autopilot logic
7 years ago
James Phillips 98e837167e
Changes maps to merge vs. overwrite when processing configs.
7 years ago
Kyle Havlovitz 12bf61c851
Merge branch 'master' into autopilot-refactor
7 years ago
Kyle Havlovitz d6b266c045
A few last autopilot adjustments
7 years ago
Kyle Havlovitz 2310687c1d
More autopilot reorganizing
7 years ago
James Phillips 46742a5041
Adds TODOs referencing #3744.
7 years ago
James Phillips 2892f91d0b
Copies the autopilot settings from the runtime config.
7 years ago
Kyle Havlovitz b92f895c23
More refactoring to make autopilot consul-agnostic
7 years ago
Yoann Fouquet 986148cfe5 [Fix] Service tags not added to health checks
7 years ago
Kyle Havlovitz de28555671
Move autopilot to a standalone package
7 years ago
James Phillips d12e81860f
Moves Serf helper into lib to fix import cycle in consul-enterprise.
7 years ago
James Phillips 5065f3d82e
Turns of intent queue warnings and enables dynamic queue sizing.
7 years ago
Wei Wei cc9648c957 fix globalRPC goroutine leak
7 years ago
James Phillips 3e46544085
Creates a registration mechanism for snapshot and restore.
7 years ago
James Phillips f53f521072
Begins split out of snapshots from the main FSM class.
7 years ago
James Phillips c8e763667f
Creates a registration mechanism for FSM commands.
7 years ago
James Phillips 78292662d7
Moves the FSM into its own package.
7 years ago
James Phillips e810697e06
Resolves an FSM snapshot TODO.
7 years ago
James Phillips aa61159b74
Creates a registration mechanism for schemas.
7 years ago
James Phillips 93ff33b1be
Creates a registration mechanism for RPC endpoints.
7 years ago
James Phillips 68f100c8df
Creates HTTP endpoint registry.
7 years ago
James Phillips 679775418f
Moves coordinate disabled logic down into endpoints.
7 years ago
James Phillips 29367cd5ae
Moves ACL disabled response logic down into endpoints.
7 years ago
James Phillips 44d824a58f
Renames "segments" to "segment" to be consistent with other files.
7 years ago
James Phillips 8bf1f57737
Renames stubs to be more consistent.
7 years ago
James Phillips 8abd2050fa
Sheds monotonic time info so tombstone GC bins work properly.
7 years ago
James Phillips de57a9ef51
Gives back the lock before writing to the expire channel.
7 years ago
James Phillips 34c13925d4
Skips files with unknown extensions when not forcing a format.
7 years ago
James Phillips 1e49c157c5
Adds a snapshot agent stub to the config structure.
7 years ago
James Phillips 990fbbb86b
Cleans up check logging.
7 years ago
James Phillips f19ba41144
Moves the LAN event handler after the router is created.
7 years ago
James Phillips 17737ee030
Revert "Adds a small sleep to make sure we are in the next GC bucket."
7 years ago
James Phillips 24475048e2
Adds a sleep to make sure we are in the next GC bucket, ups time.
7 years ago
James Phillips c57884fffe
Skips the tombstone GC test in Travis for now.
7 years ago
James Phillips cd935ebe6c
Adds missing os import.
7 years ago
James Phillips f6b7dcbcf6
Removes bogus getPort() in favor of freeport.
7 years ago
James Phillips 8579225c27
Skips IPv6 test in Travis.
7 years ago
James Phillips 2937656f8e
Adds a longer retry period for the AE deferred output test.
7 years ago
James Phillips 7b966e2d26
Tightens timing up and reorders GC test to be less flaky.
7 years ago
James Phillips 7c6ab5e783
Doubles the GC timing.
7 years ago
James Phillips 8de7c77482
Opens up test timing a little more.
7 years ago
James Phillips c46612f691
Shifts off a gran boundary to help make test less flaky.
7 years ago
James Phillips f31856c1b7
Opens up the tombstone GC test timing.
7 years ago
James Phillips 93f68555d0
Adds enable_agent_tls_for_checks configuration option which allows (#3661)
7 years ago
James Phillips 85e678fbdd
Saves the cycled server list after a failed ping when rebalancing. (#3662)
7 years ago
James Phillips 099b143838
Double-books the HTTP metrics w/ and w/o the "consul" prefix.
7 years ago
James Phillips 4a2cafe525
Adds HTTP/2 support to Consul's HTTPS server. (#3657)
7 years ago
James Phillips aa199ab6ba
Makes the metrics ACL test call the right endpoint.
7 years ago
Preetha Appan b15d8db851 Sets tty in docker client back to true, as a potential fix for docker exec weirdness
7 years ago
Kyle Havlovitz d3dd2b1402
Move check definition to a sub-struct
7 years ago
Kyle Havlovitz dbab3cd5f6
Merge branch 'master' into esm-changes
7 years ago
Kyle Havlovitz c4375d5a47
Merge pull request #3622 from hashicorp/coordinate-node-endpoint
7 years ago
Kyle Havlovitz 021b2849c5
Remove redundant lines from coordinate test
7 years ago
Kyle Havlovitz b0536a96cc
Fill out the tests around coordinate/node functionality
7 years ago
Frank Schröder 874e350b2f config: add -config-format option (#3626)
7 years ago
Frank Schröder a052255f86 vendor: update go-discover (#3634)
7 years ago
Kyle Havlovitz 1e3b0d441b
Factor out registerNodes function
7 years ago
James Phillips 6bf55d16a2
Relaxes Autopilot promotion logic. (#3623)
7 years ago
Frank Schroeder c72e6bdb37
docker: fix failing test
7 years ago
Frank Schroeder 7c0e5036a8
docker: render errors with %v since they can be nil
7 years ago
Kyle Havlovitz a1d14019dd
Add tests around coordinate update endpoint
7 years ago
Kyle Havlovitz 2392545adc
Merge branch 'coordinate-node-endpoint' of github.com:hashicorp/consul into esm-changes
7 years ago
Kyle Havlovitz 5589eadcf5
Added Coordinate.Node rpc endpoint and client api method
7 years ago
Frank Schroeder ca9aac746f
agent: add /v1/coordianate/node/:node endpoint
7 years ago
Frank Schroeder b4d8c26194
docker: add comment about "connection reset by peer" error
7 years ago
Frank Schroeder 164ec3ec39
docker: stop previous check on replace
7 years ago
Frank Schroeder e774b46f82
docker: close idle connections on stop
7 years ago
Frank Schroeder 94726ef105
docker: do not alloc a tty since this is not interactive
7 years ago
Frank Schroeder a1b47d99c1
docker: make sure to log the error when we fall through
7 years ago
Frank Schroeder 51a18c2557
docker: ignore "connection reset by peer"
7 years ago
Kyle Havlovitz ce4e8c46fa
Add deregister critical service field and refactor duration parsing
7 years ago
Kyle Havlovitz 291455f475
Added coordinate update http endpoint
7 years ago
Kyle Havlovitz d56936e27a
Added remaining HTTP health check fields to structs
7 years ago
Kyle Havlovitz a7c42a6c2a
Expose SkipNodeUpdate field and some health check info in the http api
7 years ago
Frank Schroeder d14adc6b4d
fix go vet issue
7 years ago
Frank Schroeder 96fdbd00a6
replace custom unique id with a UUID
7 years ago
Frank Schroeder 8f145559d8
Decouple the code that executes checks from the agent
7 years ago
Frank Schroeder 1cb8b0ffe3
local state: fix go vet issue
7 years ago
Frank Schroeder 7335c34c32
local state: remove stale comment
7 years ago
Frank Schroeder 3d547e30c7
local state: make test more robust
7 years ago
Frank Schroeder 52e73301f6
local state: clone check to avoid side effect
7 years ago
Frank Schroeder 6bc9d66192
local state: use synchronized access to internal maps
7 years ago
Frank Schroeder cc0499da3d
ae: do not trigger on Resume while holding the lock
7 years ago
Frank Schroeder 92f136de12
ae: add remaining test cases
7 years ago
Frank Schroeder 622ace2829
ae: refactor StateSyncer to state machine for better testing
7 years ago
Frank Schroeder 1212598ae2
ae: add test that we run a full before a partial sync
7 years ago
Frank Schroeder 4431e222fe
ae: make control flow more explicit
7 years ago
Frank Schroeder 3231385089
ae: fix typo in constructor name
7 years ago
Frank Schroeder 51daa96dfe
ae: add test for resume triggering SyncChanges
7 years ago
Frank Schroeder 92088d21e8
ae: add test for ifNotPausedRun
7 years ago
Frank Schroeder 11e172d1e9
ae: make stagger function pluggable for testing
7 years ago
Frank Schroeder e2452efed8
ae: restore previous pause/resume behavior
7 years ago
Frank Schroeder aba072bd1d
ae: ensure that syncs are blocked when paused
7 years ago
Frank Schroeder 58d52ac580
local state: rename Add{Check,Service}State to Set{Check,Service}State
7 years ago
Frank Schroeder e144f51b29
local state: move Metadata methods together
7 years ago
Frank Schroeder 4f9e05f634
local state: update documentation of updateSyncState
7 years ago
Frank Schroeder 41c7b0927e
local state: update comments
7 years ago
Frank Schroeder de57b16d99
local state: address review comments
7 years ago
Frank Schroeder 5c77c59501
local state: refactor TestAgentAntiEntropy_EnableTagOverride
7 years ago
Frank Schroeder 524981f367
local state: fix TestAgentAntiEntropy_EnableTagOverride
7 years ago
Frank Schroeder 1181aaee6a
local state: rename tests
7 years ago
Frank Schroeder 1602ac56b5
local state: drop retry loops from tests
7 years ago