Commit Graph

1738 Commits (e9e6514c9b0b57f759bb294e49cf55ebad969bde)

Author SHA1 Message Date
James Phillips 575d70aaa7
Cleans up some drift between the OSS and Enterprise trees.
7 years ago
Frank Schroeder 7bee8e644d
command: show full help text on usage
7 years ago
Frank Schroeder bb13277ca1 command: do not merge flags in-place
7 years ago
Frank Schroeder e769cd22f6 command: simplify duplicate code
7 years ago
Frank Schroeder a364555121 command: drop hidden flags from base command
7 years ago
Frank Schroeder bc78fa576a command: drop unused hidden flags for 'validate'
7 years ago
Frank Schroeder 497d2702bf
command: drop legacy 'operator raft' tests
7 years ago
Frank Schroeder 4d604c5138 command: simplify 'operator raft'
7 years ago
Frank Schroeder 3a7fb35fb0 command: don't show confusing error on usage output
7 years ago
Frank Schroeder ce0d03c46a command: drop deprecated 'configtest' command
7 years ago
Kyle Havlovitz adf29675f3 Merge pull request #3535 from hashicorp/metric-docs
7 years ago
Kyle Havlovitz 198ed6076d Clean up subprocess handling and make shell use optional (#3509)
7 years ago
Kyle Havlovitz c728564994
Update metric names and add a legacy config flag
7 years ago
Kyle Havlovitz 787787f904
Split BaseCommand http config into a separate function
7 years ago
Kyle Havlovitz 8b31eef467
Add base command option for hiding generated help for normal args
7 years ago
James Phillips be92c6862d
Returns errors properly from the consul operator raft list-peers command.
7 years ago
Frank Schröder e84c2b2edd Metrics service prefix (#3498)
7 years ago
Preetha Appan 3c4a108769 Move Raft protocol version for list peers end point to server side, fix unit tests. This fixes #3449
7 years ago
preetapan 73951d8319 Merge pull request #3494 from hashicorp/enforce_json_extension
7 years ago
James Phillips 45646ac3f4 Bumps default Raft protocol to version 3. (#3477)
7 years ago
Preetha Appan a286ad7533 Enforce json or hcl extension to Consul config files, updated unit tests
7 years ago
Frank Schröder 12216583a1 New config parser, HCL support, multiple bind addrs (#3480)
7 years ago
James Phillips 00605c0214
Shows the segment name in the keyring API and command output.
7 years ago
James Phillips d12b172a5d
Remaps servers to "<all>" only when listing multiple segments.
7 years ago
James Phillips 1a117ba0a8
Makes the all segments query explict, and the default for `consul members`.
7 years ago
James Phillips 74d635e9c6
Simplifies members command to not fetch segments.
7 years ago
Kyle Havlovitz f8261330f0
Remove duplicate error message
7 years ago
Kyle Havlovitz 62102a537e
Organize segments for a cleaner split between enterprise and OSS
7 years ago
Kyle Havlovitz 7e565d7338
Fix some inconsistencies with segment logic and comments
7 years ago
Kyle Havlovitz 21513b0393
Update coord display in ui to account for segments
7 years ago
Kyle Havlovitz d129767657
Add agent.segment interpolation to prepared queries
7 years ago
Kyle Havlovitz 2ada0439d4
Add rpc_listener option to segment config
7 years ago
James Phillips b1a15e0c3d
Adds open source side of network segments (feature is Enterprise-only).
7 years ago
Frank Schroeder 831d84c940 build: make tests independent of build tags
7 years ago
wuxin d6729243eb fix command/kv_import.go help text (#3387)
7 years ago
Frank Schröder 4b642fed2f agent: honor deprecated flags for retry-join-{ec2,azure,gce} (#3384)
7 years ago
Frank Schroeder 1acff3533e
agent: move agent/consul/structs to agent/structs
7 years ago
Kyle Havlovitz d5634fe2a8
Add support for labels/filters from go-metrics
7 years ago
Frank Schroeder 2fac427cd4 agent: use github.com/hashicorp/go-discover
7 years ago
Preetha Appan 840749db7e Fix comments, and remove redundant TestConfig init from a couple of unit tests
7 years ago
Preetha Appan aa98aeb4b1 Moved handling advertise address to readConfig and out of the agent's constructor, plus unit test fixes
7 years ago
Preetha Appan 25acd1534a Move go-socketaddr template parsing into config package to make it happen before creating a new agent. Also removed redundant parsetemplate calls from agent.go.
7 years ago
James Phillips 08a8d9f2a7 command/lock: Add -child-exitcode, return 2 on child error (#3329)
7 years ago
Kyle Havlovitz 9268849d11
Add UpgradeVersionTag to autopilot get/set commands
7 years ago
James Phillips 1791d99a10 Adds new config to make script checks opt-in, updates documentation. (#3284)
7 years ago
James Phillips 86918be323
Sort tags so output is deterministic.
7 years ago
Seth Vargo afd83a9705 Add catalog CLI functions (#3204)
7 years ago
Frank Schroeder 406dc2ead8 command: make TestExecCommandRun_CrossDC more resilient
7 years ago
James Phillips f1bded7c5e
Removes unneeded shutdown channel in config reading tests.
8 years ago
James Phillips 6977e40077 Fixes watch tracking during reloads and fixes address issue. (#3189)
8 years ago
James Phillips 380c8b957d Changes host-based node IDs from opt-out to opt-in. (#3187)
8 years ago
Jared Wasinger 3cdde3c7ca Warn when attempting to bootstrap an even number of nodes (#3158)
8 years ago
Frank Schroeder ea5b0f2c7c agent: fix 'consul leave' shutdown race (#2880)
8 years ago
James Phillips 6b2ad20131
Moves flag slice helper into configutil.
8 years ago
James Phillips 902f1ce16f Moves config util helpers into their own package. (#3165)
8 years ago
Kyle Havlovitz 5d99ee80ca Add an option to disable keyring file (#3145)
8 years ago
Frank Schroeder 1c75cf1af5 pkg refactor
8 years ago
Frank Schroeder 9ceef2b32e test: move discover tests
8 years ago
Frank Schroeder d2ee591fbf use 'c' as command receiver for simple commands
8 years ago
Frank Schroeder 902f4caff2 agent: move watch plans into agent
8 years ago
preetapan 2de032125b Fixed regression with dns server start condition (#3137)
8 years ago
Seth Vargo 89f16984f9
Simplify
8 years ago
Seth Vargo ee1b5d5024
Update comment
8 years ago
Seth Vargo 532f8d1435
Parse values given to ?passing in the API
8 years ago
James Phillips 86713c1b8a
Opens up timing bound on flaky test.
8 years ago
James Phillips 66ec9c7a7d
Fixes HTTP header compare by including standard headers.
8 years ago
Frank Schroeder b5f8d6f9fd agent: fix time.Duration parsing
8 years ago
Frank Schroeder 39d33c2fdc
agent: log events and exit code to the log file
8 years ago
Frank Schroeder 4a223111d2
log: use prefix [ERR] instead of [ERROR]
8 years ago
James Phillips fa8a26ad54
Updates static assets to latest.
8 years ago
James Phillips a09eed585e Merge pull request #3121 from hashicorp/increase-graceful-timeout
8 years ago
Frank Schroeder fe69de3bba
agent: increase graceful shutdown timeout
8 years ago
Frank Schroeder 46c055d57b
agent: log differnt shutdown stages
8 years ago
Frank Schröder 825f72f5ef agent: support custom header and method for http checks (#3106)
8 years ago
Frank Schroeder 94b39557e8 test: refactor TestDecodeConfig test
8 years ago
Frank Schroeder 325f82972a test: Fix TestAgent_Reload
8 years ago
James Phillips 240413f5d6 Merge pull request #3105 from hashicorp/test-stability
8 years ago
Frank Schroeder 51e0e158f1 agent: fix graceful http server shutdown
8 years ago
Frank Schroeder ae711c3b04 agent: cleanup run method
8 years ago
Frank Schroeder b203ffab29 agent: move registerWatches out of the run method
8 years ago
Frank Schroeder 11245e53a7 agent: move telemetry out of the run method
8 years ago
Frank Schroeder 84f5e8c3ab agent: move update check out of the run method
8 years ago
Frank Schroeder 96d8035adc agent: simplify signal handling
8 years ago
Frank Schroeder 34fd31b7b1 agent: move config reloading into the agent
8 years ago
Frank Schroeder aa1519c9f7 agent: move parseMetaPair to config and export
8 years ago
Frank Schroeder cb98754cd6 agent: remove agent from command
8 years ago
Frank Schroeder d977aa1fe7 agent: move retry join into agent
8 years ago
Frank Schroeder 55a513da2e agent: add GossipEncrypted function
8 years ago
James Phillips b0b5df579f
Cleans up an unrelated vet error.
8 years ago
James Phillips b4b5036dfb
Adds back the port shuffle on agent start retries.
8 years ago
Frank Schroeder 375825f34c Do not recurse when the service address is a local cname
8 years ago
Frank Schroeder 9956bc9b47 agent: LastContact cannot be negative (#3067)
8 years ago
Frank Schroeder db15cd847a
test: replace one more BoolFalse with agent.Bool()
8 years ago
Frank Schroeder dcc68f0f85
test: we will not use dev mode for testing for now
8 years ago
Frank Schroeder f89ae9f7e7
test: stagger retry attempts of TestAgent.Start
8 years ago
Frank Schroeder bdfed817ee
test: make TestAgent setup reusable
8 years ago
Frank Schroeder 4034d0ac0b
agent: use agent logger for consul client and deps
8 years ago
Frank Schroeder c1e6a77c75
test: start secondary agents also via TestAgent
8 years ago
Frank Schroeder a9451d596f
agent: set tcpKeepAliveListener when there is no error
8 years ago
Frank Schroeder 345666bdb6
test: use test name as log prefix
8 years ago
Frank Schroeder d6c7404b34
agent: simplify shutdown timeout logging
8 years ago
Frank Schroeder 30ba712857
agent: set proto to http since we are logging it now
8 years ago
Frank Schroeder ceda18366f
test: Use Bool() instead of &BoolTrue/False since
8 years ago
Frank Schroeder ec729693d7
Address review comments
8 years ago
Frank Schroeder 26200929c1
agent: start HTTPS only if there is a cert and key
8 years ago
Frank Schroeder b6c69ebf5d
agent: refactor DNS and HTTP server
8 years ago
Frank Schroeder aa92adcdd5
test: increase sleep time for test
8 years ago
Frank Schroeder f498f24032
test: allow tests to control anti-entropy syncs
8 years ago
Frank Schroeder eea16e1640
test: run mock dns recursors on random ports
8 years ago
Frank Schroeder 6148910399
test: skip tests that use cmd.Run until signal handling is fixed
8 years ago
Frank Schroeder 56cf015117
test: add test for starting/stopping lots of agents
8 years ago
Frank Schroeder 7c5892a196
test: use UniqueID prefix for check tests to unify log output
8 years ago
Frank Schroeder 0a31094e06
test: improve TestAgent
8 years ago
Frank Schroeder 10540f8d5f
agent: fix logging
8 years ago
Frank Schroeder fe777852cd
test: call t.Fatal() from main go routine
8 years ago
Frank Schroeder 3e39f04527
dns: do not log socket close during shutdown
8 years ago
Frank Schroeder 1df74e36bd
agent: print more useful shutdown message
8 years ago
Frank Schroeder 2e14c09447
test: start sync after agent start
8 years ago
Frank Schroeder 5b5566d916
test: add test name to output
8 years ago
Frank Schroeder 28ed8f1847
test: perform blocking query on agent
8 years ago
Frank Schroeder ebc0c80f08
test: parallelize dns test
8 years ago
Frank Schroeder 72c214b908
test: fix failing test
8 years ago
Frank Schroeder c5f565ee1a
test: remove output to stdout
8 years ago
Frank Schroeder 8f943542b0
test: use cli.NewMockUi instead of new(cli.MockUi)
8 years ago
Frank Schroeder 0325a42089
test: fix data race with endpoints
8 years ago
Frank Schroeder e16589c079
agent: shutdown delegate if created
8 years ago
Frank Schroeder 632f837c98
agent: shutdown dns servers on error
8 years ago
Frank Schroeder 8c1a668481
test: Shutdown half-started agent before retrying
8 years ago
Frank Schroeder 584693482d
test: fix data race in MockNotify
8 years ago
Frank Schroeder 9509ab463c
test: run command tests in parallel
8 years ago
Frank Schroeder 3658d4d428
test: address pull request comments
8 years ago
Frank Schroeder 0f912c8aad
test: remove ACL options from default test config
8 years ago
Frank Schroeder bc47972696
test: allocate ports in blocks of 10
8 years ago
Frank Schroeder 53c1c86ab3
test: refactor command tests to use TestAgent
8 years ago
Frank Schroeder 24eec373de
test: retry a bit more often
8 years ago
Frank Schroeder 659d7dbbde
agent: rename *Config vars to 'cfg'
8 years ago
Frank Schroeder e86d34685f
agent: rename *Command vars to 'cmd'
8 years ago
Frank Schroeder 141efd9588
test: rename *Config vars to 'cfg'
8 years ago
Frank Schroeder 06677708cf
test: use less aggressive retry for agent startup
8 years ago
Frank Schroeder 47501309ae
test: use system temp dir for TestAgent
8 years ago
Frank Schroeder 0c905a0df8
test: a.config -> a.Config
8 years ago
Frank Schroeder 0be63d7060
test: refactor httpTest with TestAgent
8 years ago
Frank Schroeder 308f9929b3
test: run agent tests in parallel
8 years ago
Frank Schroeder 23a6ff383c
agent: refactor tests for TestAgent
8 years ago
Frank Schroeder b5b3aa1376
agent: add TestAgent to replace other mechanisms
8 years ago
Frank Schroeder 3865f14a25
agent: simplify agent creation
8 years ago
Frank Schroeder 82650f73e3
agent: move http/dns endpoints into agent
8 years ago
Frank Schroeder 74be791f9b
agent: fix comment
8 years ago
Frank Schroeder b42916e1ff
agent: simplify socket address helper
8 years ago
Frank Schroeder c44e41a741
agent: replace goto with local function
8 years ago
Frank Schroeder 327401e7ee
agent: inline uiDir field
8 years ago
Frank Schroeder 8f381d62f6
agent: drop logOutput parameter
8 years ago
Frank Schroeder c47db2c922
agent: drop config argument
8 years ago
Kyle Havlovitz 62f72f104c Add settings for upshifting to encrypted gossip (#3079)
8 years ago
James Phillips 385c9522b3 Removes obsolete agent API documentation.
8 years ago
Frank Schroeder 91c5c9a2d0
doc: update comments and run goimports
8 years ago
Michael Leow deb206b7d7
agent: add RetryJoin support for Azure
8 years ago
James Phillips 9aa232ea2e Merge pull request #2901 from deckarep/consul-ensure-exit-non-zero-on-timeout
8 years ago
Frank Schroeder 8ad66f4bea
agent: support custom check id and name
8 years ago
Frank Schroeder ad40a855bd agent: move isAddrANY to separate package
8 years ago
Frank Schroeder e2c37b47ee agent: Replace client/server with delegate interface
8 years ago
Frank Schroeder 41f01a0cfc agent: allow "::" as IPv6 bind address
8 years ago
Frank Schroeder 65b5c51ec7 test: add helper for ioutil.TempDir/TempFile
8 years ago
Frank Schroeder 3d54fe51ba test: lower wait time for some tests
8 years ago
Frank Schroeder 98f6e3b7c5 test: suppress osx firewall warning
8 years ago
Frank Schroeder 3522a41bad test: include test name in temp file/dir
8 years ago
Frank Schroeder db3599762f test: drop unused code
8 years ago
Frank Schroeder 914a83cae0 agent: use bind address as src unless INADDR_ANY
8 years ago
Frank Schroeder e6c6f8cedd agent: use helper for INADDR_ANY
8 years ago
Kyle Havlovitz 5bab68b9bb Add a path for transitioning to TLS on an existing cluster (#3001)
8 years ago
Frank Schroeder 6eba69fbfe agent: drop atlas/scada code
8 years ago
Frank Schroeder 5328609d59 test: refactor TestAgent_Leave_ACLDeny to use only one server
8 years ago
Frank Schroeder a60f508880 test: use isPermissionDenied
8 years ago
Frank Schroeder 66bc2cbabc test: replace blocks and comments with sub-tests
8 years ago
Frank Schroeder d711b9bba0 test: inline request body encoding
8 years ago
Frank Schroeder 82cb9c50ad test: add helper for permission denied check
8 years ago
Frank Schroeder 1e89692cc1 test: drop error check on http.NewRequest
8 years ago
Frank Schroeder 6fa76fd90f
agent: Disallow :: or [::] as advertise or advertise-wan address
8 years ago
Frank Schroeder 8ad52ee9b5
agent: Disallow :: and [::] as service address
8 years ago
Frank Schroeder e365ef12cf
agent: Disallow 0.0.0.0 as advertise or advertise-wan address
8 years ago
Frank Schroeder 73a31b9bfe
agent: Disallow 0.0.0.0 as service address
8 years ago
James Phillips 33a7b8e401
Tweaks some tests that were having a hard time in Travis CI and
8 years ago
James Phillips efff41a8b2
Updates built-in static assets for web UI.
8 years ago
Frank Schroeder 2794db5aac
test: Fix badly formatted retry.Run tests
8 years ago
Frank Schroeder 9c86d5c764
test: convert remaining WaitForResult tests
8 years ago
James Phillips ddfa57765c
retry: Removes the description parameter.
8 years ago
James Phillips 2de1cd5a4a
test: Turns off ACLs for catalog and health WAN translation tests.
8 years ago
James Phillips 888fa5cad6
test: Moves a variable closer to where it's used.
8 years ago
James Phillips 0daacfe5e5
test: Turns down server health interval for faster convergence.
8 years ago
Frank Schroeder 21a82a0a16
test: Refactor WaitForResult tests with retry
8 years ago
Frank Schroeder f39c604cd7
Fix imports
8 years ago
Frank Schroeder 8c2b261c61 Use bind address as source for outgoing connections (#2822)
8 years ago
Frank Schroeder fb83790cb9 Do not modify config after creation II
8 years ago
Frank Schroeder a235986a28 Do not modify config after creation
8 years ago
Frank Schroeder a226edd4a9 Move GCE discovery code to command/agent/config_gce.go
8 years ago
Frank Schroeder 7f73f14260 Move AWS discovery code to command/agent/config_aws.go
8 years ago
Frank Schroeder 78fc19c48c Move verifyUniqueListeners to command/agent/config.go
8 years ago
Frank Schroeder d34ba3e823 Cleanup agent config
8 years ago
Damon Buckwalter 98407322a6 Itty bitty typo
8 years ago
James Phillips 6382f95898
Updates static assets to pick up #2712.
8 years ago