Commit Graph

1089 Commits (231f5a957f4cc43714757af1351564ab073352de)

Author SHA1 Message Date
James Phillips a61d89d0e6 Removes the GOMAXPROCS warnings which are obsolete for Go 1.5+.
9 years ago
Philippe M. Chiasson 65512cae73 Add client ip to http access logs
9 years ago
James Phillips 95c708f65e Adds Docker checks support to client API.
9 years ago
James Phillips 049da2cef2 Breaks up huge HTTP endpoint functions.
9 years ago
James Phillips cd6be4a88d Avoids taking the length again when parsing DNS queries.
9 years ago
James Phillips e1ce1a34b0 Moves conversion of nil slices up to HTTP layer for prepared queries.
9 years ago
James Phillips 4715c04c98 Adds a test to make sure a stale retry terminates.
9 years ago
James Phillips 67fd4fa78d Returns a 404 from a get or execute of a nonexistent query.
9 years ago
James Phillips e9480ecb02 Plumbs the service name back and uses agent-specific TTL settings as a fallback.
9 years ago
James Phillips 81b43135f9 Adds unit tests for prepared queries and DNS, using existing tests for equivalence.
9 years ago
James Phillips 4a0a60af55 Adds DNS support for prepared queries (needs tests).
9 years ago
James Phillips 5e7523ea4b Adds a slightly more flexible mock system so we can test DNS.
9 years ago
James Phillips da20e6668b Adds a note about obfuscating query name/ID from the logs.
9 years ago
James Phillips 57be55103c Adds an HTTP endpoint for prepared queries.
9 years ago
James Phillips 989619cb6b Moves DNS over to new shuffle and filter functions.
9 years ago
James Phillips c248b0017a Fixes nil slices from HTTP endpoints.
9 years ago
James Phillips 8defe75387 Merge pull request #1293 from talwai/master
9 years ago
talwai f6f2e19c6c Kill unused import in command.go
9 years ago
James Phillips 98731f7272 Fixes unit test fail due to expected truncated message.
9 years ago
talwai bc12c5e711 Add DogStatsd configuration
9 years ago
James Phillips 3d1702969f Fixes a go vet finding.
9 years ago
James Phillips d06fc28a0a Prevents agents from considering Raft information when doing sync checks.
9 years ago
James Phillips c0bd639662 Makes the version upshift code look at the correct version field.
9 years ago
Diptanu Choudhury ab7ab8e58e Merge pull request #1343 from hashicorp/f-docker-check
9 years ago
Diptanu Choudhury 3d68d06ac7 Forcing the Env variable to empty while testing the default shell logic
9 years ago
Diptanu Choudhury 2fdcf1ae28 Added a test for selecting shell from env
9 years ago
Diptanu Choudhury 471442e9a4 Making an explicit check to test whether a check is of type Monitor
9 years ago
Diptanu Choudhury 1e240b5c59 Fixed the tests
9 years ago
Diptanu Choudhury f0c783d1a8 Added a test to check if we are properly truncating docker exec outputs
9 years ago
Diptanu Choudhury 582786523a Added a test for exit code 1 with docker exec
9 years ago
Diptanu Choudhury 9efbd1affa Fixed the Fake Docker client to simulate Exec start failures
9 years ago
Diptanu Choudhury 423f7fbcac Not adding the docker check if we couldn't create the client
9 years ago
Diptanu Choudhury f5f5ed0c79 Making sure the script is not empty if it's a docker check
9 years ago
Diptanu Choudhury b4af7f44af Updated the comment for CheckType
9 years ago
Diptanu Choudhury 4c1818eb61 Collect and truncate the output from docker exec
9 years ago
Diptanu Choudhury 5f8f531d2a Defaulting to Monitor check
9 years ago
Diptanu Choudhury 809e9f5284 Extracted the logic of figuring out the shell and fixing the logic to find out if the check is a Docker check
9 years ago
Diptanu Choudhury 31cdf4fe64 Added some tests for docker check
9 years ago
James Phillips f6b589d768 Merge pull request #1296 from hashicorp/f-fast-sync
9 years ago
Diptanu Choudhury 40f72a8323 Marking the state of a service as critical if the Docker Daemon doesn't respond while running checks
9 years ago
Diptanu Choudhury d695012e40 Adding a debug log to indicate the exit code of failed check
9 years ago
Diptanu Choudhury 83db728133 Registering the Exec with Docker Daemon everytime the check is invoked
9 years ago
Diptanu Choudhury 71ede8addb Implemented Docker health checks
9 years ago
James Phillips 088603949c Runs go fmt (sorts new go-cleanhttp imports).
9 years ago
James Phillips ecd3a1d1d2 Completes rebase of network coordinates to new memdb.
9 years ago
James Phillips 439110f384 Gives RTT class a more Go-like name.
9 years ago
James Phillips 99cfbb8a47 Defaults second node to agent if not given. Removes -short option and tweaks output formatting.
9 years ago
James Phillips 88845f7d71 Cleans up after code review, adds a -short option to "consul rtt" command.
9 years ago
James Phillips fb8900156a Adds a "consul rtt" command.
9 years ago
James Phillips 660da92152 Makes the default protocol 2 and lets 3 interoperate with 2.
9 years ago
James Phillips e21b450f69 Runs go fmt after latest rebase.
9 years ago
James Phillips e8322ffe00 Adds a test for the `DisableCoordinate` config.
9 years ago
James Phillips f9da231a1c Adds coordinate of agent to self endpoint.
9 years ago
James Phillips 6289764ea2 Moves sorting up into coordinate endpoint HTTP handlers.
9 years ago
James Phillips d45fc23abf Installs a friendly handler for coordinate endpoints when coordinates are disabled.
9 years ago
James Phillips ce0e9759f8 Fixes config merge fn for disabling coordinates and adds it to JSON.
9 years ago
James Phillips 33e3505aea Adds endpoints for raw network coordinates.
9 years ago
James Phillips 9c9195746f Changes ?near=self to a safer ?near=_agent, which is also clearer about what it does.
9 years ago
James Phillips 9caa5b3653 Adds distance sorting to health endpoint. Cleans up unit tests.
9 years ago
James Phillips e47eea3f3a Adds a magic "self" node name to distance queries.
9 years ago
James Phillips 54ef97b268 Adds tests for HTTP interface. Removes a stray mark.
9 years ago
James Phillips 89c7203f31 Adds coordinate sorting support to catalog queries for nodes and service nodes.
9 years ago
James Phillips d734697820 Turns down the coordinate sync rate a bit more.
9 years ago
James Phillips ad65d953f6 Scales coordinate sends to hit a fixed aggregate rate across the cluster.
9 years ago
James Phillips 66a3d29743 Simplifies the batching function and adds some comments.
9 years ago
James Phillips 5f754c4a87 Does some small cleanups based on PR feedback.
9 years ago
James Phillips 7e6d52109b Hardens Consul from bad coordinates from other nodes.
9 years ago
James Phillips d12aa2ffab Moves batching down into the state store and changes it to fail-fast.
9 years ago
James Phillips b9d5fb0f90 Flips the sense of the coordinate enable option.
9 years ago
James Phillips 92567841d6 Removes one more WAN leftover.
9 years ago
James Phillips 86b112fe31 Does a clean up pass on the Consul side.
9 years ago
James Phillips 01d2452ea3 Merges config changes after rebase.
9 years ago
Derek Chiang f144d17b1c Address comments
9 years ago
Derek Chiang ab9262c656 Add a test case
9 years ago
Derek Chiang bf5cb7522f Use IndexedCoordinate instead
9 years ago
Derek Chiang a1854a7614 Some fixes
9 years ago
Derek Chiang a338e5efe8 Fix a comment
9 years ago
Derek Chiang 98d87b5dd5 Complete logic for sending coordinates
9 years ago
Derek Chiang 9113b26286 Some fixes
9 years ago
Derek Chiang a9ea503c69 Adding tests and stuff
9 years ago
Armon Dadgar 6a350d5d19 Merge pull request #1318 from daveadams/f-http-header-token
9 years ago
Jeff Mitchell 1e3840b044 Update cleanhttp repo location
9 years ago
Jeff Mitchell 9a5fd5424a Use cleanhttp to get rid of DefaultTransport
9 years ago
David Adams b7bcb2a414 Add HTTP request header X-Consul-Token
9 years ago
James Phillips 4ee43e90b7 Deletes the old state store and all its accoutrements.
9 years ago
James Phillips 0c90bdc61a Knocks out the Raft indexes before doing compare.
9 years ago
James Phillips d57431e300 Gets new structs changes to compile, adds some corner case handling and extra unit tests.
9 years ago
Ryan Uber d6af59cded Merge pull request #1309 from hashicorp/f-remove-migrate
9 years ago
Jeff Mitchell f49fc095ef Don't use http.DefaultClient
9 years ago
Ryan Uber de287e3efb agent: consolidates data dir checker
9 years ago
Ryan Uber 10b971df21 agent: test mdb dir protection
9 years ago
Ryan Uber d901fa6389 agent: remove migrator, refuse to start if mdb dir found
9 years ago
Armon Dadgar d137a5fa82 agent: remove an N^2 check. See #1265
9 years ago
Michael Puncel a98d25b541 Add http method to log output
9 years ago
James Phillips 0b05dbeb21 Merge pull request #1235 from wuub/master
9 years ago
Wojciech Bederski c4537ed26f panic when unbalanced localState.Resume() is detected
9 years ago
Dale Wijnand 5a28ebcaa3 Fix a bunch of typos.
9 years ago
James Phillips 2f9ebdb135 Merge pull request #1187 from sfncook/enable_tag_drift_03
9 years ago
Anthony Scalisi 10e028d599 remove various typos
9 years ago
Wojciech Bederski b014c0f91b make Pause()/Resume()/isPaused() behave more like a semaphore
9 years ago
Wojciech Bederski 24bc17eaa1 failing test showing that nested Pause()/Resume() release too early
9 years ago
Shawn Cook 66fd8fb2a0 Rename EnableTagOverride and update formatting
9 years ago
Shawn Cook d7ce0b3c6b Remove debug lines
9 years ago
Shawn Cook 0b3faf6e4a Merge remote-tracking branch 'hashicorp/master' into enable_tag_drift_03
9 years ago
James Phillips 27c59f7b30 Adds missing token to maint unit test.
9 years ago
Shawn Cook 35f276f25d Add test cases TestAgentAntiEntropy_EnableTagDrift
9 years ago
Ryan Uber 1908c16f53 Merge pull request #1230 from hashicorp/f-maintfix
9 years ago
Ryan Uber 039938a7e0 agent: testing node/service maintenance using tokens
9 years ago
Ryan Uber 125d7fd4ee agent: thread tokens through for maintenance mode
9 years ago
Wim 0bc4d9322e Allow AAAA queries for nodeLookup
9 years ago
Ryan Breen 446c640c17 Merge pull request #1217 from 42wim/fix-rfc2308-part3
9 years ago
Armon Dadgar 5cb6ab625e Merge pull request #1214 from zendesk/fix_lock_race_2
9 years ago
Wim 2701bb5cc2 No NXDOMAIN when the answer is empty
9 years ago
Ryan Breen 80d26f9156 Merge pull request #1167 from railsguru/master
9 years ago
Armon Dadgar 52a8a95af9 agent: Always enable the UI endpoints
9 years ago
Michael S. Fischer 43ab372a18 lock.go: fix another race condition
9 years ago
Wim 4a1dc90cba Limit the DNS responses after getting the NodeRecords
9 years ago
Ryan Breen f41b79eff2 Merge pull request #1195 from 42wim/fix-rfc2308-part2
9 years ago
Wim 369982270d Return SOA/not found when the answer is empty
9 years ago
James Phillips 26ce9d16be Merge pull request #1200 from ryotarai/lock-pass-stdin
9 years ago
Ryan Uber 11e4cfd72b agent: reload SCADA client if endpoint changes
9 years ago
Ryan Uber c468acf222 command: atlas endpoint can be passed
9 years ago
Ryan Uber 1cc2429364 agent: atlas_endpoint is configurable
9 years ago
Ryota Arai 33a6cde7dd command/lock: Pass stdin to child process when -pass-stdin passed.
9 years ago
Ryan Uber 5ad8bfbd41 agent: log a message when making a new scada connection
9 years ago
Ryan Uber 4b715a7d2c agent: don't reload scada client if there is no config change
9 years ago
Ryan Uber ed70720d55 agent: testing scada client creation in command
9 years ago
Ryan Uber 52a7206ff3 agent: test scada HTTP server creation
9 years ago
Ryan Uber eb8974160f agent: clean up scada connection manager
9 years ago
Ryan Uber 87c1e4fcd3 agent: document the scada http creation func
9 years ago
Ryan Uber 2e6ccded2c agent: scada client and HTTP server are tracked separately
9 years ago
Andy Lo-A-Foe 85321301e1 Remove duplicate code
9 years ago
Andy Lo-A-Foe 3e046d3efc Use Ports.HTTP directly
9 years ago
Andy Lo-A-Foe 4e2c3373bc Add documentation for http-port option
9 years ago
Shawn Cook ab91590bcb Update tests - NodeService init needs bool
9 years ago
Shawn Cook 96785edd9a Add EnableTagDrift logic to command/agent/local.go
9 years ago
Shawn Cook a0f8c0a2a0 Remove from command/agent/config_test.go
9 years ago
Shawn Cook 6a835939b8 EnableTagDrift in NodeService struct
9 years ago
Ryan Uber 134db62937 Merge pull request #1166 from hashicorp/f-dns-log
9 years ago
Ryan Uber 05216d3cc4 agent: log network address of DNS clients
9 years ago
Andy Lo-A-Foe 7b5da2a240 Add -http-port option to change the HTTP API port
9 years ago
Armon Dadgar 066e772536 Merge pull request #1158 from mfischer-zd/fix_1155
9 years ago
Michael S. Fischer 6875e8d6b4 lock.go: fix race condition
9 years ago
J.R. Garcia 4cb6f3e943 Remove trailing slash from lock
9 years ago
Ryan Breen 018fd69aa2 Merge pull request #1143 from hashicorp/GH-1142
9 years ago
Ryan Breen 0a7dc85076 Test for GH-1142.
9 years ago
Armon Dadgar 0363d4b54b Merge pull request #1137 from 42wim/fix-1124
9 years ago
Ryan Breen 42648438a0 Check NXDOMAIN after filtering nodes
9 years ago
Ryan Uber 93c9c87f7a Merge pull request #1141 from hashicorp/f-travis
9 years ago
Ryan Uber 40f3e3fae7 travis-ci: skip syslog tests for container-based travis infra
9 years ago
Wim 5647a37ffe Recurse when PTR answer is empty
9 years ago
Armon Dadgar 4a9b91f2a2 Merge pull request #1130 from pdf/check_socket
9 years ago
Ryan Uber a6317f2fb2 Merge pull request #1090 from hashicorp/f-keyring-acl
9 years ago
Peter Fern b023904298 Add TCP check type
9 years ago
Ryan Uber 7aa8539c10 agent: disable ACLs for RPC client tests
9 years ago
Armon Dadgar 981c62ccba command/lock: Check for shutdown during lock acquisition. Fixes #800
9 years ago
Benjamin Abbott-Scott f877b9ecc4 Return every time lock acquisition fails
9 years ago
Ryan Uber 1bbdf3b03b agent: vet fixes
10 years ago
Ryan Uber 5682b715c4 Merge pull request #995 from 42wim/rfc2308-soa-ttl
10 years ago
Ryan Uber 79ac4f3512 agent: testing keyring ACLs
10 years ago
Ryan Uber 5c65bc7df2 agent: write-level keyring ACLs work
10 years ago
Ryan Uber bffc0861cc agent: read-level keyring ACLs work
10 years ago
Ryan Uber e37b5ecb69 Merge pull request #1046 from hashicorp/f-event-acl
10 years ago
Ryan Uber d0348d1291 Merge pull request #1004 from i0rek/advertise_addrs
10 years ago
Hans Hasselberg 267e0caf81 Implement advertise_addrs for SerfLan, SerfWan and RPC.
10 years ago
Ryan Uber 320ab1448d command: remote exec takes -token parameter
10 years ago
Ryan Uber 71aae88f3f command: event command supports -token arg
10 years ago
Ryan Uber 5bde81bcdc agent: avoid masking errors when ACLs deny a request
10 years ago
Ryan Uber beb27fb3ef agent: testing user event endpoint ACLs
10 years ago
Ryan Uber 6e084f6897 consul: always fire events from server nodes
10 years ago
Ryan Uber 6f309c355f agent: enforce event policy during event fire
10 years ago
Wim 3b1bcaea98 Send SOA with negative responses
10 years ago
Ryan Uber 8ffa0ea8b7 Merge pull request #1028 from sebastianmarkow/master
10 years ago
Ryan Uber f7f7c4695e agent: testing dns when acls are in use
10 years ago
Ryan Uber fb3938d88e agent: dns uses the configured token during queries
10 years ago
Sebastian Klatt 6ef6e43418
consul: Remove unreachable error handling
10 years ago
Ryan Uber 1b4167699f agent: don't replace empty tokens in the logs, fixes #1020
10 years ago
Ryan Uber f5f7e401d5 agent: fix failing test
10 years ago
Ryan Uber 69921808ee agent: use persist/load/purge convention for function names
10 years ago
Ryan Uber 2d1b873e4b agent: test check state restoration from AddCheck
10 years ago
Ryan Uber 1636a35289 agent: check state is purged if expired
10 years ago
Ryan Uber 2ee8fa8e15 agent: purge check state when checks are deregistered
10 years ago
Ryan Uber 7e6e861394 agent: testing state persistence, recovery, and expiration
10 years ago
Ryan Uber 7597d3d798 agent: first stab at persisting check state
10 years ago
Ryan Uber ebe57a1f65 agent: refactor loadChecks/loadServices, fixes a few minor bugs
10 years ago
Ryan Uber 5226e29a69 agent: don't replace config on SIGHUP if parsing fails
10 years ago
Emil Hessman 3bfc6dfe49 command/agent: skip unix file permissions test on windows
10 years ago
Adam Renberg 7d0959b34e Sort members in by name for consul members
10 years ago
Adam Renberg 6aa21152d1 Sort tags in consul members -detailed output
10 years ago
Ryan Uber 78a80f3a57 agent: flush progress info to console during migrations
10 years ago
Anton Lindström ce93fdd76b Set the User Agent for HTTP health checks
10 years ago
Adam Renberg ed3b0dd9ee Include DC in the members command output
10 years ago
Ryan Uber 2b98ebca78 agent: log a message when data migrations start
10 years ago
Ryan Uber 72ee584df3 Fix tests after merge
10 years ago
Armon Dadgar ebf961ef8b Merge pull request #927 from hashicorp/f-tls
10 years ago
Armon Dadgar 8d86290ebf Fixing merge conflict
10 years ago
Armon Dadgar a485eb8447 agent: copy config into consul config
10 years ago
Armon Dadgar 59d5992355 agent: Adding new VerifyHostname config
10 years ago
Cameron Ruatta 9271d94532 Adding documentation about specifying multiple configuration directories
10 years ago
Ryan Uber ecf43cf14e command: fix configtest help format
10 years ago
Ryan Uber 3ad94bd81d Merge pull request #904 from josephholsten/configtest-clean
10 years ago
Joseph Anthony Pasquale Holsten afbf68878c command/configtest: add
10 years ago
Ryan Uber 3ed0146e44 agent: use service ID field to determine associated health checks during deregister
10 years ago
Ryan Uber 204c11ec01 agent: restore check status when re-registering (updating) services
10 years ago
Armon Dadgar f3a8f907fb Merge pull request #909 from hashicorp/f-create
10 years ago
Ryan Uber 8ef01236e1 agent: allow persisted services to be updated on disk
10 years ago
Ryan Uber 739d1fdf03 Merge pull request #891 from hashicorp/f-token
10 years ago
Armon Dadgar 532c06ac43 agent: Support ACL upserting
10 years ago
Armon Dadgar 27a820d611 agent: Adding test for DNS enable_truncate
10 years ago
Armon Dadgar ea577fbf70 command/agent: Lowercase DC. Fixes #761
10 years ago
Ryan Uber 2b62f2f172 agent: use an additional parameter for passing tokens
10 years ago
Armon Dadgar a86f31517b Merge pull request #816 from pepov/master
10 years ago
Armon Dadgar b381cca304 Merge pull request #902 from hashicorp/f-stats-prefix
10 years ago
Armon Dadgar 0dc58140f3 Merge pull request #862 from hashicorp/f-recurse-cname
10 years ago
Ryan Uber 72524e911d agent: allow configuring the stats prefix
10 years ago
Ryan Uber 35f5a65fb7 agent: more tests
10 years ago
Ryan Uber 18356328c4 agent: restore tokens for services and checks in config
10 years ago
Ryan Uber 663a86f9b9 agent: backwards compat for persisted services from pre-0.5.1
10 years ago
Ryan Uber 442933650e agent: safer read methods for tokens
10 years ago
Ryan Uber 1557f7f19c agent: test coverage loading service/check tokens from persisted files
10 years ago
Ryan Uber 1264f7edf3 agent: fix deadlock reading tokens from state
10 years ago
Ryan Uber bebb5d9641 agent: add service/check token methods to reduce invasiveness
10 years ago
Ryan Uber 92add18e1e agent: persist tokens from API registrations
10 years ago
Ryan Uber bfb27d18cd agent: initial pass threading through tokens for services/checks
10 years ago
artushin cc07734d6e remove config
10 years ago
artushin 7b4720a957 use existing randomStagger
10 years ago
artushin fc0331ddfc add CheckUpdateStagger to MergeConfig
10 years ago
artushin 8decf5d394 adding check_update_stagger
10 years ago
Ryan Uber c9fd3eb469 agent: re-work DNS tests to not rely on the external network
10 years ago
Ryan Uber 116f8b9131 agent: pass through CNAME types for service resolution
10 years ago
Ryan Uber 6f0b1a3b46 agent: Add test for CNAME recursion
10 years ago
Ryan Uber 507917748a agent: parse raw query URL to avoid closing the request body early
10 years ago
Ryan Uber ee5659858a agent: hide tokens from logs and monitor
10 years ago
Ryan Mills 275af975e8 Allow specifying a status field in the agent/service/register and agent/check/register endpoints.
10 years ago
Ryan Uber 9c85ea0c47 agent: Don't attempt migration on new server
10 years ago
Ryan Uber 6cc0eefa76 Merge pull request #857 from hashicorp/f-boltdb
10 years ago
Ryan Uber 60a6da213f agent: handle nil node services in anti-entropy
10 years ago
Ryan Uber ac0f66a91e command: automatically migrate raft data on start
10 years ago
Ryan Uber 7e170b047e agent: fix anti-entropy check sync
10 years ago
Ryan Uber f417279761 agent: test anti-entropy sync
10 years ago
Ryan Uber a60f4adf95 agent: anti-entropy sync services/checks if they don't exist in the catalog
10 years ago
Ryan Uber deec3bef9e agent: fix dns test
10 years ago
Matt Good 062e4f94c0 Remove unnecessary DNS test entry
10 years ago
Matt Good 65ada1a62d Use DNS server startup callbacks
10 years ago
pepov ebaee31874 add and test -advertise-wan cli flag
10 years ago
pepov a1f6647a2c add AdvertiseAddrWan to TestMergeConfig and use different values for Addr values in b than in a
10 years ago
pepov bac3ae9494 Add configuration option to specify a separate address for advertising on the wan
10 years ago
Michael Fraenkel 8c26836783 Support SesionTTLMin configuration
10 years ago
Johannes 'fish' Ziemke f935a8a506 Add -domain command line flag to agent
10 years ago
Ryan Uber 952ec284a4 agent: disable HTTP keepalives for checks
10 years ago