Preetha
237d8ca2ec
Merge pull request #5628 from hashicorp/f-preemption-config
...
Add config to disable preemption for batch/service jobs
2019-05-06 15:40:35 -05:00
Lang Martin
84306b0bfb
Merge pull request #5601 from hashicorp/b-config-parse-direct-hcl
...
config parse direct hcl
2019-05-06 12:05:19 -04:00
Preetha Appan
a9d45c5048
Rename to match system scheduler config.
...
Also added docs
2019-05-03 14:06:12 -05:00
Chris Baker
cb7aa2bf91
test case for 5540 ( #5590 )
...
* client/metrics: modified metrics to use (updated) client copy of allocation instead of (unupdated) server copy
* updated armon/go-metrics to address race condition in DisplayMetrics
2019-04-30 10:31:35 -04:00
Lang Martin
d1dbbe868e
config_parse leave the *HCL strings in place after converting times
2019-04-30 10:30:53 -04:00
Lang Martin
4d3e86648e
config_parse_test additional config confirmation w/ sample json
2019-04-30 10:30:53 -04:00
Lang Martin
6aa98c37ae
config comment for future changes
2019-04-30 10:30:53 -04:00
Lang Martin
6abbf6a1c3
tag HCL bookkeeping keys with json:"-" to keep them out of the api
2019-04-30 10:29:14 -04:00
Lang Martin
e6d6c0afed
config_parse_test remove redundant parse direct test
2019-04-30 10:29:14 -04:00
Lang Martin
41bfd27df1
config_parse remove unused multi-stage parsing via mapstructure
2019-04-30 10:29:14 -04:00
Lang Martin
0490a91f9d
config_parse_test test direct hcl parsing
2019-04-30 10:29:14 -04:00
Lang Martin
ae7a8da18c
agent/config, config/* mapstructure tags -> hcl tags
2019-04-30 10:29:14 -04:00
Lang Martin
bac0d5f0ed
config_parse add new ParseConfigFileDirectHCL
...
- parse by using hcl.Decode directly
- handle time.Duration strings in a second pass
- report unexpected keys in a third pass
2019-04-30 10:29:14 -04:00
Preetha Appan
c9edc45661
Add config to disable preemption for batch/service jobs
2019-04-29 18:48:07 -05:00
Danielle Lancashire
023d0dff31
allocs: Add nomad alloc signal command
...
This command will be used to send a signal to either a single task within an
allocation, or all of the tasks if <task-name> is omitted. If the sent signal
terminates the allocation, it will be treated as if the allocation has crashed,
rather than as if it was operator-terminated.
Signal validation is currently handled by the driver itself and nomad
does not attempt to restrict or validate them.
2019-04-25 12:43:32 +02:00
Danielle
9a4fe5e98f
Merge pull request #5512 from hashicorp/dani/f-alloc-stop
...
alloc-lifecycle: nomad alloc stop
2019-04-23 13:05:08 +02:00
Danielle Lancashire
bb142af5d6
allocs: Add nomad alloc stop
...
This adds a `nomad alloc stop` command that can be used to stop and
force migrate an allocation to a different node.
This is built on top of the AllocUpdateDesiredTransitionRequest and
explicitly limits the scope of access to that transition to expose it
under the alloc-lifecycle ACL.
The API returns the follow up eval that can be used as part of
monitoring in the CLI or parsed and used in an external tool.
2019-04-23 12:50:23 +02:00
Michael Schurter
5ea4382af7
api: fix migrate stanza initialization
...
Fixes Migrate to be initialized like RescheduleStrategy.
Fixes #5477
2019-04-11 15:29:19 -07:00
Danielle Lancashire
419d70c5f9
allocs: Add nomad alloc restart
...
This adds a `nomad alloc restart` command and api that allows a job operator
with the alloc-lifecycle acl to perform an in-place restart of a Nomad
allocation, or a given subtask.
2019-04-11 14:25:49 +02:00
Chris Baker
fcc6a2ca13
agent config: cleaner VAULT_ env lookup
2019-04-10 10:34:10 -05:00
Chris Baker
20a3884559
docs: -vault-namespace, VAULT_NAMESPACE, and config
...
agent: added VAULT_NAMESPACE env-based configuration
2019-04-10 10:34:10 -05:00
Chris Baker
5db81957ff
wip: added config parsing support, CLI flag, still need more testing, VAULT_ var, documentation
2019-04-10 10:34:10 -05:00
Nomad Release bot
18dd59056e
Generate files for 0.9.0 release
2019-04-09 01:56:00 +00:00
Nomad Release bot
6a838b8c3b
Generate files for 0.9.0-rc2 release
2019-04-03 01:54:29 +00:00
Preetha Appan
ff1bac9f48
Address review comments
2019-03-29 08:57:49 -05:00
Preetha Appan
7490af2194
fix linting
2019-03-28 18:01:40 -05:00
Preetha Appan
1f88ccec55
Fix json parsing bug with plugins that don't provide args
...
This fixes a bug with JSON agent configuration parsing where the AST
for the plugin stanza had unnecessary flattening originating from hcl parsing
library. The workaround fixes the AST by popping off the flattened element and wrapping
it in a list. The workaround comes from similar code in terraform.
There were no existing test cases for json parsing so I added a few.
2019-03-28 16:33:30 -05:00
Nomad Release bot
7c00ab4f3f
Generate files for 0.9.0-rc1 release
2019-03-21 19:06:13 +00:00
Michael Schurter
2f55f78b21
Fix version.go for 0.9.0-beta3 release
2019-02-26 10:11:30 -08:00
Michael Schurter
b849d84f2f
Generate files for 0.9.0-beta3 release
2019-02-26 09:44:49 -08:00
Preetha Appan
b1daa69fae
fix import order
2019-02-22 13:40:13 -06:00
Preetha Appan
fb85d1155d
Move logger initialization to earlier step
2019-02-21 12:41:54 -06:00
Preetha Appan
b3b4d7b9a3
cli Ui implementation that logs to a hclogger
...
This makes it so any messages output to the UI *after* the agent has started
will be logged in json format correctly
2019-02-19 17:53:14 -06:00
Michael Schurter
3e52a6aacf
consul: squelch noisy useless logs
...
Only log when syncing actually did something.
2019-02-04 11:07:57 -08:00
Alex Dadgar
29a5d242e6
Generate files for 0.9.0-beta2
2019-01-30 13:31:50 -08:00
Preetha Appan
3cd2ba28e4
fix tests
2019-01-30 14:46:24 -06:00
Alex Dadgar
bc42873e07
Change types of weights on spread/affinity
2019-01-30 12:20:38 -08:00
Alex Dadgar
ecec3d38de
Nomad 0.9.0-beta1 generated code
2019-01-30 10:49:44 -08:00
Michael Schurter
158c74887e
goimports until make check is happy
2019-01-23 06:27:14 -08:00
Michael Schurter
0d61ff0fb9
move pluginutils -> helper/pluginutils
...
I wanted a different color bikeshed, so I get to paint it
2019-01-22 15:50:08 -08:00
Alex Dadgar
95297c608c
goimports
2019-01-22 15:44:31 -08:00
Alex Dadgar
c19cd2e5cf
loader and singleton
2019-01-22 15:11:57 -08:00
Alex Dadgar
b9f36134dc
move catalog + grpcutils
2019-01-22 15:11:57 -08:00
Mahmood Ali
a5d60fd31c
api: remove MockJob from exported functions
...
`api.MockJob` is a test utility, that's only used by `command/agent`
package. This moves it to the package and removes it from the public
API.
2019-01-18 14:51:31 -05:00
Michael Schurter
3a491ab2b4
Merge pull request #5187 from hashicorp/test-consul
...
Port a bunch of pre-0.9 Consul tests to 0.9
2019-01-15 07:41:50 -08:00
Alex Dadgar
109c5ef650
Merge pull request #5173 from hashicorp/b-log-levels
...
Plugins use parent loggers
2019-01-14 16:14:30 -08:00
Michael Schurter
ceee126241
Remove old comment; it's been fixed!
2019-01-14 09:56:53 -08:00
Preetha Appan
72dead7448
REfactor statedb factory config to set it directly in client config
2019-01-12 10:38:20 -06:00
Preetha Appan
80919bf713
Modified destroy failure handling to rely on allocrunner's destroy method
...
Added a unit test with custom statedb implementation that errors, to
use to verify destroy errors
2019-01-12 10:37:12 -06:00
Alex Dadgar
f171a723cb
Enable json logs
2019-01-11 11:36:37 -08:00