Tim Gross
1829f437a7
doc: clarify that gcc-go is not supported ( #6726 )
2019-11-19 11:02:55 -05:00
Tim Gross
1210261fe2
hclfmt nomad jobspecs ( #6724 )
2019-11-19 10:36:41 -05:00
Chris Baker
926d2f8e78
Merge pull request #6725 from hashicorp/bug-plugin-launcher-setconfig-error
...
SetConfig bug in plugin launcher tool
2019-11-19 09:22:19 -06:00
Chris Baker
943c4f083e
the plugin launcher tool was passing the wrong byte array into
...
SetConfig, resulting in msgpack decoding errors
2019-11-19 14:53:34 +00:00
Lang Martin
85bedfde3c
CHANGELOG: gcs support
2019-11-19 09:18:26 -05:00
Lang Martin
aa985ebe21
getter: allow the gcs download scheme ( #6692 )
2019-11-19 09:10:56 -05:00
Drew Bailey
be040f85f5
Merge pull request #6703 from hashicorp/b-affinity-constraint-inplace-update
...
Check for changes to affinity, constraints and spread during update
2019-11-19 08:48:58 -05:00
Drew Bailey
4f06d60c92
update changelog
2019-11-19 08:29:43 -05:00
Drew Bailey
e44a66d7fc
DOCS: Spread stanza does not exist on task
...
Fixes documentation inaccuracy for spread stanza placement. Spreads can
only exist on the top level job struct or within a group.
comment about nil assumption
2019-11-19 08:26:36 -05:00
Drew Bailey
07e3164bf9
Check for changes to affinity and constraints
...
Adds checks for affinity and constraint changes when determining if we
should update inplace.
refactor to check all levels at once
check for spread changes when checking inplace update
2019-11-19 08:26:34 -05:00
Mahmood Ali
ea221cfe87
always destroy
2019-11-18 21:31:29 -05:00
Mahmood Ali
abd700bf8f
Add tests for orphaned processes
2019-11-18 21:31:29 -05:00
Nick Ethier
bd454a4c6f
client: improve group service stanza interpolation and check_re… ( #6586 )
...
* client: improve group service stanza interpolation and check_restart support
Interpolation can now be done on group service stanzas. Note that some task runtime specific information
that was previously available when the service was registered poststart of a task is no longer available.
The check_restart stanza for checks defined on group services will now properly restart the allocation upon
check failures if configured.
2019-11-18 13:04:01 -05:00
Luiz Aoqui
a046a96d5e
update CHANGELOG
2019-11-15 15:45:38 -05:00
Luiz Aoqui
e499c5bddc
Merge pull request #6698 from hashicorp/f-add-drain-start-time
...
api: add `StartedAt` in `Node.DrainStrategy`
2019-11-15 15:38:38 -05:00
Charlie Voiselle
100526c4d1
Merge pull request #6705 from hashicorp/docs-index-redir
...
Update redirects.txt
2019-11-14 16:47:03 -05:00
Charlie Voiselle
bc7ce08dcf
a few more redirects
2019-11-14 16:38:24 -05:00
Charlie Voiselle
40e0305958
Update redirects.txt
2019-11-14 16:29:06 -05:00
Luiz Aoqui
e862b61daa
api: use the same initial time for all drain properties
2019-11-14 16:06:09 -05:00
Drew Bailey
25b7f31ca8
Merge pull request #6691 from hashicorp/f-nomad-monitor-leader
...
Nomad monitor - target remote servers
2019-11-14 11:47:43 -05:00
Drew Bailey
9b63828658
serverID to target remote leader or server
...
handle the case where we request a server-id which is this current server
update docs, error on node and server id params
more accurate names for tests
use shared no leader err, formatting
rm bad comment
remove redundant variable
2019-11-14 10:07:35 -05:00
Drew Bailey
b644e1f47d
add server-id to monitor specific server
2019-11-14 09:53:41 -05:00
Drew Bailey
2185c1a89e
Allows monitor to target leader server
...
Allows user to pass in node-id=leader to forward monitor request to
remote a remote leader.
2019-11-14 09:53:40 -05:00
Drew Bailey
a7f5372cd0
Merge pull request #6693 from hashicorp/update-consul-template-0.22.1
...
updates consul template deps to v0.22.1
2019-11-14 09:47:43 -05:00
Drew Bailey
37de02c8f7
updates consul template deps to v0.22.1
...
pin to v0.22.1
2019-11-14 08:58:34 -05:00
Luiz Aoqui
5bd7cdd5c3
api: add StartedAt
in Node.DrainStrategy
2019-11-13 17:54:40 -05:00
Drew Bailey
3a4beeb6d9
Merge pull request #6696 from alrs/nomad-fix-dropped-test-error
...
nomad: fix dropped test error
2019-11-13 16:12:43 -05:00
Lars Lehtonen
22a3c21dd0
nomad: fix dropped test error
2019-11-13 12:49:41 -08:00
Drew Bailey
acd97d0731
Merge pull request #6670 from hashicorp/api/fallthrough-test
...
test rootfallthrough handler
2019-11-13 10:51:31 -05:00
Charlie Voiselle
637a0c003e
Merge pull request #6688 from hashicorp/docs-fix-constraint-link
...
[docs] Fix link; discuss meta; lint fixes
2019-11-13 09:34:42 -05:00
Lars Lehtonen
1dbf44bc40
command/agent: Prune Dead Code ( #6682 )
...
* remove unused MockPeriodicJob() from tests
* remove unused getIndex() from tests
* remove unused checkIndex() from tests
* remove unused assertIndex() from tests
* remove unused Agent.findLoopbackDevice()
2019-11-13 08:20:01 -05:00
Lars Lehtonen
e85509c466
command: error handling before file close ( #6681 )
2019-11-13 08:18:20 -05:00
Charlie Voiselle
8b6ff61372
Fix link; discuss meta; lint fixes
2019-11-12 17:32:21 -05:00
Michael Schurter
1e906768dd
Merge pull request #6687 from hashicorp/f-override-vault-constraint
...
vault: allow overriding implicit vault constraint
2019-11-12 12:47:57 -08:00
Michael Schurter
9cb4ff3ffb
Merge branch 'master' into f-override-vault-constraint
2019-11-12 12:47:41 -08:00
Michael Schurter
08afb7d605
vault: allow overriding implicit vault constraint
...
There's a bug in version parsing that breaks this constraint when using
a prerelease enterprise version of Vault (eg 1.3.0-beta1+ent). While
this does not fix the underlying bug it does provide a workaround for
future issues related to the implicit constraint. Like the implicit
Connect constraint: *all* implicit constraints should be overridable to
allow users to workaround bugs or other factors should the need arise.
2019-11-12 12:26:36 -08:00
Drew Bailey
f5310ff63f
fix so assertions are test case driven
2019-11-12 14:28:21 -05:00
Mahmood Ali
6958045622
backfill Mahmood's changelog items
2019-11-12 13:50:32 -05:00
Mahmood Ali
801466f5d9
Merge pull request #6685 from hashicorp/b-api-separation-20191112
...
remove accidental project leakage in api/ package
2019-11-12 13:47:06 -05:00
Mahmood Ali
591cb75ee4
nomad exec: check stdout for tty as well
...
When inferring whether to use TTY, check both stdin and stdout are
terminals.
Otherwise, we get failures like the following:
```
$ nomad alloc exec --job example echo hi
hi
$ echo | nomad alloc exec --job example echo hi
hi
$ nomad alloc exec --job example echo hi | head -n1
failed to exec into task: not a terminal
```
2019-11-12 11:39:06 -05:00
Mahmood Ali
9e211ce16f
tests appear as github.com/hashicorp/nomad/api.test
2019-11-12 11:33:20 -05:00
Mahmood Ali
46b3d39697
Merge pull request #6680 from hashicorp/b-gh-6570-explicit_max_ttl
...
vault: check token_explicit_max_ttl as well
2019-11-12 16:03:06 +00:00
Mahmood Ali
90d81fcd55
api: go-uuid is no longer needed
2019-11-12 11:02:33 -05:00
Mahmood Ali
d4514c7b73
api: avoid depending on helper internal package
2019-11-12 11:02:33 -05:00
Mahmood Ali
e1eb1f6bab
api: avoid depending on nomad in test files
2019-11-12 09:32:13 -05:00
Mahmood Ali
c4c37cb42e
vault: check token_explicit_max_ttl as well
...
Vault 1.2.0 deprecated `explicit_max_ttl` in favor of
`token_explicit_max_ttl`.
2019-11-12 08:47:23 -05:00
Lars Lehtonen
98d3e47b32
command: fix TestHelpers_LineLimitReader_TimeLimit() goroutine ( #6678 )
2019-11-12 08:35:11 -05:00
James Rasell
7407a24fce
Set OOMScoreAdjust within systemd dist example ( #6679 )
...
closes #6672
2019-11-12 08:30:54 -05:00
Tim Gross
1ed948600a
changelog: windows service manager
2019-11-11 15:18:54 -05:00
Charlie Voiselle
835831a3d8
Added service wrapper code ( #6220 )
...
This is the basic code to add the Windows Service Manager hooks to Nomad.
Includes vendoring golang.org/x/sys/windows/svc and added Docs:
* guide for installing as a windows service.
* configuration for logging to file from PR #6429
2019-11-11 15:16:07 -05:00