Alex Dadgar
3402f2539f
code review
2018-06-06 14:52:26 -07:00
Alex Dadgar
3c9ad243a4
Monitoring non-draining node exits
2018-06-05 17:58:44 -07:00
Alex Dadgar
97ad9dfc92
bump version/lint/generated files
2018-06-01 15:23:10 -07:00
Alex Dadgar
e1bd3e83fb
spelling
2018-06-01 14:53:08 -07:00
Preetha Appan
a7668cd4ec
Fix tests and move isClient to constructor
2018-06-01 15:59:53 -05:00
Preetha Appan
e27caadca6
Fix unnecessary deregistration in consul sync
...
This commit fixes an issue where if a nomad client and server shared the same consul instance, the server would deregister any services and checks registered by clients for running tasks.
2018-06-01 14:48:25 -05:00
Alex Dadgar
d83443932f
Merge pull request #4277 from hashicorp/f-retry-join-clients
...
Add go-discover support to Nomad clients
2018-06-01 16:57:40 +00:00
Alex Dadgar
304b76e1e2
Fix node drain monitor
2018-05-31 15:50:05 -07:00
Alex Dadgar
09b90e4944
Actually disable the schedulers
2018-05-31 13:11:11 -07:00
Alex Dadgar
96b366cda2
Disable schedulers for TestHTTP_AllocSnapshot_Atomic
2018-05-31 12:05:44 -07:00
Alex Dadgar
2dde49e2bf
Improve validation/defaulting, handle start-join
...
This commit:
* Improves how we combine the old retry-* fields and the new stanza and
how it is validated
* Handles the new stanza setting start_join
* Fixes integration test to not bind to the standard port and instead be
randomized.
* Simplifies parsing of the old retry_interval
* Fixes the errors from retry join being masked
* Flags get parsed into new server_join stanza
2018-05-31 10:53:26 -07:00
Alex Dadgar
13f8e91e35
validation errors
2018-05-31 10:53:26 -07:00
Alex Dadgar
907def0952
indentation
2018-05-31 10:53:26 -07:00
Chelsea Holland Komlo
4b20a698ac
ensure default value of 30s is set for server_join stanza
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
3d12b3fdf2
ignore default values for retry interval
...
add additional validation case
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
236ac6592e
add stronger protections for nil pointers in server join merge
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
94cf42ec81
update config parse test
...
documentation fixes
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
fa1d2de5df
RetryInterval should be a time.Duration
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
023cc2c3b7
set retryInterval and other code feedback
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
b4a0f2cc8c
add further configuration validation for server_join
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
0770f03031
update documentation for server_join
2018-05-31 10:50:04 -07:00
Chelsea Holland Komlo
02b89ae0f4
update server_join naming and improve logging
2018-05-31 10:50:03 -07:00
Chelsea Holland Komlo
1a854c444e
add server join info to server and client
2018-05-31 10:50:03 -07:00
Preetha Appan
d053e5323d
Use constant in test
2018-05-30 17:27:04 -05:00
Preetha Appan
44aef6567e
Add unit test to verify compatibility code for node drains
2018-05-30 17:14:53 -05:00
Preetha Appan
bcf34c3449
Set node eligibility to true when old client calls disable
2018-05-30 16:54:07 -05:00
Preetha Appan
51a5b592c5
Fix failing test TestClientStatusRequest
2018-05-30 15:11:54 -05:00
Preetha Appan
6b192593a1
Fix failing test TestHTTP_AllocAllGC
2018-05-30 15:11:54 -05:00
Chelsea Holland Komlo
25896ddf3c
add support for tls PreferServerCipherSuites
...
add further tests for tls configuration
2018-05-25 13:20:00 -04:00
Chelsea Komlo
c42a07b488
Merge pull request #4328 from hashicorp/r-single-tls-config-constructor
...
Refactor to prefer using NewTLSConfiguration constructor
2018-05-24 13:46:29 -04:00
Alex Dadgar
58039325b0
Merge pull request #4321 from hashicorp/f-network-info
...
Display bind/advertise addresses on agent startup
2018-05-24 17:30:56 +00:00
Charlie Voiselle
db8043d7a5
Fixed typo in deployment help text
2018-05-24 12:44:21 -04:00
Nick Ethier
0c62b9cd0f
command: fix node drain monitor case
2018-05-24 06:39:12 -04:00
Nick Ethier
10be0d5355
command: add docs for node drain -monitor flag
2018-05-24 06:37:28 -04:00
Nick Ethier
6287ac0009
command: use 0 as index for monitor request
2018-05-24 06:37:28 -04:00
Nick Ethier
d7b17a719c
command: add '-monitor' flag to node drain
2018-05-24 06:37:25 -04:00
Chelsea Holland Komlo
6733d768f0
refactor NewTLSConfiguration to pass in verifyIncoming/verifyOutgoing
...
add missing fields to TLS merge method
2018-05-23 18:35:30 -04:00
Alex Dadgar
796e623dde
Use Tags when CanaryTags isn't specified
...
This PR fixes a bug where we weren't defaulting to `tags` when
`canary_tags` was empty and adds documentation.
2018-05-23 13:07:47 -07:00
Alex Dadgar
df70a934b2
Display bind/advertise addresses on agent startup
...
Sample outputs from demo/vagrant/(server/client1).hcl and `nomad agent -dev` mode
Server:
```
==> Nomad agent configuration:
Advertise Addrs: HTTP: 192.168.1.75:4646; RPC: 192.168.1.75:4647; Serf: 192.168.1.75:4648
Bind Addrs: HTTP: 0.0.0.0:4646; RPC: 0.0.0.0:4647; Serf: 0.0.0.0:4648
Client: false
Log Level: DEBUG
Region: global (DC: dc1)
Server: true
Version: 0.8.4-dev
```
Client:
```
==> Nomad agent configuration:
Advertise Addrs: HTTP: 192.168.1.75:5656
Bind Addrs: HTTP: 0.0.0.0:5656
Client: true
Log Level: DEBUG
Region: global (DC: dc1)
Server: false
Version: 0.8.4-dev
```
Dev:
```
==> Nomad agent configuration:
Advertise Addrs: HTTP: 127.0.0.1:4646; RPC: 127.0.0.1:4647; Serf: 127.0.0.1:4648
Bind Addrs: HTTP: 127.0.0.1:4646; RPC: 127.0.0.1:4647; Serf: 127.0.0.1:4648
Client: true
Log Level: DEBUG
Region: global (DC: dc1)
Server: true
Version: 0.8.4-dev
```
2018-05-22 15:14:33 -07:00
Alex Dadgar
cc0a50b1b6
safety guard
2018-05-22 14:45:34 -07:00
Alex Dadgar
091e628b38
Unit test for dev agent
2018-05-22 14:45:34 -07:00
Alex Dadgar
598596c7f6
Do not bypass normal RPC codepath when running both client and server at once
2018-05-22 14:45:34 -07:00
Alex Dadgar
cfc9d1fbbd
Register events
2018-05-22 14:06:33 -07:00
Preetha
447527ab2b
Merge pull request #4274 from hashicorp/f-force-rescheduling
...
Add CLI and API support for forcing rescheduling of failed allocs
2018-05-21 16:24:22 -07:00
Preetha Appan
a5ca3790a5
remove extra return
2018-05-21 18:00:14 -05:00
Chelsea Holland Komlo
0bd7c0325c
Add autocomplete where missing
2018-05-11 18:05:43 -04:00
Preetha Appan
ae5d8fd593
Add new method EvaluateWithOptions to avoid breaking go API client
2018-05-11 14:18:53 -05:00
Preetha Appan
b2006cc784
more review feedback
2018-05-11 13:39:55 -05:00
Chelsea Komlo
31c21988b8
Merge pull request #4269 from hashicorp/f-tls-remove-weak-standards
...
Configurable TLS cipher suites and versions; disallow weak ciphers
2018-05-11 08:11:46 -04:00
Nick Ethier
ddab0f1600
Merge pull request #4279 from hashicorp/f-short-init
...
Add job init '-short' command docs to website
2018-05-10 23:20:59 -04:00